diff options
author | Travis Howell | 2004-07-16 14:41:05 +0000 |
---|---|---|
committer | Travis Howell | 2004-07-16 14:41:05 +0000 |
commit | 619c21a3186e2cbf5dd7ad41b457dfe6aefaf6d8 (patch) | |
tree | 66449cc5b572bd31c055e5208f6a642e84843490 /scumm/saveload.cpp | |
parent | edcd6b15d7e4f43f11f2756561966968e2c5969f (diff) | |
download | scummvm-rg350-619c21a3186e2cbf5dd7ad41b457dfe6aefaf6d8.tar.gz scummvm-rg350-619c21a3186e2cbf5dd7ad41b457dfe6aefaf6d8.tar.bz2 scummvm-rg350-619c21a3186e2cbf5dd7ad41b457dfe6aefaf6d8.zip |
Set new VARS for older save games.
svn-id: r14227
Diffstat (limited to 'scumm/saveload.cpp')
-rw-r--r-- | scumm/saveload.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/scumm/saveload.cpp b/scumm/saveload.cpp index b2e806732b..56d40c15bf 100644 --- a/scumm/saveload.cpp +++ b/scumm/saveload.cpp @@ -183,6 +183,13 @@ bool ScummEngine::loadState(int slot, bool compat) { if (_screenTop < 0) _screenTop = 0; + if (hdr.ver < VER(33) && _version >= 7) { + // For a long time, we didn't set these vars to default values. + VAR(VAR_DEFAULT_TALK_DELAY) = 60; + if (_version == 7) + VAR(VAR_NUM_GLOBAL_OBJS) = _numGlobalObjects - 1; + } + if (hdr.ver < VER(32) && _heversion == 70) { roomptr = getResourceAddress(rtRoom, _roomResource); const byte *ptr = findResourceData(MKID('REMP'), roomptr); |