From 3dae1a9bbaa78b4cd8c9aacea2b6a4165b7975a1 Mon Sep 17 00:00:00 2001 From: rubidium Date: Tue, 9 May 2006 08:17:33 +0000 Subject: (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 --- order_gui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'order_gui.c') diff --git a/order_gui.c b/order_gui.c index af6f1ae33..d81f260bb 100644 --- a/order_gui.c +++ b/order_gui.c @@ -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; -- cgit v1.2.3-54-g00ecf