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

@@ -90,7 +90,7 @@ namespace OpenRA.Mods.RA
public bool CanEnterCell(CPos cell, Actor ignoreActor, bool checkTransientActors)
{
if (!self.World.Map.IsInMap(cell.X, cell.Y)) return false;
if (!self.World.Map.IsInMap(cell)) return false;
var type = self.World.Map.GetTerrainInfo(cell).Type;
if (!info.TerrainTypes.Contains(type))