summaryrefslogtreecommitdiff
path: root/widget.c
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2006-11-18 17:04:44 +0000
committerDarkvater <darkvater@openttd.org>2006-11-18 17:04:44 +0000
commit53f954edd3ecf5f9199ee684ac39685a481f8e97 (patch)
tree8c4132a7ae7df56d2180aa2fa9fa2d88c5cbcf76 /widget.c
parentb3c48c0a84323838b5104e422d11b8a1250325c8 (diff)
downloadopenttd-53f954edd3ecf5f9199ee684ac39685a481f8e97.tar.xz
(svn r7206) -Codechange: Remove (some of) the magic needed for windows that could be invalid after
a call to DeleteWindow() somewhere else. Also do some cleanup with AllowWindowDescFront()
Diffstat (limited to 'widget.c')
-rw-r--r--widget.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/widget.c b/widget.c
index 5b6842227..cd2790af2 100644
--- a/widget.c
+++ b/widget.c
@@ -616,8 +616,6 @@ static void DropdownMenuWndProc(Window *w, WindowEvent *e)
void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int button, uint32 disabled_mask, uint32 hidden_mask)
{
- WindowNumber num;
- WindowClass cls;
int i;
const Widget *wi;
Window *w2;
@@ -627,10 +625,7 @@ void ShowDropDownMenu(Window *w, const StringID *strings, int selected, int butt
int screen_top, screen_bottom;
bool scroll = false;
- cls = w->window_class;
- num = w->window_number;
DeleteWindowById(WC_DROPDOWN_MENU, 0);
- w = FindWindowById(cls, num);
if (is_dropdown_menu_shown) return;