summaryrefslogtreecommitdiff
path: root/src/depot_gui.cpp
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2007-01-22 02:09:51 +0000
committerbjarni <bjarni@openttd.org>2007-01-22 02:09:51 +0000
commit6ccbfffbeabf2c7c814a5b251265201f86581571 (patch)
tree1f61292e8f2a6f5505daf3630655f44b8c653f16 /src/depot_gui.cpp
parentcf0e5816d6ea6e625803fa3597a74c8f75e98d5e (diff)
downloadopenttd-6ccbfffbeabf2c7c814a5b251265201f86581571.tar.xz
(svn r8338) -Codechange: merged road vehicle build window into the other ones
Note: now all build vehicle windows are merged into build_vehicle_gui.cpp
Diffstat (limited to 'src/depot_gui.cpp')
-rw-r--r--src/depot_gui.cpp10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/depot_gui.cpp b/src/depot_gui.cpp
index bae5637fe..71ab1e799 100644
--- a/src/depot_gui.cpp
+++ b/src/depot_gui.cpp
@@ -735,15 +735,7 @@ static void DepotWndProc(Window *w, WindowEvent *e)
case DEPOT_WIDGET_BUILD: // Build vehicle
ResetObjectToPlace();
- switch (WP(w, depot_d).type) {
- case VEH_Road: ShowBuildRoadVehWindow(w->window_number); break;
- case VEH_Ship:
- case VEH_Train:
- case VEH_Aircraft:
- ShowBuildVehicleWindow(w->window_number, WP(w, depot_d).type);
- break;
- default: NOT_REACHED();
- }
+ ShowBuildVehicleWindow(w->window_number, WP(w, depot_d).type);
break;
case DEPOT_WIDGET_CLONE: // Clone button