news_gui.c
changeset 935 ae06c883382f
parent 919 544f374ee392
child 1095 b59632d9df1b
equal deleted inserted replaced
934:747e52f64119 935:ae06c883382f
   217 
   217 
   218 	if (_game_mode == GM_MENU)
   218 	if (_game_mode == GM_MENU)
   219 		return;
   219 		return;
   220 
   220 
   221 	// check the rare case that the oldest (to be overwritten) news item is open
   221 	// check the rare case that the oldest (to be overwritten) news item is open
   222 	if (_oldest_news == _current_news || _oldest_news == _forced_news)
   222 	if (_total_news==MAX_NEWS && (_oldest_news == _current_news || _oldest_news == _forced_news))
   223 		MoveToNexItem();
   223 		MoveToNexItem();
   224 
   224 
   225 	_forced_news = INVALID_NEWS;
   225 	_forced_news = INVALID_NEWS;
   226 	if (_total_news < MAX_NEWS) _total_news++;
   226 	if (_total_news < MAX_NEWS) _total_news++;
   227 
   227