(svn r8331) -Feature: the train and aircraft build windows are now resizable in horizontal direction as well

-Codechange: merged train and aircraft build window code
This commit is contained in:
bjarni
2007-01-21 22:50:43 +00:00
parent 612658b506
commit 884af9d856
6 changed files with 431 additions and 598 deletions

View File

@@ -736,9 +736,9 @@ static void DepotWndProc(Window *w, WindowEvent *e)
case DEPOT_WIDGET_BUILD: // Build vehicle
ResetObjectToPlace();
switch (WP(w, depot_d).type) {
case VEH_Train: ShowBuildTrainWindow(w->window_number); break;
case VEH_Road: ShowBuildRoadVehWindow(w->window_number); break;
case VEH_Ship: ShowBuildShipWindow(w->window_number); break;
case VEH_Train:
case VEH_Aircraft:
ShowBuildVehicleWindow(w->window_number, WP(w, depot_d).type);
break;