|
|
@@ -107,6 +107,7 @@ bool TurnOrderProcessor::playersInContact(PlayerColor left, PlayerColor right) c
|
|
|
CPathsInfo out(mapSize, hero);
|
|
|
auto config = std::make_shared<SingleHeroPathfinderConfig>(out, gameHandler->gameState(), hero);
|
|
|
config->options.ignoreGuards = true;
|
|
|
+ config->options.turnLimit = 1;
|
|
|
CPathfinder pathfinder(gameHandler->gameState(), config);
|
|
|
pathfinder.calculatePaths();
|
|
|
|
|
|
@@ -122,6 +123,7 @@ bool TurnOrderProcessor::playersInContact(PlayerColor left, PlayerColor right) c
|
|
|
CPathsInfo out(mapSize, hero);
|
|
|
auto config = std::make_shared<SingleHeroPathfinderConfig>(out, gameHandler->gameState(), hero);
|
|
|
config->options.ignoreGuards = true;
|
|
|
+ config->options.turnLimit = 1;
|
|
|
CPathfinder pathfinder(gameHandler->gameState(), config);
|
|
|
pathfinder.calculatePaths();
|
|
|
|