mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-26 03:52:01 +02:00
Fix pathfinding bug.
This commit is contained in:
parent
ec590b9428
commit
436272f00c
@ -101,7 +101,11 @@ ui32 CGHeroInstance::getTileCost(const TerrainTile &dest, const TerrainTile &fro
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!nativeArmy)
|
if (!nativeArmy)
|
||||||
|
{
|
||||||
ret = VLC->heroh->terrCosts[from.terType];
|
ret = VLC->heroh->terrCosts[from.terType];
|
||||||
|
ret-=getSecSkillLevel(SecondarySkill::PATHFINDING)*25;
|
||||||
|
ret = ret < 100 ? 100 : ret;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user