Fix CA1862
This commit is contained in:
committed by
Pavel Penev
parent
ed90322a0b
commit
332ab244a7
@@ -150,7 +150,9 @@ namespace OpenRA.Mods.Common.Activities
|
||||
var positionable = (IPositionable)movement;
|
||||
var mobile = positionable as Mobile;
|
||||
minefield.RemoveAll(c => self.World.ActorMap.GetActorsAt(c)
|
||||
.Any(a => a.Info.Name == minelayer.Info.Mine.ToLowerInvariant() && a.CanBeViewedByPlayer(self.Owner)) ||
|
||||
.Any(a =>
|
||||
string.Equals(a.Info.Name, minelayer.Info.Mine, System.StringComparison.OrdinalIgnoreCase)
|
||||
&& a.CanBeViewedByPlayer(self.Owner)) ||
|
||||
((!positionable.CanEnterCell(c, null, BlockedByActor.Immovable) || (mobile != null && !mobile.CanStayInCell(c)))
|
||||
&& self.Owner.Shroud.IsVisible(c)));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user