diff options
author | tron <tron@openttd.org> | 2006-06-11 14:56:21 +0000 |
---|---|---|
committer | tron <tron@openttd.org> | 2006-06-11 14:56:21 +0000 |
commit | 8cae4d1214ce8a9788d1c8713615ddb635693dd8 (patch) | |
tree | 7c1dccd5040688868c9052309c20a360153406e5 /roadveh_gui.c | |
parent | 4ab56f465cec540d01f59634ade9a38d92ed82df (diff) | |
download | openttd-8cae4d1214ce8a9788d1c8713615ddb635693dd8.tar.xz |
(svn r5225) Some windows periodically check if their parent exists - if not they close themselves
This is unnecessary, because their parents already close them when they get closed
Therefore remove the code for the periodic checks
Diffstat (limited to 'roadveh_gui.c')
-rw-r--r-- | roadveh_gui.c | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/roadveh_gui.c b/roadveh_gui.c index 714215c46..5dd5cdcc1 100644 --- a/roadveh_gui.c +++ b/roadveh_gui.c @@ -256,11 +256,6 @@ do_change_service_int: } } break; - case WE_4: - if (FindWindowById(WC_VEHICLE_VIEW, w->window_number) == NULL) - DeleteWindow(w); - break; - case WE_ON_EDIT_TEXT: { if (e->edittext.str[0] != '\0') { _cmd_text = e->edittext.str; @@ -561,12 +556,6 @@ static void NewRoadVehWndProc(Window *w, WindowEvent *e) } break; - case WE_4: - if (w->window_number != 0 && !FindWindowById(WC_VEHICLE_DEPOT, w->window_number)) { - DeleteWindow(w); - } - break; - case WE_ON_EDIT_TEXT: if (e->edittext.str[0] != '\0') { _cmd_text = e->edittext.str; |