mirror of
https://github.com/vcmi/vcmi.git
synced 2026-05-22 09:55:17 +02:00
AI: replace SectorMap with new PathfinderManager
This commit is contained in:
@@ -79,7 +79,7 @@ armyStructure evaluateArmyStructure(const CArmedInstance * army)
|
||||
float HeroMovementGoalEngineBase::calculateTurnDistanceInputValue(const CGHeroInstance * h, int3 tile) const
|
||||
{
|
||||
float turns = 0.0f;
|
||||
float distance = CPathfinderHelper::getMovementCost(h, tile);
|
||||
float distance = distanceToTile(h, tile);
|
||||
if(distance)
|
||||
{
|
||||
if(distance < h->movement) //we can move there within one turn
|
||||
|
||||
Reference in New Issue
Block a user