소스 검색

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.
Xilmi 1 년 전
부모
커밋
5e6fefdc50
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      AI/Nullkiller/Pathfinding/AINodeStorage.cpp

+ 1 - 2
AI/Nullkiller/Pathfinding/AINodeStorage.cpp

@@ -1413,8 +1413,7 @@ void AINodeStorage::calculateChainInfo(std::vector<AIPath> & paths, const int3 &
 			|| node.layer != layer
 			|| node.action == EPathNodeAction::UNKNOWN
 			|| !node.actor
-			|| !node.actor->hero
-			|| node.actor->hero->getOwner() != ai->playerID)
+			|| !node.actor->hero)
 		{
 			continue;
 		}