Skip to content

Commit 58abd45

Browse files
committed
Merge pull request OpenRA#5967 from obrakmann/fix5651
Fix aircraft losing selection outside the map borders
2 parents 8a65632 + 42f963d commit 58abd45

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

OpenRA.Game/Selection.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ public void Combine(World world, IEnumerable<Actor> newSelection, bool isCombine
6161

6262
public void Tick(World world)
6363
{
64-
actors.RemoveAll(a => !a.IsInWorld || world.FogObscures(a));
64+
actors.RemoveAll(a => !a.IsInWorld || (a.Owner != world.LocalPlayer && world.FogObscures(a)));
6565

6666
foreach (var cg in controlGroups.Values)
6767
// note: NOT `!a.IsInWorld`, since that would remove things that are in transports.
@@ -88,7 +88,7 @@ public void DoControlGroup(World world, WorldRenderer worldRenderer, int group,
8888
return;
8989
}
9090

91-
var groupActors = controlGroups[group].Where(a => !a.IsDead() && !world.FogObscures(a));
91+
var groupActors = controlGroups[group].Where(a => !a.IsDead());
9292

9393
if (mods.HasModifier(Modifiers.Alt) || MultiTapCount >= 2)
9494
{

0 commit comments

Comments
 (0)