summaryrefslogtreecommitdiff
path: root/ai/trolly/trolly.c
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2006-05-09 08:25:31 +0000
committerrubidium <rubidium@openttd.org>2006-05-09 08:25:31 +0000
commite5bd292dabdf5bbf58e5ce83c13688bbe047a62a (patch)
tree765d216fd61a2487ac5b4e9ca1bf318934ceac3c /ai/trolly/trolly.c
parent9b1bbf72ee7ebb545ba7dc0ea11a84fc18b11c45 (diff)
downloadopenttd-e5bd292dabdf5bbf58e5ce83c13688bbe047a62a.tar.xz
(svn r4789) - Codechange: rename RoadType to RoadTileType and ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
Diffstat (limited to 'ai/trolly/trolly.c')
-rw-r--r--ai/trolly/trolly.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ai/trolly/trolly.c b/ai/trolly/trolly.c
index 257990164..5e8334ba2 100644
--- a/ai/trolly/trolly.c
+++ b/ai/trolly/trolly.c
@@ -796,7 +796,7 @@ static void AiNew_State_FindDepot(Player *p)
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 @@ static void AiNew_State_BuildDepot(Player *p)
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;