diff options
author | Strangerke | 2016-05-07 10:31:09 +0200 |
---|---|---|
committer | Eugene Sandulenko | 2016-05-10 12:14:53 +0200 |
commit | 3209ce80033e10b1801ce9e8075aaabdace2a071 (patch) | |
tree | 022d146e97d03cd135e3542831ef1bb8bf06627b /engines/gnap | |
parent | 9d2c537beb5135ecd8e007b227da5139e74a9515 (diff) | |
download | scummvm-rg350-3209ce80033e10b1801ce9e8075aaabdace2a071.tar.gz scummvm-rg350-3209ce80033e10b1801ce9e8075aaabdace2a071.tar.bz2 scummvm-rg350-3209ce80033e10b1801ce9e8075aaabdace2a071.zip |
GNAP: Fix a small bug in Playtpuss pathfinding
Diffstat (limited to 'engines/gnap')
-rw-r--r-- | engines/gnap/grid.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gnap/grid.cpp b/engines/gnap/grid.cpp index 271f3494ee..d38f53b1e0 100644 --- a/engines/gnap/grid.cpp +++ b/engines/gnap/grid.cpp @@ -1206,8 +1206,8 @@ bool GnapEngine::platypusWalkTo(int gridX, int gridY, int animationIndex, int se if (!done && platFindPath3(_plat->_pos.x, _plat->_pos.y)) done = true; - if (!done) - platFindPath4(_plat->_pos.x, _plat->_pos.y); + if (!done && platFindPath4(_plat->_pos.x, _plat->_pos.y)) + done = true; int platSequenceId = _plat->_sequenceId; int platId = _plat->_id; |