Added option to ignore guards in pathfinder

Used for simturns contact detection, by default disabled for player
pathfinding
This commit is contained in:
Ivan Savenko committed 2024-01-13 19:44:37 +02:00
1 parent f6e0f46040
commit 8303ce5d13
8 files changed
+16 -1

No files matched your search

@@ -41,6 +41,7 @@ namespace AIPathfinding
std::shared_ptr<AINodeStorage> nodeStorage)
:PathfinderConfig(nodeStorage, makeRuleset(cb, ai, nodeStorage)), hero(nodeStorage->getHero())
{
options.ignoreGuards = false;
options.useEmbarkAndDisembark = true;
options.useTeleportTwoWay = true;
options.useTeleportOneWay = true;