diff options
author | rubidium <rubidium@openttd.org> | 2006-05-09 08:25:31 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2006-05-09 08:25:31 +0000 |
commit | e5bd292dabdf5bbf58e5ce83c13688bbe047a62a (patch) | |
tree | 765d216fd61a2487ac5b4e9ca1bf318934ceac3c /roadveh_cmd.c | |
parent | 9b1bbf72ee7ebb545ba7dc0ea11a84fc18b11c45 (diff) | |
download | openttd-e5bd292dabdf5bbf58e5ce83c13688bbe047a62a.tar.xz |
(svn r4789) - Codechange: rename RoadType to RoadTileType and ROAD_{NORMAL,CROSSING,DEPOT} to ROAD_TILE_* for consistency
Diffstat (limited to 'roadveh_cmd.c')
-rw-r--r-- | roadveh_cmd.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/roadveh_cmd.c b/roadveh_cmd.c index 64efce814..c9d1176f8 100644 --- a/roadveh_cmd.c +++ b/roadveh_cmd.c @@ -298,7 +298,7 @@ static bool EnumRoadSignalFindDepot(TileIndex tile, void* data, int track, uint tile += TileOffsByDir(_road_pf_directions[track]); if (IsTileType(tile, MP_STREET) && - GetRoadType(tile) == ROAD_DEPOT && + GetRoadTileType(tile) == ROAD_TILE_DEPOT && IsTileOwner(tile, rfdd->owner) && length < rfdd->best_length) { rfdd->best_length = length; @@ -1003,7 +1003,7 @@ static int RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection enterdir } if (IsTileType(tile, MP_STREET)) { - if (GetRoadType(tile) == ROAD_DEPOT && IsTileOwner(tile, v->owner)) { + if (GetRoadTileType(tile) == ROAD_TILE_DEPOT && IsTileOwner(tile, v->owner)) { /* Road depot */ bitmask |= _road_veh_fp_ax_or[GetRoadDepotDirection(tile)]; } @@ -1078,7 +1078,7 @@ static int RoadFindPathToDest(Vehicle* v, TileIndex tile, DiagDirection enterdir DiagDirection dir; if (IsTileType(desttile, MP_STREET)) { - if (GetRoadType(desttile) == ROAD_DEPOT) { + if (GetRoadTileType(desttile) == ROAD_TILE_DEPOT) { dir = GetRoadDepotDirection(desttile); goto do_it; } |