aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregory Montoir2011-02-19 12:11:09 +0100
committerGregory Montoir2011-02-19 12:29:03 +0100
commit0962f332cb42afaf9d83bc0b3a7434f255c83835 (patch)
tree860bf74c3fe8aa20413c74992a4c243d45cd568e
parent1055c8a8d03416007f7f8dfc89f197c791c7ce98 (diff)
downloadscummvm-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.cpp3
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;
}