summaryrefslogtreecommitdiff
path: root/news_gui.c
diff options
context:
space:
mode:
authordominik <dominik@openttd.org>2005-01-08 09:09:11 +0000
committerdominik <dominik@openttd.org>2005-01-08 09:09:11 +0000
commit32cd2e9b8510d1311e38e56448ade4e94769ea8d (patch)
tree89bf199ebd2d5d042baaa964d9a0a0046e18549b /news_gui.c
parent6e6b72d46d132b6ff239bb489f92aca7fed1bf8a (diff)
downloadopenttd-32cd2e9b8510d1311e38e56448ade4e94769ea8d.tar.xz
(svn r1423) Fix: [ 1084074 ] Delayed news messages
Diffstat (limited to 'news_gui.c')
-rw-r--r--news_gui.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/news_gui.c b/news_gui.c
index a09c59e34..59840f814 100644
--- a/news_gui.c
+++ b/news_gui.c
@@ -219,7 +219,7 @@ void AddNewsItem(StringID string, uint32 flags, uint data_a, uint data_b)
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;