Use Map.IsInMap(CPos) for things that are checking CPos.

This commit is contained in:
Paul Chote
2014-03-10 00:07:08 +13:00
parent e825205542
commit 2026747f2a
6 changed files with 9 additions and 8 deletions

View File

@@ -54,7 +54,7 @@ namespace OpenRA.Mods.RA
public IEnumerable<Pair<CPos, SubCell>> OccupiedCells() { yield return Pair.New(TopLeft, SubCell.FullCell); }
public bool CanEnterCell(CPos cell, Actor ignoreActor, bool checkTransientActors)
{
if (!self.World.Map.IsInMap(cell.X, cell.Y))
if (!self.World.Map.IsInMap(cell))
return false;
if (!info.AllowedTerrain.Contains(self.World.Map.GetTerrainInfo(cell).Type))