Remove an unnecessary Where in Crate.cs

This commit is contained in:
abcdefg30
2015-12-29 14:50:47 +01:00
parent 2debda926a
commit e343803810

View File

@@ -178,8 +178,8 @@ namespace OpenRA.Mods.Common.Traits
return SubCell.FullCell;
return !self.World.ActorMap.GetActorsAt(cell)
.Where(x => x != ignoreActor)
.Any() ? SubCell.FullCell : SubCell.Invalid;
.Any(x => x != ignoreActor)
? SubCell.FullCell : SubCell.Invalid;
}
public bool CanEnterCell(CPos a, Actor ignoreActor = null, bool checkTransientActors = true)