src/pathfind.cpp
branchnoai
changeset 10249 58810805030e
parent 10181 54df587fef5d
child 10455 22c441f5adf9
--- a/src/pathfind.cpp	Thu Apr 17 08:40:01 2008 +0000
+++ b/src/pathfind.cpp	Fri Apr 18 23:33:51 2008 +0000
@@ -6,7 +6,6 @@
 #include "openttd.h"
 #include "bridge_map.h"
 #include "station_map.h"
-#include "depot.h"
 #include "tile_cmd.h"
 #include "landscape.h"
 #include "pathfind.h"
@@ -14,7 +13,6 @@
 #include "debug.h"
 #include "tunnel_map.h"
 #include "settings_type.h"
-#include "depot.h"
 #include "tunnelbridge_map.h"
 #include "core/random_func.hpp"
 #include "core/alloc_type.hpp"
@@ -170,10 +168,10 @@
 {
 	if (tracktype == TRANSPORT_RAIL) {
 		/* depot from wrong side */
-		if (IsTileDepotType(tile, TRANSPORT_RAIL) && GetRailDepotDirection(tile) != side) return false;
+		if (IsRailDepotTile(tile) && GetRailDepotDirection(tile) != side) return false;
 	} else if (tracktype == TRANSPORT_ROAD) {
 		/* depot from wrong side */
-		if (IsTileDepotType(tile, TRANSPORT_ROAD) && GetRoadDepotDirection(tile) != side) return false;
+		if (IsRoadDepotTile(tile) && GetRoadDepotDirection(tile) != side) return false;
 		/* non-driverthrough road station from wrong side */
 		if (IsStandardRoadStopTile(tile) && GetRoadStopDir(tile) != side) return false;
 	}