mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-27 22:49:25 +02:00
#3290 - skip bad teleports (exit in rocks)
This commit is contained in:
@@ -100,6 +100,12 @@ std::vector<CGPathNode *> NodeStorage::calculateTeleportations(
|
||||
{
|
||||
auto * node = getNode(neighbour, source.node->layer);
|
||||
|
||||
if(!node->coord.valid())
|
||||
{
|
||||
logAi->debug("Teleportation exit is blocked " + neighbour.toString());
|
||||
continue;
|
||||
}
|
||||
|
||||
neighbours.push_back(node);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user