diff options
author | Jamieson Christian | 2003-08-29 03:54:47 +0000 |
---|---|---|
committer | Jamieson Christian | 2003-08-29 03:54:47 +0000 |
commit | 20aaf3c36552cdb5a4c0cd51e1a0e1496a49f4e7 (patch) | |
tree | 426b5615f83f544fdd4645e082603bcf24d7d900 /scumm | |
parent | cec02390ed9b068bb12c3ab03b0d92c7c70d8c4f (diff) | |
download | scummvm-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
Diffstat (limited to 'scumm')
-rw-r--r-- | scumm/saveload.cpp | 6 | ||||
-rw-r--r-- | scumm/saveload.h | 5 |
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, |