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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user