forked from mirror/OpenTTD
(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
This commit is contained in:
@@ -1437,11 +1437,6 @@ static void ShowPlayerTrainsLocal(PlayerID player, StationID station, OrderID or
|
||||
}
|
||||
|
||||
if (w != NULL) {
|
||||
vehiclelist_d *vl = &WP(w, vehiclelist_d);
|
||||
vl->flags = VL_REBUILD | (_sorting.train.order << (VL_DESC - 1));
|
||||
vl->sort_type = _sorting.train.criteria;
|
||||
|
||||
w->caption_color = player;
|
||||
w->hscroll.cap = 10 * 29;
|
||||
w->vscroll.cap = 7; // maximum number of vehicles shown
|
||||
w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
|
||||
|
Reference in New Issue
Block a user