summaryrefslogtreecommitdiff
path: root/roadveh_gui.c
diff options
context:
space:
mode:
authortruelight <truelight@openttd.org>2005-01-04 15:49:30 +0000
committertruelight <truelight@openttd.org>2005-01-04 15:49:30 +0000
commit27df6c86fcc4cc02b944eaa84952b15e8e04ad1f (patch)
tree3d839b3bc4c0971b56eb14c07bd80e4306fa46cb /roadveh_gui.c
parentc5d6230c667d663d27fb7163232bef8db6566308 (diff)
downloadopenttd-27df6c86fcc4cc02b944eaa84952b15e8e04ad1f.tar.xz
(svn r1372) -Fix: fixed some GUI glitches introduced with resize-buttons
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r--roadveh_gui.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c
index 7c246ba5c..df224d059 100644
--- a/roadveh_gui.c
+++ b/roadveh_gui.c
@@ -762,7 +762,7 @@ static const Widget _other_player_roadveh_widgets[] = {
{ WWT_PANEL, RESIZE_RIGHT, 14, 244, 259, 14, 25, 0x0, STR_NULL},
{ WWT_MATRIX, RESIZE_RB, 14, 0, 248, 26, 207, 0x701, STR_901A_ROAD_VEHICLES_CLICK_ON},
{ WWT_SCROLLBAR, RESIZE_LRB, 14, 249, 259, 26, 207, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST},
-{ WWT_PANEL, RESIZE_RTB, 14, 0, 247, 208, 219, 0x0, STR_NULL},
+{ WWT_PANEL, RESIZE_RTB, 14, 0, 248, 208, 219, 0x0, STR_NULL},
{ WWT_RESIZEBOX, RESIZE_LRTB, 14, 249, 259, 208, 219, 0x0, STR_RESIZE_BUTTON},
{ WIDGETS_END},
};
@@ -893,6 +893,9 @@ static void PlayerRoadVehWndProc(Window *w, WindowEvent *e)
ShowBuildRoadVehWindow(0);
} break;
case 10: {
+ if (!IsWindowOfPrototype(w, _player_roadveh_widgets))
+ break;
+
ShowReplaceVehicleWindow(VEH_Road);
break;
}