diff options
author | Gregory Montoir | 2011-02-19 12:11:09 +0100 |
---|---|---|
committer | Gregory Montoir | 2011-02-19 12:29:03 +0100 |
commit | 0962f332cb42afaf9d83bc0b3a7434f255c83835 (patch) | |
tree | 860bf74c3fe8aa20413c74992a4c243d45cd568e | |
parent | 1055c8a8d03416007f7f8dfc89f197c791c7ce98 (diff) | |
download | scummvm-rg350-0962f332cb42afaf9d83bc0b3a7434f255c83835.tar.gz scummvm-rg350-0962f332cb42afaf9d83bc0b3a7434f255c83835.tar.bz2 scummvm-rg350-0962f332cb42afaf9d83bc0b3a7434f255c83835.zip |
TUCKER: fix #2872348 - walk bug by switching places in museum
Looks like an original game glitch, prevent hard-coded sequence
execution on location switch (after using map).
-rw-r--r-- | engines/tucker/locations.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/engines/tucker/locations.cpp b/engines/tucker/locations.cpp index 416f2ba36e..cd99656695 100644 --- a/engines/tucker/locations.cpp +++ b/engines/tucker/locations.cpp @@ -2483,7 +2483,8 @@ void TuckerEngine::updateSprite_locationNum58(int i) { } void TuckerEngine::execData3PreUpdate_locationNum58() { - if (_flagsTable[190] < 3 && _xPosCurrent > 310) { + // workaround original game glitch #2872348: do not change position on location change + if (_nextLocationNum == 0 && _flagsTable[190] < 3 && _xPosCurrent > 310) { _xPosCurrent = 310; _panelLockedFlag = 0; } |