From 2a105149fe734f9cec759b08e8a545bcd0b97078 Mon Sep 17 00:00:00 2001 From: Paul Gilbert Date: Sat, 5 Apr 2014 14:27:14 -0400 Subject: MADS: Fix pathfinding when dest pos is exactly the same as source pos --- engines/mads/player.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'engines') 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(); -- cgit v1.2.3