From 9ee944cabb0a716514175b37311819b439be0298 Mon Sep 17 00:00:00 2001 From: tron Date: Sun, 4 Jun 2006 09:28:33 +0000 Subject: (svn r5094) Remove _new_{aircraft,roadveh,ship,train,wagon}_id. _new_vehicle_id is enough. --- train_gui.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'train_gui.c') diff --git a/train_gui.c b/train_gui.c index 597c0ce17..cc6f240b8 100644 --- a/train_gui.c +++ b/train_gui.c @@ -152,7 +152,7 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) if (found != NULL) { found = GetLastVehicleInChain(found); // put the new wagon at the end of the loco. - DoCommandP(0, _new_wagon_id | (found->index<<16), 0, NULL, CMD_MOVE_RAIL_VEHICLE); + DoCommandP(0, _new_vehicle_id | (found->index << 16), 0, NULL, CMD_MOVE_RAIL_VEHICLE); RebuildVehicleLists(); } } @@ -163,7 +163,7 @@ void CcBuildLoco(bool success, TileIndex tile, uint32 p1, uint32 p2) if (!success) return; - v = GetVehicle(_new_train_id); + v = GetVehicle(_new_vehicle_id); if (tile == _backup_orders_tile) { _backup_orders_tile = 0; RestoreVehicleOrders(v, _backup_orders_data); @@ -173,7 +173,7 @@ void CcBuildLoco(bool success, TileIndex tile, uint32 p1, uint32 p2) void CcCloneTrain(bool success, TileIndex tile, uint32 p1, uint32 p2) { - if (success) ShowTrainViewWindow(GetVehicle(_new_train_id)); + if (success) ShowTrainViewWindow(GetVehicle(_new_vehicle_id)); } static void engine_drawing_loop(int *x, int *y, int *pos, int *sel, -- cgit v1.2.3-54-g00ecf