aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra/kyra_v2.cpp
diff options
context:
space:
mode:
authorJohannes Schickel2008-03-18 12:55:41 +0000
committerJohannes Schickel2008-03-18 12:55:41 +0000
commitb03c23ce5743844520f67a0891113cccab059361 (patch)
tree15ebfe21577d9eae366179813782418700f8acb5 /engines/kyra/kyra_v2.cpp
parent04083cff8835b75d658a964745147c0960529eea (diff)
downloadscummvm-rg350-b03c23ce5743844520f67a0891113cccab059361.tar.gz
scummvm-rg350-b03c23ce5743844520f67a0891113cccab059361.tar.bz2
scummvm-rg350-b03c23ce5743844520f67a0891113cccab059361.zip
Fixed input bug causing Zanthia not to move sometimes.
svn-id: r31177
Diffstat (limited to 'engines/kyra/kyra_v2.cpp')
-rw-r--r--engines/kyra/kyra_v2.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/kyra/kyra_v2.cpp b/engines/kyra/kyra_v2.cpp
index a5380689a5..d3fb41d01c 100644
--- a/engines/kyra/kyra_v2.cpp
+++ b/engines/kyra/kyra_v2.cpp
@@ -1358,8 +1358,10 @@ int KyraEngine_v2::inputSceneChange(int x, int y, int unk1, int unk2) {
return 0;
}
- if (ABS(_mainCharacter.x1 - x) < 4 || ABS(_mainCharacter.y1 - y) < 2)
+ if (ABS(_mainCharacter.x1 - x) < 4 && ABS(_mainCharacter.y1 - y) < 2) {
+ _pathfinderFlag = 0;
return 0;
+ }
int curX = _mainCharacter.x1 & ~3;
int curY = _mainCharacter.y1 & ~1;