summaryrefslogtreecommitdiff
path: root/news.h
diff options
context:
space:
mode:
authortron <tron@openttd.org>2006-03-04 11:15:44 +0000
committertron <tron@openttd.org>2006-03-04 11:15:44 +0000
commit87fdb129d27b3c0ddde6fb9097c091510074671b (patch)
tree4153fe3efc35c3940fcfef3f06a03d78f4f6f97f /news.h
parent4270026b4248bbaa1b1b46b099baadbd24921dd0 (diff)
downloadopenttd-87fdb129d27b3c0ddde6fb9097c091510074671b.tar.xz
(svn r3758) Remove the news validation callback. It is superseded by r3757.
Diffstat (limited to 'news.h')
-rw-r--r--news.h6
1 files changed, 0 insertions, 6 deletions
diff --git a/news.h b/news.h
index d90cb4df2..26cfa107e 100644
--- a/news.h
+++ b/news.h
@@ -16,11 +16,6 @@ struct NewsItem {
TileIndex data_b;
uint32 params[10];
-
- /* The validation functions for news items get called immediately
- * before the news are supposed to be shown. If this funcion returns
- * false, the news item won't be displayed. */
- bool (*isValid) ( uint data_a, uint data_b );
};
typedef bool ValidationProc ( uint data_a, uint data_b );
@@ -29,7 +24,6 @@ typedef StringID GetNewsStringCallbackProc(const NewsItem *ni);
#define NEWS_FLAGS(mode,flag,type,cb) ((cb)<<24 | (type)<<16 | (flag)<<8 | (mode))
void AddNewsItem(StringID string, uint32 flags, uint data_a, uint data_b);
-void AddValidatedNewsItem(StringID string, uint32 flags, uint data_a, uint data_b, ValidationProc *validation);
void NewsLoop(void);
void DrawNewsBorder(const Window *w);
void InitNewsItemStructs(void);