aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2012-02-11 10:55:55 +0100
committerWillem Jan Palenstijn2012-02-11 10:55:55 +0100
commit784472a6690f4be0ba7af4841dcd6b167c639a64 (patch)
tree06a24fb65dfccbd1eafa7bbe4d6f275cb8931a44 /engines/scumm
parent866e23f426a03c36a9d82208a354f721004a7d4e (diff)
downloadscummvm-rg350-784472a6690f4be0ba7af4841dcd6b167c639a64.tar.gz
scummvm-rg350-784472a6690f4be0ba7af4841dcd6b167c639a64.tar.bz2
scummvm-rg350-784472a6690f4be0ba7af4841dcd6b167c639a64.zip
Revert "SCUMM: revert savegame version to 89"
This reverts commit 65fc7225bb31e72120dcdf16e91ae377c657548d. Increasing the savegame version on a branch and then decreasing it again leads to problems with loading current savegames in old commits during a bisect.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/actor.cpp7
-rw-r--r--engines/scumm/saveload.cpp18
-rw-r--r--engines/scumm/saveload.h2
3 files changed, 14 insertions, 13 deletions
diff --git a/engines/scumm/actor.cpp b/engines/scumm/actor.cpp
index dee601b273..53496428e3 100644
--- a/engines/scumm/actor.cpp
+++ b/engines/scumm/actor.cpp
@@ -2902,13 +2902,14 @@ void Actor_v0::saveLoadWithSerializer(Serializer *ser) {
static const SaveLoadEntry actorEntries[] = {
MKLINE(Actor_v0, _costCommand, sleByte, VER(84)),
- MK_OBSOLETE(Actor_v0, _costFrame, sleByte, VER(84), VER(88)),
+ MK_OBSOLETE(Actor_v0, _costFrame, sleByte, VER(84), VER(89)),
MKLINE(Actor_v0, _miscflags, sleByte, VER(84)),
MKLINE(Actor_v0, _speaking, sleByte, VER(84)),
- MK_OBSOLETE(Actor_v0, _speakingPrev, sleByte, VER(84), VER(88)),
+ MK_OBSOLETE(Actor_v0, _speakingPrev, sleByte, VER(84), VER(89)),
+ MK_OBSOLETE(Actor_v0, _limbTemp, sleByte, VER(89), VER(89)),
MKLINE(Actor_v0, _animFrameRepeat, sleByte, VER(89)),
MKARRAY(Actor_v0, _limbFrameRepeatNew[0], sleInt8, 8, VER(89)),
- MKARRAY(Actor_v0, _limbFrameRepeat[0], sleInt8, 8, VER(89)),
+ MKARRAY(Actor_v0, _limbFrameRepeat[0], sleInt8, 8, VER(90)),
MKEND()
};
diff --git a/engines/scumm/saveload.cpp b/engines/scumm/saveload.cpp
index 51a291b7f2..6e54377199 100644
--- a/engines/scumm/saveload.cpp
+++ b/engines/scumm/saveload.cpp
@@ -1210,7 +1210,7 @@ void ScummEngine::saveOrLoad(Serializer *s) {
// Since roughly v13 of the save games, the objs storage has changed a bit
for (i = _numObjectsInRoom; i < _numLocalObjects; i++)
_objs[i].obj_nr = 0;
- } else if (_game.version == 0 && s->getVersion() < VER(89)) {
+ } else if (_game.version == 0 && s->getVersion() < VER(91)) {
for (i = 0; i < _numLocalObjects; i++) {
// Merge object id and type (previously stored in flags)
if (_objs[i].obj_nr != 0 && OBJECT_V0_TYPE(_objs[i].obj_nr) == 0 && _objs[i].flags != 0)
@@ -1504,14 +1504,14 @@ void ScummEngine_v0::saveOrLoad(Serializer *s) {
const SaveLoadEntry v0Entrys[] = {
MKLINE(ScummEngine_v0, _currentMode, sleByte, VER(78)),
MKLINE(ScummEngine_v0, _currentLights, sleByte, VER(78)),
- MKLINE(ScummEngine_v0, _activeVerb, sleByte, VER(89)),
- MKLINE(ScummEngine_v0, _activeObject, sleUint16, VER(89)),
- MKLINE(ScummEngine_v0, _activeObject2, sleUint16, VER(89)),
- MKLINE(ScummEngine_v0, _cmdVerb, sleByte, VER(89)),
- MKLINE(ScummEngine_v0, _cmdObject, sleUint16, VER(89)),
- MKLINE(ScummEngine_v0, _cmdObject2, sleUint16, VER(89)),
- MKLINE(ScummEngine_v0, _walkToObject, sleUint16, VER(89)),
- MKLINE(ScummEngine_v0, _walkToObjectState, sleByte, VER(89)),
+ MKLINE(ScummEngine_v0, _activeVerb, sleByte, VER(92)),
+ MKLINE(ScummEngine_v0, _activeObject, sleUint16, VER(92)),
+ MKLINE(ScummEngine_v0, _activeObject2, sleUint16, VER(92)),
+ MKLINE(ScummEngine_v0, _cmdVerb, sleByte, VER(92)),
+ MKLINE(ScummEngine_v0, _cmdObject, sleUint16, VER(92)),
+ MKLINE(ScummEngine_v0, _cmdObject2, sleUint16, VER(92)),
+ MKLINE(ScummEngine_v0, _walkToObject, sleUint16, VER(92)),
+ MKLINE(ScummEngine_v0, _walkToObjectState, sleByte, VER(92)),
MKEND()
};
s->saveLoadEntries(this, v0Entrys);
diff --git a/engines/scumm/saveload.h b/engines/scumm/saveload.h
index 898f80f867..90feee6dc0 100644
--- a/engines/scumm/saveload.h
+++ b/engines/scumm/saveload.h
@@ -47,7 +47,7 @@ namespace Scumm {
* only saves/loads those which are valid for the version of the savegame
* which is being loaded/saved currently.
*/
-#define CURRENT_VER 89
+#define CURRENT_VER 92
/**
* An auxillary macro, used to specify savegame versions. We use this instead