[iortcw] 415/497: SP: Add pk3 hash check for Spanish version (ES)
Simon McVittie
smcv at debian.org
Fri Sep 8 10:37:38 UTC 2017
This is an automated email from the git hooks/post-receive script.
smcv pushed a commit to annotated tag 1.42d
in repository iortcw.
commit 2ce8b617421ecd897725a17a8a94f00341c94a2a
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date: Mon Oct 26 15:21:21 2015 -0400
SP: Add pk3 hash check for Spanish version (ES)
---
SP/code/qcommon/files.c | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/SP/code/qcommon/files.c b/SP/code/qcommon/files.c
index fed78c0..ab2f2af 100644
--- a/SP/code/qcommon/files.c
+++ b/SP/code/qcommon/files.c
@@ -199,6 +199,14 @@ static const unsigned int fr_sppak_checksums[] = {
4131017020u
};
+static const unsigned int es_sppak_checksums[] = {
+ 652879493u,
+ 3033901371u,
+ 1162920123u,
+ // sp_pak4.pk3 from GOTY edition
+ 4131017020u
+};
+
// if this is defined, the executable positively won't work with any paks other
// than the demo pak, even if productid is present. This is only used for our
// last demo release to prevent the mac and linux users from using the demo
@@ -3768,7 +3776,7 @@ static void FS_CheckSPPaks( void )
&& strlen(pakBasename) == 7 && !Q_stricmpn( pakBasename, "sp_pak", 6 )
&& pakBasename[6] >= '1' && pakBasename[6] <= '1' + NUM_SP_PAKS - 1)
{
- if( curpack->checksum != sppak_checksums[pakBasename[6]-'1'] && curpack->checksum != fr_sppak_checksums[pakBasename[6]-'1'] )
+ if( curpack->checksum != sppak_checksums[pakBasename[6]-'1'] && curpack->checksum != fr_sppak_checksums[pakBasename[6]-'1'] && curpack->checksum != es_sppak_checksums[pakBasename[6]-'1'] )
{
if(pakBasename[6] == '1')
{
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/iortcw.git
More information about the Pkg-games-commits
mailing list