[iortcw] 417/497: SP: Add checksums for Italian version

Simon McVittie smcv at debian.org
Fri Sep 8 10:37:39 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 8e77d80d298decb649cca29f858f9605608e69f1
Author: MAN-AT-ARMS <M4N4T4RMS at gmail.com>
Date:   Tue Nov 3 09:24:03 2015 -0500

    SP: Add checksums for Italian version
---
 SP/code/qcommon/files.c | 22 ++++++++++++++++++----
 1 file changed, 18 insertions(+), 4 deletions(-)

diff --git a/SP/code/qcommon/files.c b/SP/code/qcommon/files.c
index 4270fe4..66dc134 100644
--- a/SP/code/qcommon/files.c
+++ b/SP/code/qcommon/files.c
@@ -183,7 +183,7 @@ static const unsigned int pak_checksums[] = {
 	1886207346u
 };
 
-static const unsigned int sppak_checksums[] = {
+static const unsigned int en_sppak_checksums[] = {
 	2837138611u,
 	3033901371u,
 	483593179u,
@@ -199,6 +199,14 @@ static const unsigned int fr_sppak_checksums[] = {
 	4131017020u
 };
 
+static const unsigned int it_sppak_checksums[] = {
+	3826630960u,
+	3033901371u,
+	652965486u,
+	// sp_pak4.pk3 from GOTY edition
+	4131017020u
+};
+
 static const unsigned int sp_sppak_checksums[] = {
 	652879493u,
 	3033901371u,
@@ -3776,7 +3784,10 @@ 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'] && curpack->checksum != sp_sppak_checksums[pakBasename[6]-'1'] )
+			if( curpack->checksum != en_sppak_checksums[pakBasename[6]-'1'] &&
+				curpack->checksum != fr_sppak_checksums[pakBasename[6]-'1'] &&
+				curpack->checksum != it_sppak_checksums[pakBasename[6]-'1'] &&
+				curpack->checksum != sp_sppak_checksums[pakBasename[6]-'1'] )
 			{
 				if(pakBasename[6] == '1')
 				{
@@ -3808,9 +3819,12 @@ static void FS_CheckSPPaks( void )
 			// Finally check whether this pak's checksum is listed because the user tried
 			// to trick us by renaming the file, and set foundPak's highest bit to indicate this case.
 
-			for(index = 0; index < ARRAY_LEN(sppak_checksums); index++)
+			for(index = 0; index < ARRAY_LEN( en_sppak_checksums ); index++)
 			{
-				if(curpack->checksum == sppak_checksums[index])
+				if( curpack->checksum == en_sppak_checksums[index] ||
+					curpack->checksum == fr_sppak_checksums[index] ||
+					curpack->checksum == it_sppak_checksums[index] ||
+					curpack->checksum == sp_sppak_checksums[index] )
 				{
 					Com_Printf("\n\n"
 							"**************************************************\n"

-- 
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