(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
This commit is contained in:
bjarni
2007-01-22 02:09:51 +00:00
parent cf0e5816d6
commit 6ccbfffbea
6 changed files with 80 additions and 216 deletions

View File

@@ -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