summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-09-03 23:14:39 +0000
committerbjarni <bjarni@openttd.org>2006-09-03 23:14:39 +0000
commit718255a7003d8164cee09b061b3a3bd2e29c4445 (patch)
tree817487db0395cb7c4520782b36843e4071fa6934 /roadveh_gui.c
parentadc785b69843eb0e5829ea0aa53cdeb2c687c7bb (diff)
downloadopenttd-718255a7003d8164cee09b061b3a3bd2e29c4445.tar.xz
(svn r6370) -Codechange: moved all the remaining setup for PlayerVehWndProc() into WE_CREATE
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 77ba1fb51..b8600f7a9 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -963,13 +963,6 @@ static void ShowPlayerRoadVehiclesLocal(PlayerID player, StationID station, Orde
w = AllocateWindowDescFront(&_other_player_roadveh_desc, (station << 16) | (VEH_Road << 11) | VLW_flag | player);
}
}
-
- if (w != NULL) {
- w->vscroll.cap = 7; // maximum number of vehicles shown
- w->widget[7].unkA = (w->vscroll.cap << 8) + 1;
- w->resize.step_height = PLY_WND_PRC__SIZE_OF_ROW_SMALL;
- w->resize.height = 220 - (PLY_WND_PRC__SIZE_OF_ROW_SMALL * 3); /* Minimum of 4 vehicles */
- }
}
void ShowPlayerRoadVehicles(PlayerID player, StationID station)