diff options
author | Paul Gilbert | 2014-04-05 14:27:14 -0400 |
---|---|---|
committer | Paul Gilbert | 2014-04-05 14:27:14 -0400 |
commit | 2a105149fe734f9cec759b08e8a545bcd0b97078 (patch) | |
tree | d1dd2bcc0e0284c4b6ec28736361475422a9510d /engines | |
parent | ebe4d369a54d852b7d789ac247a872799e68e495 (diff) | |
download | scummvm-rg350-2a105149fe734f9cec759b08e8a545bcd0b97078.tar.gz scummvm-rg350-2a105149fe734f9cec759b08e8a545bcd0b97078.tar.bz2 scummvm-rg350-2a105149fe734f9cec759b08e8a545bcd0b97078.zip |
MADS: Fix pathfinding when dest pos is exactly the same as source pos
Diffstat (limited to 'engines')
-rw-r--r-- | engines/mads/player.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/mads/player.cpp b/engines/mads/player.cpp index a98fdb1b15..3eb6b118d7 100644 --- a/engines/mads/player.cpp +++ b/engines/mads/player.cpp @@ -388,8 +388,8 @@ void Player::move() { bool newFacing = false; if (_moving) { - bool isRouteEmpty = rails.empty(); while (!_walkOffScreen && _playerPos == _targetPos) { + bool isRouteEmpty = rails.empty(); if (!isRouteEmpty) { const WalkNode &node = rails.popNode(); |