mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-14 10:12:59 +02:00
Reverted fix for not trying to moving foreign heroes
While it fixed the bug it was supposed to fix it caused another severe bug: AI wasn't generating a thread-map anymore. Original bug needs to find another fix.
This commit is contained in:
parent
0143a52755
commit
5e6fefdc50
@ -1413,8 +1413,7 @@ void AINodeStorage::calculateChainInfo(std::vector<AIPath> & paths, const int3 &
|
|||||||
|| node.layer != layer
|
|| node.layer != layer
|
||||||
|| node.action == EPathNodeAction::UNKNOWN
|
|| node.action == EPathNodeAction::UNKNOWN
|
||||||
|| !node.actor
|
|| !node.actor
|
||||||
|| !node.actor->hero
|
|| !node.actor->hero)
|
||||||
|| node.actor->hero->getOwner() != ai->playerID)
|
|
||||||
{
|
{
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user