Merge pull request #11812 from Phrohdoh/fix-ai-capturers

Fix CanBeViewedByPlayer query in HackyAI.GetVisibleActorsBelongingToPlayer
This commit is contained in:
Oliver Brakmann
2016-08-13 20:14:37 +02:00
committed by GitHub

View File

@@ -683,7 +683,7 @@ namespace OpenRA.Mods.Common.AI
IEnumerable<Actor> GetVisibleActorsBelongingToPlayer(Player owner)
{
foreach (var actor in GetActorsThatCanBeOrderedByPlayer(owner))
if (actor.CanBeViewedByPlayer(owner))
if (actor.CanBeViewedByPlayer(Player))
yield return actor;
}