aboutsummaryrefslogtreecommitdiff
path: root/engines/cine
diff options
context:
space:
mode:
authorKari Salminen2008-07-27 14:36:53 +0000
committerKari Salminen2008-07-27 14:36:53 +0000
commitcedbb6b2b23ef5d55c26022b7535cf3d248c5df7 (patch)
treefe281efb1e37fb4912154b443bf4dae5a48acc82 /engines/cine
parent955d0700f55b21e6e70668170869f72ad9746bd7 (diff)
downloadscummvm-rg350-cedbb6b2b23ef5d55c26022b7535cf3d248c5df7.tar.gz
scummvm-rg350-cedbb6b2b23ef5d55c26022b7535cf3d248c5df7.tar.bz2
scummvm-rg350-cedbb6b2b23ef5d55c26022b7535cf3d248c5df7.zip
Clear the confusing usage of NUM_MAX_VAR (It's 255 actually, not 256).
svn-id: r33339
Diffstat (limited to 'engines/cine')
-rw-r--r--engines/cine/object.h2
-rw-r--r--engines/cine/various.cpp4
2 files changed, 3 insertions, 3 deletions
diff --git a/engines/cine/object.h b/engines/cine/object.h
index 103b2f50ba..7ad65eb75f 100644
--- a/engines/cine/object.h
+++ b/engines/cine/object.h
@@ -50,7 +50,7 @@ struct overlay {
};
#define NUM_MAX_OBJECT 255
-#define NUM_MAX_VAR 256
+#define NUM_MAX_VAR 255
extern objectStruct objectTable[NUM_MAX_OBJECT];
diff --git a/engines/cine/various.cpp b/engines/cine/various.cpp
index 383cda1875..4ac4c4a590 100644
--- a/engines/cine/various.cpp
+++ b/engines/cine/various.cpp
@@ -535,7 +535,7 @@ bool CineEngine::loadPlainSaveFW(Common::SeekableReadStream &in, CineSaveGameFor
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 @@ void makeSave(char *saveFileName) {
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]);