diff options
author | Johannes Schickel | 2008-03-18 12:55:41 +0000 |
---|---|---|
committer | Johannes Schickel | 2008-03-18 12:55:41 +0000 |
commit | b03c23ce5743844520f67a0891113cccab059361 (patch) | |
tree | 15ebfe21577d9eae366179813782418700f8acb5 /engines/kyra | |
parent | 04083cff8835b75d658a964745147c0960529eea (diff) | |
download | scummvm-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')
-rw-r--r-- | engines/kyra/kyra_v2.cpp | 4 |
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; |