[Scummvm-cvs-logs] SF.net SVN: scummvm:[33339] scummvm/trunk/engines/cine

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Sun Jul 27 16:36:53 CEST 2008


Revision: 33339
          http://scummvm.svn.sourceforge.net/scummvm/?rev=33339&view=rev
Author:   buddha_
Date:     2008-07-27 14:36:53 +0000 (Sun, 27 Jul 2008)

Log Message:
-----------
Clear the confusing usage of NUM_MAX_VAR (It's 255 actually, not 256).

Modified Paths:
--------------
    scummvm/trunk/engines/cine/object.h
    scummvm/trunk/engines/cine/various.cpp

Modified: scummvm/trunk/engines/cine/object.h
===================================================================
--- scummvm/trunk/engines/cine/object.h	2008-07-27 14:33:37 UTC (rev 33338)
+++ scummvm/trunk/engines/cine/object.h	2008-07-27 14:36:53 UTC (rev 33339)
@@ -50,7 +50,7 @@
 };
 
 #define NUM_MAX_OBJECT 255
-#define NUM_MAX_VAR 256
+#define NUM_MAX_VAR 255
 
 extern objectStruct objectTable[NUM_MAX_OBJECT];
 

Modified: scummvm/trunk/engines/cine/various.cpp
===================================================================
--- scummvm/trunk/engines/cine/various.cpp	2008-07-27 14:33:37 UTC (rev 33338)
+++ scummvm/trunk/engines/cine/various.cpp	2008-07-27 14:36:53 UTC (rev 33339)
@@ -535,7 +535,7 @@
 	renderer->restorePalette(in);
 
 	// At 0x2083 (i.e. 0x2043 + 16 * 2 * 2):
-	globalVars.load(in, NUM_MAX_VAR - 1);
+	globalVars.load(in, NUM_MAX_VAR);
 
 	// At 0x2281 (i.e. 0x2083 + 255 * 2):
 	for (i = 0; i < 16; i++) {
@@ -733,7 +733,7 @@
 
 	renderer->savePalette(*fHandle);
 
-	globalVars.save(*fHandle, NUM_MAX_VAR - 1);
+	globalVars.save(*fHandle, NUM_MAX_VAR);
 
 	for (i = 0; i < 16; i++) {
 		fHandle->writeUint16BE(zoneData[i]);


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list