--- 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;