forked from mirror/OpenTTD
(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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user