Fix minelayers leaking enemy mine positions through the fog.
This commit is contained in:
@@ -108,7 +108,7 @@ namespace OpenRA.Mods.Cnc.Activities
|
|||||||
{
|
{
|
||||||
var positionable = (IPositionable)movement;
|
var positionable = (IPositionable)movement;
|
||||||
minefield.RemoveAll(c => self.World.ActorMap.GetActorsAt(c)
|
minefield.RemoveAll(c => self.World.ActorMap.GetActorsAt(c)
|
||||||
.Any(a => a.Info.Name == minelayer.Info.Mine.ToLowerInvariant()) ||
|
.Any(a => a.Info.Name == minelayer.Info.Mine.ToLowerInvariant() && a.CanBeViewedByPlayer(self.Owner)) ||
|
||||||
(!positionable.CanEnterCell(c, null, BlockedByActor.Immovable) && !self.World.FogObscures(c)));
|
(!positionable.CanEnterCell(c, null, BlockedByActor.Immovable) && !self.World.FogObscures(c)));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user