summaryrefslogtreecommitdiff
path: root/aircraft_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-02 21:16:46 +0000
committerbjarni <bjarni@openttd.org>2006-09-02 21:16:46 +0000
commit0fc0586bbff1dbb509a09d2a920f3284834bcc93 (patch)
treee78b80caa54c8d67473068ad6fa518793dad3efd /aircraft_gui.c
parentda30222a912b535e20130e31013996fb9ff7f6de (diff)
downloadopenttd-0fc0586bbff1dbb509a09d2a920f3284834bcc93.tar.xz
(svn r6350) -Codechange: moved some setup stuff into WE_CREATE in PlayerVehWndProc()
This is possible now that the window number is known when running WE_CREATE and it's a nicer solution
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r--aircraft_gui.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c
index 2df4e6dca..72b20bcf4 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -1039,11 +1039,6 @@ void ShowPlayerAircraftLocal(PlayerID player, StationID station, OrderID order,
}
if (w != NULL) {
- vehiclelist_d *vl = &WP(w, vehiclelist_d);
- vl->flags = VL_REBUILD | (_sorting.aircraft.order << (VL_DESC - 1));
- vl->sort_type = _sorting.aircraft.criteria;
-
- w->caption_color = player;
w->vscroll.cap = 4;
w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
w->resize.step_height = PLY_WND_PRC__SIZE_OF_ROW_BIG;