Fix IDE0083
This commit is contained in:
committed by
Pavel Penev
parent
bd2b3d9793
commit
164abfdae1
@@ -316,7 +316,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
{
|
||||
foreach (var actor in self.World.ActorMap.GetActorsAt(cell))
|
||||
{
|
||||
if (!(actor.OccupiesSpace is Mobile move) || move.IsTraitDisabled || !move.IsLeaving())
|
||||
if (actor.OccupiesSpace is not Mobile move || move.IsTraitDisabled || !move.IsLeaving())
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -242,7 +242,7 @@ namespace OpenRA.Mods.Common.Activities
|
||||
else if (repairableNear == null)
|
||||
QueueChild(move.MoveToTarget(self, host));
|
||||
}
|
||||
else if (repairableNear == null && !(self.CurrentActivity.NextActivity is Move))
|
||||
else if (repairableNear == null && self.CurrentActivity.NextActivity is not Move)
|
||||
QueueChild(move.MoveToTarget(self, host));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user