(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 :)
This commit is contained in:
darkvater
2004-12-22 17:37:21 +00:00
parent 13eba00152
commit 5b701e585d
3 changed files with 56 additions and 31 deletions

View File

@@ -459,6 +459,7 @@ void HandleButtonClick(Window *w, byte widget);
Window *GetCallbackWnd();
void DeleteNonVitalWindows();
void DeleteAllNonVitalWindows(void);
/* window.c */
VARDEF Window _windows[25];