news_gui.c
changeset 718 0bb3e204abb5
parent 715 28dd55cc55ae
child 731 d84c0859b54e
equal deleted inserted replaced
717:ca707fc756ed 718:0bb3e204abb5
   256 	w->vscroll.count = _total_news;
   256 	w->vscroll.count = _total_news;
   257 }
   257 }
   258 
   258 
   259 /* To add a news item with an attached validation function. This validation function
   259 /* To add a news item with an attached validation function. This validation function
   260  * makes sure that the news item is not outdated when the newspaper pops up. */
   260  * makes sure that the news item is not outdated when the newspaper pops up. */
   261 void AddValidatedNewsItem(StringID string, uint32 flags, uint data_a, uint data_b, ValidationProc validation)
   261 void AddValidatedNewsItem(StringID string, uint32 flags, uint data_a, uint data_b, ValidationProc *validation)
   262 {
   262 {
   263 	AddNewsItem(string, flags, data_a, data_b);
   263 	AddNewsItem(string, flags, data_a, data_b);
   264 	_news_items[_latest_news].isValid = validation;
   264 	_news_items[_latest_news].isValid = validation;
   265 }
   265 }
   266 
   266