Correct VAR_CHARINC in old saves.
svn-id: r12955
This commit is contained in:
parent
a4a4c21956
commit
fe667a67be
2 changed files with 5 additions and 1 deletions
|
@ -179,6 +179,10 @@ bool ScummEngine::loadState(int slot, bool compat, SaveFileManager *mgr) {
|
|||
if (_screenTop < 0)
|
||||
_screenTop = 0;
|
||||
|
||||
// For a long time, we used incorrect location, causing it to default to zero.
|
||||
if (hdr.ver < VER(30) && _version == 8)
|
||||
_scummVars[VAR_CHARINC] = (_features & GF_DEMO) ? 3 : 1;
|
||||
|
||||
// For a long time, we used incorrect locations for some camera related
|
||||
// scumm vars. We now know the proper locations. To be able to properly use
|
||||
// old save games, we update the old (bad) variables to the new (correct)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue