summaryrefslogtreecommitdiff
path: root/aircraft_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
commit30433c332ceabc714f491464bc803ab0e38b0efb (patch)
tree3d839b3bc4c0971b56eb14c07bd80e4306fa46cb /aircraft_gui.c
parent4517349c7d3f9f4e3d6d69151ac3fe37d593f7d9 (diff)
downloadopenttd-30433c332ceabc714f491464bc803ab0e38b0efb.tar.xz
(svn r1372) -Fix: fixed some GUI glitches introduced with resize-buttons
Diffstat (limited to 'aircraft_gui.c')
-rw-r--r--aircraft_gui.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/aircraft_gui.c b/aircraft_gui.c
index 9c8d77d68..e586f4850 100644
--- a/aircraft_gui.c
+++ b/aircraft_gui.c
@@ -941,7 +941,7 @@ static const Widget _other_player_aircraft_widgets[] = {
{ WWT_PANEL, RESIZE_RIGHT, 14, 244, 259, 14, 25, 0x0, STR_NULL},
{ WWT_MATRIX, RESIZE_RB, 14, 0, 248, 26, 169, 0x401, STR_A01F_AIRCRAFT_CLICK_ON_AIRCRAFT},
{ WWT_SCROLLBAR, RESIZE_LRB, 14, 249, 259, 26, 169, 0x0, STR_0190_SCROLL_BAR_SCROLLS_LIST},
-{ WWT_PANEL, RESIZE_RTB, 14, 249, 248, 170, 181, 0x0, STR_NULL},
+{ WWT_PANEL, RESIZE_RTB, 14, 0, 248, 170, 181, 0x0, STR_NULL},
{ WWT_RESIZEBOX, RESIZE_LRTB, 14, 249, 259, 170, 181, 0x0, STR_RESIZE_BUTTON},
{ WIDGETS_END},
};
@@ -1058,6 +1058,9 @@ static void PlayerAircraftWndProc(Window *w, WindowEvent *e)
case 9: { /* Build new Vehicle */
uint tile;
+ if (!IsWindowOfPrototype(w, _player_aircraft_widgets))
+ break;
+
tile = _last_built_aircraft_depot_tile;
do {
if (_map_owner[tile] == _local_player && IsAircraftHangarTile(tile)) {
@@ -1073,6 +1076,9 @@ static void PlayerAircraftWndProc(Window *w, WindowEvent *e)
} break;
case 10:
+ if (!IsWindowOfPrototype(w, _player_aircraft_widgets))
+ break;
+
ShowReplaceVehicleWindow(VEH_Aircraft);
break;