summaryrefslogtreecommitdiff
path: root/src/roadveh_gui.cpp
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2010-01-11 18:34:02 +0000
committerrubidium <rubidium@openttd.org>2010-01-11 18:34:02 +0000
commit833c6f36f3cd93697253bb25203e94da97bbd520 (patch)
tree04080334060312c502bbdbbf26c894c049305b40 /src/roadveh_gui.cpp
parentde878fad312a87837ee12af4c491d45940076ec8 (diff)
downloadopenttd-833c6f36f3cd93697253bb25203e94da97bbd520.tar.xz
(svn r18779) -Codechange: merge the command callbacks of the primary vehicles; they are identical
Diffstat (limited to 'src/roadveh_gui.cpp')
-rw-r--r--src/roadveh_gui.cpp14
1 files changed, 0 insertions, 14 deletions
diff --git a/src/roadveh_gui.cpp b/src/roadveh_gui.cpp
index 7383cf77b..c046c5891 100644
--- a/src/roadveh_gui.cpp
+++ b/src/roadveh_gui.cpp
@@ -154,17 +154,3 @@ void DrawRoadVehImage(const Vehicle *v, int left, int right, int y, VehicleID se
DrawFrameRect((rtl ? pos : left) - 1, y - 1, (rtl ? pos : right) - 1, y + 12, COLOUR_WHITE, FR_BORDERONLY);
}
}
-
-void CcBuildRoadVeh(bool success, TileIndex tile, uint32 p1, uint32 p2)
-{
- const Vehicle *v;
-
- if (!success) return;
-
- v = Vehicle::Get(_new_vehicle_id);
- if (v->tile == _backup_orders_tile) {
- _backup_orders_tile = 0;
- RestoreVehicleOrders(v);
- }
- ShowVehicleViewWindow(v);
-}