Fix another shroud/selection bug in observer mode

In a player view, enemy units would not be unselected when they entered
the shroud.
This commit is contained in:
Oliver Brakmann
2014-09-07 01:10:52 +02:00
parent bc50e1b0e2
commit 44582ae647

View File

@@ -61,7 +61,7 @@ namespace OpenRA
public void Tick(World world)
{
actors.RemoveAll(a => !a.IsInWorld || (!a.Owner.IsAlliedWith(world.LocalPlayer) && world.FogObscures(a)));
actors.RemoveAll(a => !a.IsInWorld || (!a.Owner.IsAlliedWith(world.RenderPlayer) && world.FogObscures(a)));
foreach (var cg in controlGroups.Values)
// note: NOT `!a.IsInWorld`, since that would remove things that are in transports.