changeset 935:85207844f02e draft

(svn r1423) Fix: [ 1084074 ] Delayed news messages
author dominik <dominik@openttd.org>
date Sat, 08 Jan 2005 09:09:11 +0000
parents f58a0f443f95
children 997fa2abda28
files news_gui.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/news_gui.c
+++ b/news_gui.c
@@ -219,7 +219,7 @@
 		return;
 
 	// check the rare case that the oldest (to be overwritten) news item is open
-	if (_oldest_news == _current_news || _oldest_news == _forced_news)
+	if (_total_news==MAX_NEWS && (_oldest_news == _current_news || _oldest_news == _forced_news))
 		MoveToNexItem();
 
 	_forced_news = INVALID_NEWS;