1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-11-06 09:09:40 +02:00

Moved some pathfinding options to game settings

This commit is contained in:
Ivan Savenko
2023-06-22 17:03:18 +03:00
parent 6546242c03
commit e0ea994656
6 changed files with 43 additions and 83 deletions

View File

@@ -41,6 +41,11 @@ namespace AIPathfinding
std::shared_ptr<AINodeStorage> nodeStorage)
:PathfinderConfig(nodeStorage, makeRuleset(cb, ai, nodeStorage)), hero(nodeStorage->getHero())
{
options.useEmbarkAndDisembark = true;
options.useTeleportTwoWay = true;
options.useTeleportOneWay = true;
options.useTeleportOneWayRandom = true;
options.useTeleportWhirlpool = true;
}
AIPathfinderConfig::~AIPathfinderConfig() = default;