(svn r4788) - Codechange: RAILTYPE_{NORMAL,ELECTRIC,...} and RAIL_TYPE_{NORMAL,SIGNAL,...} have nearly the same name, rename RAIL_TYPE_* to RAIL_TILE_* of extra clarity

This commit is contained in:
rubidium
2006-05-09 08:17:33 +00:00
parent a0e387597a
commit 9b1bbf72ee
15 changed files with 55 additions and 55 deletions

View File

@@ -200,7 +200,7 @@ static Order GetOrderCmdFromTile(const Vehicle *v, TileIndex tile)
switch (GetTileType(tile)) {
case MP_RAILWAY:
if (v->type == VEH_Train && IsTileOwner(tile, _local_player)) {
if (GetRailTileType(tile) == RAIL_TYPE_DEPOT_WAYPOINT &&
if (GetRailTileType(tile) == RAIL_TILE_DEPOT_WAYPOINT &&
GetRailTileSubtype(tile) == RAIL_SUBTYPE_DEPOT) {
order.type = OT_GOTO_DEPOT;
order.flags = OF_PART_OF_ORDERS;