From 44582ae647c600c7af3bd8c2a5dc13e26174aa3e Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Sun, 7 Sep 2014 01:10:52 +0200 Subject: [PATCH] Fix another shroud/selection bug in observer mode In a player view, enemy units would not be unselected when they entered the shroud. --- OpenRA.Game/Selection.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OpenRA.Game/Selection.cs b/OpenRA.Game/Selection.cs index 28f3359905..c40f284d82 100644 --- a/OpenRA.Game/Selection.cs +++ b/OpenRA.Game/Selection.cs @@ -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.