diff options
author | rubidium <rubidium@openttd.org> | 2010-01-11 18:34:02 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2010-01-11 18:34:02 +0000 |
commit | 833c6f36f3cd93697253bb25203e94da97bbd520 (patch) | |
tree | 04080334060312c502bbdbbf26c894c049305b40 /src/train_gui.cpp | |
parent | de878fad312a87837ee12af4c491d45940076ec8 (diff) | |
download | openttd-833c6f36f3cd93697253bb25203e94da97bbd520.tar.xz |
(svn r18779) -Codechange: merge the command callbacks of the primary vehicles; they are identical
Diffstat (limited to 'src/train_gui.cpp')
-rw-r--r-- | src/train_gui.cpp | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/src/train_gui.cpp b/src/train_gui.cpp index 9efe67d51..40be8f10f 100644 --- a/src/train_gui.cpp +++ b/src/train_gui.cpp @@ -47,18 +47,6 @@ void CcBuildWagon(bool success, TileIndex tile, uint32 p1, uint32 p2) } } -void CcBuildLoco(bool success, TileIndex tile, uint32 p1, uint32 p2) -{ - if (!success) return; - - const Vehicle *v = Vehicle::Get(_new_vehicle_id); - if (tile == _backup_orders_tile) { - _backup_orders_tile = 0; - RestoreVehicleOrders(v); - } - ShowVehicleViewWindow(v); -} - /** * Draws an image of a whole train * @param v Front vehicle |