GNAP: Fix a small bug in Playtpuss pathfinding

This commit is contained in:
Strangerke 2016-05-07 10:31:09 +02:00 committed by Eugene Sandulenko
parent 9d2c537beb
commit 3209ce8003

View File

@ -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;