ai/trolly/trolly.c
changeset 3793 7fe24e10ea63
parent 3644 7c9a6a91873b
child 3885 e67faccf52f5
--- a/ai/trolly/trolly.c	Tue May 09 08:17:33 2006 +0000
+++ b/ai/trolly/trolly.c	Tue May 09 08:25:31 2006 +0000
@@ -796,7 +796,7 @@
 			TileIndex t = tile + TileOffsByDir(j);
 
 			if (IsTileType(t, MP_STREET) &&
-					GetRoadType(t) == ROAD_DEPOT &&
+					GetRoadTileType(t) == ROAD_TILE_DEPOT &&
 					IsTileOwner(t, _current_player) &&
 					GetRoadDepotDirection(t) == ReverseDiagDir(j)) {
 				p->ainew.depot_tile = t;
@@ -1097,7 +1097,7 @@
 	int res = 0;
 	assert(p->ainew.state == AI_STATE_BUILD_DEPOT);
 
-	if (IsTileType(p->ainew.depot_tile, MP_STREET) && GetRoadType(p->ainew.depot_tile) == ROAD_DEPOT) {
+	if (IsTileType(p->ainew.depot_tile, MP_STREET) && GetRoadTileType(p->ainew.depot_tile) == ROAD_TILE_DEPOT) {
 		if (IsTileOwner(p->ainew.depot_tile, _current_player)) {
 			// The depot is already builded!
 			p->ainew.state = AI_STATE_BUILD_VEHICLE;