aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Brown2003-01-15 13:35:18 +0000
committerJames Brown2003-01-15 13:35:18 +0000
commit15ad897ed35d61297044077dcb76e0a520cf16d8 (patch)
treedab74edbb6b9f430b1bbb2a4828e08500433ecc1
parent4fde6134321dafba379ea8dda96ce173b2601d41 (diff)
downloadscummvm-rg350-15ad897ed35d61297044077dcb76e0a520cf16d8.tar.gz
scummvm-rg350-15ad897ed35d61297044077dcb76e0a520cf16d8.tar.bz2
scummvm-rg350-15ad897ed35d61297044077dcb76e0a520cf16d8.zip
Comments regarding use of sle16 for 32bit variables.. :P
svn-id: r6468
-rw-r--r--scumm/saveload.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index ece1656158..77e4d46c9c 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -358,6 +358,8 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion)
MKARRAY(Scumm, _localScriptList[0], sleUint32, NUM_LOCALSCRIPT, VER_V8),
// vm.localvar grew from 25 to 40 entries
+ // FIXME: ComI stores 32-bit variables.. so.. er.. shouldn't this be a sleInt32 if we
+ // don't want games to hidiously behave oddly?
MKARRAY_OLD(Scumm, vm.localvar[0][0], sleUint16, 25 * 17, VER_V8, VER_V8),
MKARRAY(Scumm, vm.localvar[0][0], sleUint16, NUM_SCRIPT_SLOT * 17, VER_V9),
@@ -623,6 +625,8 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion)
var120Backup = _vars[120];
var98Backup = _vars[98];
+ // FIXME: ComI stores 32-bit variables.. so.. er.. shouldn't this be a sleInt32 if we
+ // don't want games to hidiously behave oddly?
s->saveLoadArrayOf(_vars, _numVariables, sizeof(_vars[0]), sleInt16);
if (_gameId == GID_TENTACLE) // Maybe misplaced, but that's the main idea