aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJamieson Christian2003-08-29 03:54:47 +0000
committerJamieson Christian2003-08-29 03:54:47 +0000
commit20aaf3c36552cdb5a4c0cd51e1a0e1496a49f4e7 (patch)
tree426b5615f83f544fdd4645e082603bcf24d7d900
parentcec02390ed9b068bb12c3ab03b0d92c7c70d8c4f (diff)
downloadscummvm-rg350-20aaf3c36552cdb5a4c0cd51e1a0e1496a49f4e7.tar.gz
scummvm-rg350-20aaf3c36552cdb5a4c0cd51e1a0e1496a49f4e7.tar.bz2
scummvm-rg350-20aaf3c36552cdb5a4c0cd51e1a0e1496a49f4e7.zip
Added _roomPalette to savegame.
Savegame version now at 21. svn-id: r9900
-rw-r--r--scumm/saveload.cpp6
-rw-r--r--scumm/saveload.h5
2 files changed, 8 insertions, 3 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp
index 0c392e6ade..9d1ed76c43 100644
--- a/scumm/saveload.cpp
+++ b/scumm/saveload.cpp
@@ -611,8 +611,12 @@ void Scumm::saveOrLoad(Serializer *s, uint32 savegameVersion) {
if (_objectRoomTable)
s->saveLoadArrayOf(_objectRoomTable, _numGlobalObjects, sizeof(_objectRoomTable[0]), sleByte);
- if (_shadowPaletteSize)
+ if (_shadowPaletteSize) {
s->saveLoadArrayOf(_shadowPalette, _shadowPaletteSize, 1, sleByte);
+ // _roomPalette didn't show up until V21 save games
+ if (savegameVersion >= VER_V21)
+ s->saveLoadArrayOf (_roomPalette, _shadowPaletteSize, 1, sleByte);
+ }
// PalManip data was not saved before V10 save games
if (savegameVersion < VER_V10)
diff --git a/scumm/saveload.h b/scumm/saveload.h
index 2bea7a0170..16e4deccaf 100644
--- a/scumm/saveload.h
+++ b/scumm/saveload.h
@@ -41,10 +41,11 @@ enum {
VER_V17,
VER_V18,
VER_V19,
- VER_V20
+ VER_V20,
+ VER_V21
};
-#define CURRENT_VER VER_V20
+#define CURRENT_VER VER_V21
// To work around a warning in GCC 3.2 (and 3.1 ?) regarding non-POD types,