mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-17 11:56:46 +02:00
Commented out some extensive logs which slowed down pathfinder.
This commit is contained in:
parent
f4a8a1294e
commit
e996879733
@ -214,10 +214,10 @@ namespace AIPathfinding
|
|||||||
auto guardsAlreadyBypassed = destGuardians.empty() && srcGuardians.size();
|
auto guardsAlreadyBypassed = destGuardians.empty() && srcGuardians.size();
|
||||||
if(guardsAlreadyBypassed && nodeStorage->isBattleNode(source.node))
|
if(guardsAlreadyBypassed && nodeStorage->isBattleNode(source.node))
|
||||||
{
|
{
|
||||||
logAi->trace(
|
//logAi->trace(
|
||||||
"Bypass guard at destination while moving %s -> %s",
|
// "Bypass guard at destination while moving %s -> %s",
|
||||||
source.coord.toString(),
|
// source.coord.toString(),
|
||||||
destination.coord.toString());
|
// destination.coord.toString());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -230,10 +230,10 @@ namespace AIPathfinding
|
|||||||
|
|
||||||
if(!battleNodeOptional)
|
if(!battleNodeOptional)
|
||||||
{
|
{
|
||||||
logAi->trace(
|
//logAi->trace(
|
||||||
"Can not allocate battle node while moving %s -> %s",
|
// "Can not allocate battle node while moving %s -> %s",
|
||||||
source.coord.toString(),
|
// source.coord.toString(),
|
||||||
destination.coord.toString());
|
// destination.coord.toString());
|
||||||
|
|
||||||
destination.blocked = true;
|
destination.blocked = true;
|
||||||
|
|
||||||
@ -244,10 +244,10 @@ namespace AIPathfinding
|
|||||||
|
|
||||||
if(battleNode->locked)
|
if(battleNode->locked)
|
||||||
{
|
{
|
||||||
logAi->trace(
|
//logAi->trace(
|
||||||
"Block bypass guard at destination while moving %s -> %s",
|
// "Block bypass guard at destination while moving %s -> %s",
|
||||||
source.coord.toString(),
|
// source.coord.toString(),
|
||||||
destination.coord.toString());
|
// destination.coord.toString());
|
||||||
|
|
||||||
destination.blocked = true;
|
destination.blocked = true;
|
||||||
|
|
||||||
@ -267,11 +267,11 @@ namespace AIPathfinding
|
|||||||
|
|
||||||
battleNode->specialAction = std::make_shared<BattleAction>(destination.coord);
|
battleNode->specialAction = std::make_shared<BattleAction>(destination.coord);
|
||||||
|
|
||||||
logAi->trace(
|
//logAi->trace(
|
||||||
"Begin bypass guard at destination with danger %s while moving %s -> %s",
|
// "Begin bypass guard at destination with danger %s while moving %s -> %s",
|
||||||
std::to_string(danger),
|
// std::to_string(danger),
|
||||||
source.coord.toString(),
|
// source.coord.toString(),
|
||||||
destination.coord.toString());
|
// destination.coord.toString());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -312,10 +312,10 @@ namespace AIPathfinding
|
|||||||
|
|
||||||
if(blocker == BlockingReason::SOURCE_GUARDED && nodeStorage->isBattleNode(source.node))
|
if(blocker == BlockingReason::SOURCE_GUARDED && nodeStorage->isBattleNode(source.node))
|
||||||
{
|
{
|
||||||
logAi->trace(
|
//logAi->trace(
|
||||||
"Bypass src guard while moving from %s to %s",
|
// "Bypass src guard while moving from %s to %s",
|
||||||
source.coord.toString(),
|
// source.coord.toString(),
|
||||||
destination.coord.toString());
|
// destination.coord.toString());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -347,10 +347,10 @@ namespace AIPathfinding
|
|||||||
// we can not directly bypass objects, we need to interact with them first
|
// we can not directly bypass objects, we need to interact with them first
|
||||||
destination.node->theNodeBefore = source.node;
|
destination.node->theNodeBefore = source.node;
|
||||||
|
|
||||||
logAi->trace(
|
//logAi->trace(
|
||||||
"Link src node %s to destination node %s while bypassing visitable obj",
|
// "Link src node %s to destination node %s while bypassing visitable obj",
|
||||||
source.coord.toString(),
|
// source.coord.toString(),
|
||||||
destination.coord.toString());
|
// destination.coord.toString());
|
||||||
|
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user