浏览代码

Do not generate GatherArmy goal as result of GatherArmy decomposition

Dydzio 6 年之前
父节点
当前提交
b492e7f3e8
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      AI/VCAI/Goals/GatherArmy.cpp

+ 2 - 2
AI/VCAI/Goals/GatherArmy.cpp

@@ -126,13 +126,13 @@ TGoalVec GatherArmy::getAllPossibleSubgoals()
 		// Go to the other hero if we are faster
 		if(!vstd::contains(ai->visitedHeroes[hero], h))
 		{
-			vstd::concatenate(ret, ai->ah->howToVisitObj(hero, h));
+			vstd::concatenate(ret, ai->ah->howToVisitObj(hero, h, false));
 		}
 
 		// Go to the other hero if we are faster
 		if(!vstd::contains(ai->visitedHeroes[h], hero))
 		{
-			vstd::concatenate(ret, ai->ah->howToVisitObj(h, hero.get()));
+			vstd::concatenate(ret, ai->ah->howToVisitObj(h, hero.get(), false));
 		}
 	}