From 15ad897ed35d61297044077dcb76e0a520cf16d8 Mon Sep 17 00:00:00 2001 From: James Brown Date: Wed, 15 Jan 2003 13:35:18 +0000 Subject: Comments regarding use of sle16 for 32bit variables.. :P svn-id: r6468 --- scumm/saveload.cpp | 4 ++++ 1 file changed, 4 insertions(+) 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 -- cgit v1.2.3