diff options
author | bjarni <bjarni@openttd.org> | 2007-01-22 00:26:46 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2007-01-22 00:26:46 +0000 |
commit | 14b29980230f2862329bb3228e1051c0a316f62b (patch) | |
tree | 641962eb406e6ac06b8fac492379680153a55843 /src/vehicle_gui.cpp | |
parent | 1f32ce7e8932208993ef8bfc5c4124606f4ae6c3 (diff) | |
download | openttd-14b29980230f2862329bb3228e1051c0a316f62b.tar.xz |
(svn r8335) -Feature: the build ship window is now also resizable horizontally and contains sorting options
-Codechange: the build ship window is merged into build_vehicle_gui.cpp
Diffstat (limited to 'src/vehicle_gui.cpp')
-rw-r--r-- | src/vehicle_gui.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/vehicle_gui.cpp b/src/vehicle_gui.cpp index 9b6c3c725..fa88841ff 100644 --- a/src/vehicle_gui.cpp +++ b/src/vehicle_gui.cpp @@ -1049,7 +1049,7 @@ static void DrawVehiclePurchaseInfoLocal(const int x, const int y, uint w, const { switch (GetEngine(engine_number)->type) { case VEH_Road: DrawRoadVehPurchaseInfo(x, y, w, engine_number); break; - case VEH_Ship: DrawShipPurchaseInfo(x, y, w, engine_number); break; + case VEH_Ship: case VEH_Train: case VEH_Aircraft: DrawVehiclePurchaseInfo(x, y, w, engine_number); @@ -1739,7 +1739,7 @@ void PlayerVehWndProc(Window *w, WindowEvent *e) case VLW_WIDGET_NEW_VEHICLES: switch (vl->vehicle_type) { case VEH_Road: ShowBuildRoadVehWindow(0); break; - case VEH_Ship: ShowBuildShipWindow(0); break; + case VEH_Ship: case VEH_Train: case VEH_Aircraft: ShowBuildVehicleWindow(0, vl->vehicle_type); break; } |