moved Game.PathFinder into World

This commit is contained in:
Bob
2010-01-18 02:04:31 +13:00
parent 2f568ce829
commit a98296c4c4
6 changed files with 14 additions and 13 deletions

View File

@@ -19,7 +19,6 @@ namespace OpenRa
public static World world;
internal static Viewport viewport;
public static PathFinder PathFinder;
public static Controller controller;
internal static Chrome chrome;
public static UserSettings Settings;
@@ -90,8 +89,6 @@ namespace OpenRa
LoadMapActors(Rules.AllRules);
skipMakeAnims = false;
PathFinder = new PathFinder();
chrome = new Chrome(renderer);
SpawnPoints = Rules.AllRules.GetSection("Waypoints")
@@ -336,7 +333,7 @@ namespace OpenRa
foreach (var t in Footprint.Tiles(buildingName, bi, position)) search.AddInitialCell(t);
return Game.PathFinder.FindPath(search).Count != 0;
return Game.world.PathFinder.FindPath(search).Count != 0;
}
public static void SyncLobbyInfo(string data)