(svn r10333) -Fix [FS#943]: News messages were shown on top of the endgame screen and high score chart.
authorrubidium
Mon, 25 Jun 2007 21:36:16 +0000
changeset 7564 2c73e371df89
parent 7563 9dd27c50db81
child 7565 a2948dd92c0e
(svn r10333) -Fix [FS#943]: News messages were shown on top of the endgame screen and high score chart.
src/window.cpp
--- a/src/window.cpp	Mon Jun 25 21:15:17 2007 +0000
+++ b/src/window.cpp	Mon Jun 25 21:36:16 2007 +0000
@@ -638,7 +638,7 @@
 		 * 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--;