diff options
| author | Gregory Montoir | 2005-11-01 02:43:54 +0000 |
|---|---|---|
| committer | Gregory Montoir | 2005-11-01 02:43:54 +0000 |
| commit | 8eaa89863aafae3b76f50c2ec319c1998ab71773 (patch) | |
| tree | 3d4c7c582e2d00e6625d710b85c70c390a723398 /scumm/saveload.cpp | |
| parent | b7d57c9284389c3f1130b5ab103928bc595efe46 (diff) | |
| download | scummvm-rg350-8eaa89863aafae3b76f50c2ec319c1998ab71773.tar.gz scummvm-rg350-8eaa89863aafae3b76f50c2ec319c1998ab71773.tar.bz2 scummvm-rg350-8eaa89863aafae3b76f50c2ec319c1998ab71773.zip | |
in v7/v8, remapPaletteColor() ignores color 255
in v7, remapPaletteColor() ignores colors setup by initCycle()
svn-id: r19380
Diffstat (limited to 'scumm/saveload.cpp')
| -rw-r--r-- | scumm/saveload.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index 453d092240..88fead21b9 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -759,6 +759,7 @@ void ScummEngine::saveOrLoad(Serializer *s) { MKLINE(ScummEngine, _mouse.x, sleInt16, VER(20)), MKLINE(ScummEngine, _mouse.y, sleInt16, VER(20)), + MKARRAY(ScummEngine, _colorUsedByCycle[0], sleByte, 256, VER(60)), MKLINE(ScummEngine, _doEffect, sleByte, VER(8)), MKLINE(ScummEngine, _switchRoomEffect, sleByte, VER(8)), MKLINE(ScummEngine, _newEffect, sleByte, VER(8)), @@ -1094,6 +1095,10 @@ void ScummEngine::saveOrLoad(Serializer *s) { memcpy(_darkenPalette, _currentPalette, 768); } + // _colorUsedByCycle was not saved before V60 + if (s->isLoading() && s->getVersion() < VER(60)) { + memset(_colorUsedByCycle, 0, sizeof(_colorUsedByCycle)); + } // // Save/load more global object state |
