summaryrefslogtreecommitdiff
path: root/train_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
commite42d819b6aa6ae343968b52cfd8567bcd0300ab8 (patch)
tree817487db0395cb7c4520782b36843e4071fa6934 /train_gui.c
parent7ab6ae3a21454bf7eb51ed9fea3bed2362b85996 (diff)
downloadopenttd-e42d819b6aa6ae343968b52cfd8567bcd0300ab8.tar.xz
(svn r6370) -Codechange: moved all the remaining setup for PlayerVehWndProc() into WE_CREATE
Diffstat (limited to 'train_gui.c')
-rw-r--r--train_gui.c9
1 files changed, 0 insertions, 9 deletions
diff --git a/train_gui.c b/train_gui.c
index 6527570f9..77a014b5d 100644
--- a/train_gui.c
+++ b/train_gui.c
@@ -1434,15 +1434,6 @@ static void ShowPlayerTrainsLocal(PlayerID player, StationID station, OrderID or
w = AllocateWindowDescFront(&_other_player_trains_desc, (station << 16) | (VEH_Train << 11) | VLW_flag | player);
}
}
-
- if (w != NULL) {
- w->hscroll.cap = 10 * 29;
- 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.step_width = 1;
- w->resize.height = 220 - (PLY_WND_PRC__SIZE_OF_ROW_SMALL * 3); /* Minimum of 4 vehicles */
- }
}
void ShowPlayerTrains(PlayerID player, StationID station)