diff options
author | Peter Kohaut | 2019-02-16 18:03:10 +0100 |
---|---|---|
committer | Peter Kohaut | 2019-02-16 18:03:10 +0100 |
commit | 284a4e291280d5a461c83ba7cb48aa53853744fd (patch) | |
tree | afa84a8f614bdf702f65ba38ac386fd71b77e577 /engines | |
parent | 68baae85c6951d112693d00c2c3da87fa458638a (diff) | |
download | scummvm-rg350-284a4e291280d5a461c83ba7cb48aa53853744fd.tar.gz scummvm-rg350-284a4e291280d5a461c83ba7cb48aa53853744fd.tar.bz2 scummvm-rg350-284a4e291280d5a461c83ba7cb48aa53853744fd.zip |
BLADERUNNER: Fixed typo in pathfinding code
More locations should work
Diffstat (limited to 'engines')
-rw-r--r-- | engines/bladerunner/obstacles.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/bladerunner/obstacles.cpp b/engines/bladerunner/obstacles.cpp index b5c71e8270..f933187796 100644 --- a/engines/bladerunner/obstacles.cpp +++ b/engines/bladerunner/obstacles.cpp @@ -810,7 +810,7 @@ bool Obstacles::findFarthestAvailablePathVertex(Vector2 *path, int pathSize, Vec next->z = path[farthestPathIndex].y; bool walkboxFound; - float walkboxAltitude = _vm->_scene->_set->getAltitudeAtXZ(next->x, next->y, &walkboxFound); + float walkboxAltitude = _vm->_scene->_set->getAltitudeAtXZ(next->x, next->z, &walkboxFound); if (walkboxFound) { next->y = walkboxAltitude; |