summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authordarkvater <darkvater@openttd.org>2004-12-22 17:37:21 +0000
committerdarkvater <darkvater@openttd.org>2004-12-22 17:37:21 +0000
commited0a42f940db567088d39b583f0b66ed274ee20d (patch)
tree290fdb71f975b684f56bde327d7e01109b379932 /window.h
parentb7f71b026d0da7cadb4db0ab674e0e2908227bce (diff)
downloadopenttd-ed0a42f940db567088d39b583f0b66ed274ee20d.tar.xz
(svn r1225) -Feature: SHIFT+DEL now deletes all non-vital windows (only status bar and main bar remain)
-Fix: For everyone who tried to crash the game by opening a huge amount of windows and stickying all of them; bad luck. It's fixed now (thanks Tron for the helpful criticism). First all normal windows are a candidate for replacement, then if none are found, sticky windows. Then..well that should not happen :)
Diffstat (limited to 'window.h')
-rw-r--r--window.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/window.h b/window.h
index 4115d97dd..f4740083b 100644
--- a/window.h
+++ b/window.h
@@ -459,6 +459,7 @@ void HandleButtonClick(Window *w, byte widget);
Window *GetCallbackWnd();
void DeleteNonVitalWindows();
+void DeleteAllNonVitalWindows(void);
/* window.c */
VARDEF Window _windows[25];