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

@@ -124,7 +124,7 @@ namespace OpenRA.Mods.RA.Move
var newHere = p.Location + d;
// Is this direction flat-out unusable or already seen?
if (!world.Map.IsInMap(newHere.X, newHere.Y))
if (!world.Map.IsInMap(newHere))
continue;
if (cellInfo[newHere.X, newHere.Y].Seen)
continue;
@@ -191,7 +191,7 @@ namespace OpenRA.Mods.RA.Move
public void AddInitialCell(CPos location)
{
if (!world.Map.IsInMap(location.X, location.Y))
if (!world.Map.IsInMap(location))
return;
cellInfo[location.X, location.Y] = new CellInfo(0, location, false);