(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:
bjarni
2006-09-02 21:16:46 +00:00
parent da30222a91
commit 0fc0586bbf
5 changed files with 20 additions and 22 deletions

View File

@@ -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;