summaryrefslogtreecommitdiff
path: root/window.h
diff options
context:
space:
mode:
authorbjarni <bjarni@openttd.org>2006-11-13 20:33:51 +0000
committerbjarni <bjarni@openttd.org>2006-11-13 20:33:51 +0000
commited46b7d3807f4cd6bfe3ace57faa41076ab3e998 (patch)
tree995d92da1def66f510b9f9b1a66bbbca39cc849d /window.h
parent21dd00b2992c84d5a17568d1de2da5f6d3439184 (diff)
downloadopenttd-ed46b7d3807f4cd6bfe3ace57faa41076ab3e998.tar.xz
(svn r7138) -Fix: [vehicle list windows] fixed a rare crash where having some (not all) vehicle list windows open for a player, that goes bankrupt would crash the game
-Codechange: closing all windows for a player will now loop all windows and close those, which got the player as caption instead of having a list of windows to close
Diffstat (limited to 'window.h')
-rw-r--r--window.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/window.h b/window.h
index 3252bcfaf..a110f3547 100644
--- a/window.h
+++ b/window.h
@@ -613,6 +613,8 @@ void SendWindowMessageClass(WindowClass wnd_class, uint msg, uint wparam, uint l
Window *FindWindowById(WindowClass cls, WindowNumber number);
void DeleteWindow(Window *w);
+void DeletePlayerWindows(PlayerID pi);
+void ChangeWindowOwner(PlayerID old_player, PlayerID new_player);
Window *BringWindowToFrontById(WindowClass cls, WindowNumber number);
Window *FindWindowFromPt(int x, int y);