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:
@@ -981,11 +981,6 @@ static void ShowPlayerShipsLocal(PlayerID player, StationID station, OrderID ord
|
||||
}
|
||||
|
||||
if (w != NULL) {
|
||||
vehiclelist_d *vl = &WP(w, vehiclelist_d);
|
||||
vl->flags = VL_REBUILD | (_sorting.ship.order << (VL_DESC - 1));
|
||||
vl->sort_type = _sorting.ship.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;
|
||||
|
Reference in New Issue
Block a user