Use Map.IsInMap(CPos) for things that are checking CPos.
This commit is contained in:
@@ -101,7 +101,7 @@ namespace OpenRA.Mods.RA.Move
|
||||
|
||||
public int MovementCostForCell(World world, CPos cell)
|
||||
{
|
||||
if (!world.Map.IsInMap(cell.X, cell.Y))
|
||||
if (!world.Map.IsInMap(cell))
|
||||
return int.MaxValue;
|
||||
|
||||
var index = world.Map.GetTerrainIndex(cell);
|
||||
|
||||
Reference in New Issue
Block a user