From 42f963d6875986fcd6b81d31b0dc4ae35845a923 Mon Sep 17 00:00:00 2001 From: Oliver Brakmann Date: Wed, 16 Jul 2014 13:14:44 +0200 Subject: [PATCH] Fix aircraft losing selection outside the map borders Fixes #5651 --- OpenRA.Game/Selection.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/OpenRA.Game/Selection.cs b/OpenRA.Game/Selection.cs index d72bb13245..7dfc6c8600 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 || world.FogObscures(a)); + actors.RemoveAll(a => !a.IsInWorld || (a.Owner != world.LocalPlayer && world.FogObscures(a))); foreach (var cg in controlGroups.Values) // note: NOT `!a.IsInWorld`, since that would remove things that are in transports. @@ -88,7 +88,7 @@ namespace OpenRA return; } - var groupActors = controlGroups[group].Where(a => !a.IsDead() && !world.FogObscures(a)); + var groupActors = controlGroups[group].Where(a => !a.IsDead()); if (mods.HasModifier(Modifiers.Alt) || MultiTapCount >= 2) {