mirror of
https://github.com/vcmi/vcmi.git
synced 2025-09-16 09:26:28 +02:00
Rename getCost back to getMovementCost
Initially wanter to name main class differently and back then getCost make sense. Then renamed class to CPathfinderHelper, but forgot to rename function back.
This commit is contained in:
@@ -421,7 +421,7 @@ float FuzzyHelper::evaluate (Goals::VisitTile & g)
|
||||
|
||||
//assert(cb->isInTheMap(g.tile));
|
||||
float turns = 0;
|
||||
float distance = CPathfinderHelper::getCost(g.hero.h, g.tile);
|
||||
float distance = CPathfinderHelper::getMovementCost(g.hero.h, g.tile);
|
||||
if (!distance) //we stand on that tile
|
||||
turns = 0;
|
||||
else
|
||||
|
Reference in New Issue
Block a user