summaryrefslogtreecommitdiff
path: root/src/news_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2008-05-13 10:17:04 +0000
committerrubidium <rubidium@openttd.org>2008-05-13 10:17:04 +0000
commit5d7851e8d63766b15881bafd4940bf89f37b2bdc (patch)
tree5c7ccb204d4278fc86a352be079b38923bb69dab /src/news_type.h
parenta3d037956f4f1dcde98c30cd8b30f3c9cc626a1b (diff)
downloadopenttd-5d7851e8d63766b15881bafd4940bf89f37b2bdc.tar.xz
(svn r13065) -Codechange: remove the need for the news string callbacks. Patch by Cirdan.
Diffstat (limited to 'src/news_type.h')
-rw-r--r--src/news_type.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/news_type.h b/src/news_type.h
index aa220a83f..cc25835c7 100644
--- a/src/news_type.h
+++ b/src/news_type.h
@@ -97,7 +97,7 @@ struct NewsTypeData {
};
struct NewsItem {
- StringID string_id; ///< Message text (sometimes also used for storing other info)
+ StringID string_id; ///< Message text
uint16 duration; ///< Remaining time for showing this news message
Date date; ///< Date of the news
NewsFlag flags; ///< NewsFlags bits @see NewsFlag
@@ -105,14 +105,13 @@ struct NewsItem {
NewsType type; ///< News category @see NewsType
NewsCallback callback; ///< Call-back function
- uint data_a; ///< Reference to tile or vehicle
- uint data_b; ///< Reference to second tile or vehicle
+ uint data_a; ///< Custom data 1 (usually tile or vehicle)
+ uint data_b; ///< Custom data 2
uint64 params[10];
};
typedef bool ValidationProc(uint data_a, uint data_b);
typedef void DrawNewsCallbackProc(Window *w, const NewsItem *ni);
-typedef StringID GetNewsStringCallbackProc(const NewsItem *ni);
#endif /* NEWS_TYPE_H */