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

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
2024-01-13 19:44:37 +02:00
parent f6e0f46040
commit 8303ce5d13
8 changed files with 16 additions and 1 deletions

View File

@@ -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;