summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-06-25 21:36:16 +0000
committerrubidium <rubidium@openttd.org>2007-06-25 21:36:16 +0000
commit36945fd6286d867c9f6d93f3c54a9d4927f2ba86 (patch)
treee115f8962923fc89fe2e01d82b5c6e04b91e1a37
parent3c3c02d0fb0a78c2d71fd577baa7dcf212d834a4 (diff)
downloadopenttd-36945fd6286d867c9f6d93f3c54a9d4927f2ba86.tar.xz
(svn r10333) -Fix [FS#943]: News messages were shown on top of the endgame screen and high score chart.
-rw-r--r--src/window.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/window.cpp b/src/window.cpp
index 24e2cbec8..f15061c92 100644
--- a/src/window.cpp
+++ b/src/window.cpp
@@ -638,7 +638,7 @@ static Window *LocalAllocateWindow(
* XXX - Yes, ugly, probably needs something like w->always_on_top flag
* to implement correctly, but even then you need some kind of distinction
* between on-top of chat/news and status windows, because these conflict */
- if (wz != _z_windows && w->window_class != WC_SEND_NETWORK_MSG) {
+ if (wz != _z_windows && w->window_class != WC_SEND_NETWORK_MSG && w->window_class != WC_HIGHSCORE && w->window_class != WC_ENDSCREEN) {
if (FindWindowById(WC_MAIN_TOOLBAR, 0) != NULL) wz--;
if (FindWindowById(WC_STATUS_BAR, 0) != NULL) wz--;
if (FindWindowById(WC_NEWS_WINDOW, 0) != NULL) wz--;