diff options
author | bjarni <bjarni@openttd.org> | 2007-01-22 02:09:51 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-01-22 02:09:51 +0000 |
commit | 71d22b2f5e2152a9c78dc833acc80f7e457c2347 (patch) | |
tree | 1f61292e8f2a6f5505daf3630655f44b8c653f16 /src/depot_gui.cpp | |
parent | 09c9fe501f03db04088df7598be609ef0a07b773 (diff) | |
download | openttd-71d22b2f5e2152a9c78dc833acc80f7e457c2347.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.cpp | 10 |
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 |