equal
deleted
inserted
replaced
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 |