diff options
author | bjarni <bjarni@openttd.org> | 2006-09-28 23:05:03 +0000 |
---|---|---|
committer | bjarni <bjarni@openttd.org> | 2006-09-28 23:05:03 +0000 |
commit | 4ccdb0686f3b401199efc975e8ce9f75bbcde0d7 (patch) | |
tree | b9c5f2fcf23245015608eafaccdf02f62b94eda6 /order_gui.c | |
parent | 1ae8aa4b809c3ddff032e2f3de7317490efa5235 (diff) | |
download | openttd-4ccdb0686f3b401199efc975e8ce9f75bbcde0d7.tar.xz |
(svn r6562) -Codechange: merged the vehicle list window widget arrays
It made no sense to maintain 8 nearly identically arrays when a single one can do the job
Also made the two buttons always use half of the bottom width each, even when resizing
Diffstat (limited to 'order_gui.c')
-rw-r--r-- | order_gui.c | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/order_gui.c b/order_gui.c index 2bcf0ed76..c1b262a72 100644 --- a/order_gui.c +++ b/order_gui.c @@ -21,6 +21,7 @@ #include "waypoint.h" #include "train.h" #include "water_map.h" +#include "vehicle_gui.h" static int OrderGetSel(const Window *w) { @@ -463,13 +464,7 @@ static void OrdersWndProc(Window *w, WindowEvent *e) OrderClick_Transfer(w, v); break; case 11: /* Vehicle with same shared Orders button */ - switch (v->type) { - case VEH_Train: ShowVehWithSharedOrdersTrains(v); break; - case VEH_Road: ShowVehWithSharedOrdersRoadVehicles(v); break; - case VEH_Ship: ShowVehWithSharedOrdersShips(v); break; - case VEH_Aircraft: ShowVehWithSharedOrdersAircraft(v); break; - default: NOT_REACHED(); break; - } + ShowVehWithSharedOrders(v, v->type); break; } } break; |