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
commit5b701e585d88a647a9f716c75820d335545252e7 (patch)
tree290fdb71f975b684f56bde327d7e01109b379932 /window.h
parent13eba00152fda7a1458b7820e0787b001c4e772a (diff)
downloadopenttd-5b701e585d88a647a9f716c75820d335545252e7.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];