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 | 2a337ab009d65717fe16862251631050e8a3a8e4 (patch) | |
tree | 765d216fd61a2487ac5b4e9ca1bf318934ceac3c /roadveh_cmd.c | |
parent | 3dae1a9bbaa78b4cd8c9aacea2b6a4165b7975a1 (diff) | |
download | openttd-2a337ab009d65717fe16862251631050e8a3a8e4.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; } |