news_gui.c
changeset 935 c04b8d95865a
parent 919 b0d6c7642f99
child 1095 90220990fd7c
equal deleted inserted replaced
934:81642cba8833 935:c04b8d95865a
   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