mirror of
https://github.com/vcmi/vcmi.git
synced 2025-01-12 02:28:11 +02:00
Do not generate GatherArmy goal as result of GatherArmy decomposition
This commit is contained in:
parent
1f83953da4
commit
b492e7f3e8
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user