mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-29 23:07:48 +02:00
Cleanup
This commit is contained in:
@@ -117,6 +117,7 @@ Path Path::search(const Tileset & dst, bool straight, std::function<float(const
|
||||
return;
|
||||
|
||||
float movementCost = moveCostFunction(currentNode, pos);
|
||||
|
||||
float distance = distances[currentNode] + movementCost; //we prefer to use already free paths
|
||||
int bestDistanceSoFar = std::numeric_limits<int>::max();
|
||||
auto it = distances.find(pos);
|
||||
|
||||
Reference in New Issue
Block a user