From 829c8fb2476f763f0d0a1f4ca792073eb953814e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Tue, 3 Jan 2017 17:02:07 +0300 Subject: Remove useless todo messages. --- src/resources/map/map.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/resources/map/map.cpp') diff --git a/src/resources/map/map.cpp b/src/resources/map/map.cpp index 92dfe0c7d..c4a4e7fa8 100644 --- a/src/resources/map/map.cpp +++ b/src/resources/map/map.cpp @@ -963,9 +963,7 @@ Path Map::findPath(const int startX, const int startY, ? basicCost : basicCost2); /* Demote an arbitrary direction to speed pathfinding by - adding a defect (TODO: change depending on the desired - visual effect, e.g. a cross-product defect toward - destination). + adding a defect Important: as long as the total defect along any path is less than the basicCost, the pathfinder will still find one of the shortest paths! */ -- cgit v1.2.3-70-g09d2