Remove an unnecessary Where in Crate.cs
This commit is contained in:
@@ -178,8 +178,8 @@ namespace OpenRA.Mods.Common.Traits
|
|||||||
return SubCell.FullCell;
|
return SubCell.FullCell;
|
||||||
|
|
||||||
return !self.World.ActorMap.GetActorsAt(cell)
|
return !self.World.ActorMap.GetActorsAt(cell)
|
||||||
.Where(x => x != ignoreActor)
|
.Any(x => x != ignoreActor)
|
||||||
.Any() ? SubCell.FullCell : SubCell.Invalid;
|
? SubCell.FullCell : SubCell.Invalid;
|
||||||
}
|
}
|
||||||
|
|
||||||
public bool CanEnterCell(CPos a, Actor ignoreActor = null, bool checkTransientActors = true)
|
public bool CanEnterCell(CPos a, Actor ignoreActor = null, bool checkTransientActors = true)
|
||||||
|
|||||||
Reference in New Issue
Block a user