[Scummvm-git-logs] scummvm master -> 284a4e291280d5a461c83ba7cb48aa53853744fd

peterkohaut peterkohaut at users.noreply.github.com
Sat Feb 16 18:03:51 CET 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
284a4e2912 BLADERUNNER: Fixed typo in pathfinding code


Commit: 284a4e291280d5a461c83ba7cb48aa53853744fd
    https://github.com/scummvm/scummvm/commit/284a4e291280d5a461c83ba7cb48aa53853744fd
Author: Peter Kohaut (peter.kohaut at gmail.com)
Date: 2019-02-16T18:03:10+01:00

Commit Message:
BLADERUNNER: Fixed typo in pathfinding code

More locations should work

Changed paths:
    engines/bladerunner/obstacles.cpp


diff --git a/engines/bladerunner/obstacles.cpp b/engines/bladerunner/obstacles.cpp
index b5c71e8..f933187 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;





More information about the Scummvm-git-logs mailing list