aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
Diffstat (limited to 'engines')
-rw-r--r--engines/kyra/script_hof.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/engines/kyra/script_hof.cpp b/engines/kyra/script_hof.cpp
index 7d1f41273d..e481aedb07 100644
--- a/engines/kyra/script_hof.cpp
+++ b/engines/kyra/script_hof.cpp
@@ -907,17 +907,13 @@ int KyraEngine_HoF::o2_updateSceneAnim(EMCState *script) {
// animation.
// - When the sheriff enters the jail, either to lock you up or to throw
// away the key. (see bug #1926838 "HoF: Animation plays too fast").
- // Adding the workaround for the first case also fixes the second,
- // even though stackPos(0) is different then.
-
- // FIXME: Shouldn't the check for scene 27 be stackPos(0) == 1? Or is the change to
- // stackPos(0) intentional here?
if ((stackPos(0) == 2 && _mainCharacter.sceneId == 3) ||
(stackPos(0) == 3 && _mainCharacter.sceneId == 33) ||
((stackPos(0) == 1 || stackPos(0) == 2) && _mainCharacter.sceneId == 19) ||
- (stackPos(0) = 1 && _mainCharacter.sceneId == 27))
+ ((stackPos(0) == 1 || stackPos(0) == 2) && _mainCharacter.sceneId == 27)) {
_sceneSpecialScriptsTimer[_lastProcessedSceneScript] = _system->getMillis() + _tickLength * 6;
+ }
_specialSceneScriptRunFlag = false;
return 0;