TileSet and Map are now in Rules, not Game

This commit is contained in:
Bob
2009-11-19 17:08:23 +13:00
parent c0fe3fa4c9
commit 732f3c6c63
12 changed files with 44 additions and 46 deletions

View File

@@ -42,7 +42,7 @@ namespace OpenRa.Game
continue;
if (ignoreTerrain)
{
if (!Game.map.IsInMap(newHere.X, newHere.Y)) continue;
if (!Rules.Map.IsInMap(newHere.X, newHere.Y)) continue;
}
else
{
@@ -50,7 +50,7 @@ namespace OpenRa.Game
continue;
if (!Game.BuildingInfluence.CanMoveHere(newHere))
continue;
if (Game.map.IsOverlaySolid(newHere))
if (Rules.Map.IsOverlaySolid(newHere))
continue;
}
if( checkForBlocked && Game.UnitInfluence.GetUnitAt( newHere ) != null )