Changeset - r5264:d96f2a249fdd
[Not reviewed]
master
0 1 0
Darkvater - 17 years ago 2006-12-06 17:28:14
darkvater@openttd.org
(svn r7402) -Fix: [FS#255] Long Delay for Message Windows to Appear. Immediately show a new message
if present if no news window is open, or has just been closed instead of waiting for the
timer of the current news to time out.
1 file changed with 3 insertions and 7 deletions:
0 comments (0 inline, 0 general)
news_gui.c
Show inline comments
 
@@ -471,15 +471,11 @@ static bool ReadyForNextItem(void)
 
	w = FindWindowById(WC_STATUS_BAR, 0);
 
	if (w != NULL && WP(w, const def_d).data_1 > -1280) return false;
 

	
 
	// Newspaper message
 
	// Wait until duration reaches 0
 
	if (ni->duration != 0) {
 
		ni->duration--;
 
		return false;
 
	}
 
	// Newspaper message, decrement duration counter
 
	if (ni->duration != 0) ni->duration--;
 

	
 
	// neither newsticker nor newspaper are running
 
	return true;
 
	return (ni->duration == 0 || FindWindowById(WC_NEWS_WINDOW, 0) == NULL);
 
}
 

	
 
static void MoveToNextItem(void)
0 comments (0 inline, 0 general)