aboutsummaryrefslogtreecommitdiff
path: root/engines/mads/player.cpp
diff options
context:
space:
mode:
authorPaul Gilbert2014-04-05 14:27:14 -0400
committerPaul Gilbert2014-04-05 14:27:14 -0400
commit2a105149fe734f9cec759b08e8a545bcd0b97078 (patch)
treed1dd2bcc0e0284c4b6ec28736361475422a9510d /engines/mads/player.cpp
parentebe4d369a54d852b7d789ac247a872799e68e495 (diff)
downloadscummvm-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/mads/player.cpp')
-rw-r--r--engines/mads/player.cpp2
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();