summaryrefslogtreecommitdiff
path: root/vehicle_gui.c
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2005-01-10 12:14:15 +0000
committerdarkvater <darkvater@openttd.org>2005-01-10 12:14:15 +0000
commit49e7939a102bbed5066fff9daa3aafb4c3a8564a (patch)
tree70f154ec766ee3f85fb54e9852138989550fcacf /vehicle_gui.c
parent53bd40ebaf74671a0a44bb5d1c37eb892510fc3e (diff)
downloadopenttd-49e7939a102bbed5066fff9daa3aafb4c3a8564a.tar.xz
(svn r1460) -Fix: [1099225] Bug Fix - Vehicle Lists not updated at Acqusition (thx tamlin and mpetrov) This also fixes some bug but can't find i right now.
Diffstat (limited to 'vehicle_gui.c')
-rw-r--r--vehicle_gui.c32
1 files changed, 12 insertions, 20 deletions
diff --git a/vehicle_gui.c b/vehicle_gui.c
index 78cd4bd03..4cc1e956c 100644
--- a/vehicle_gui.c
+++ b/vehicle_gui.c
@@ -46,16 +46,12 @@ void RebuildVehicleLists(void)
for (w = _windows; w != _last_window; ++w)
switch (w->window_class) {
- case WC_TRAINS_LIST:
- case WC_ROADVEH_LIST:
- case WC_SHIPS_LIST:
- case WC_AIRCRAFT_LIST:
- WP(w, vehiclelist_d).flags |= VL_REBUILD;
- SetWindowDirty(w);
- break;
-
- default:
- break;
+ case WC_TRAINS_LIST: case WC_ROADVEH_LIST:
+ case WC_SHIPS_LIST: case WC_AIRCRAFT_LIST:
+ WP(w, vehiclelist_d).flags |= VL_REBUILD;
+ SetWindowDirty(w);
+ break;
+ default: break;
}
}
@@ -65,16 +61,12 @@ void ResortVehicleLists(void)
for (w = _windows; w != _last_window; ++w)
switch (w->window_class) {
- case WC_TRAINS_LIST:
- case WC_ROADVEH_LIST:
- case WC_SHIPS_LIST:
- case WC_AIRCRAFT_LIST:
- WP(w, vehiclelist_d).flags |= VL_RESORT;
- SetWindowDirty(w);
- break;
-
- default:
- break;
+ case WC_TRAINS_LIST: case WC_ROADVEH_LIST:
+ case WC_SHIPS_LIST: case WC_AIRCRAFT_LIST:
+ WP(w, vehiclelist_d).flags |= VL_RESORT;
+ SetWindowDirty(w);
+ break;
+ default: break;
}
}