From 27df6c86fcc4cc02b944eaa84952b15e8e04ad1f Mon Sep 17 00:00:00 2001 From: truelight Date: Tue, 4 Jan 2005 15:49:30 +0000 Subject: (svn r1372) -Fix: fixed some GUI glitches introduced with resize-buttons --- train_gui.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'train_gui.c') diff --git a/train_gui.c b/train_gui.c index d52f23307..d89ed0c48 100644 --- a/train_gui.c +++ b/train_gui.c @@ -1234,7 +1234,7 @@ static const Widget _other_player_trains_widgets[] = { { WWT_PANEL, RESIZE_RIGHT, 14, 244, 324, 14, 25, 0x0, STR_NULL}, { WWT_MATRIX, RESIZE_RB, 14, 0, 313, 26, 207, 0x701, STR_883D_TRAINS_CLICK_ON_TRAIN_FOR}, { WWT_SCROLLBAR, RESIZE_LRB, 14, 314, 324, 26, 207, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST}, -{ WWT_PANEL, RESIZE_TB, 14, 0, 312, 208, 219, 0x0, STR_NULL}, +{ WWT_PANEL, RESIZE_RTB, 14, 0, 313, 208, 219, 0x0, STR_NULL}, { WWT_RESIZEBOX, RESIZE_LRTB, 14, 314, 324, 208, 219, 0x0, STR_RESIZE_BUTTON}, { WIDGETS_END}, }; @@ -1368,6 +1368,9 @@ static void PlayerTrainsWndProc(Window *w, WindowEvent *e) ShowBuildTrainWindow(0); } break; case 10: { + if (!IsWindowOfPrototype(w, _player_trains_widgets)) + break; + ShowReplaceVehicleWindow(VEH_Train); break; } -- cgit v1.2.3-54-g00ecf