summaryrefslogtreecommitdiff
path: root/src/news_type.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/news_type.h')
-rw-r--r--src/news_type.h19
1 files changed, 14 insertions, 5 deletions
diff --git a/src/news_type.h b/src/news_type.h
index 2b76ecd5d..3372e1308 100644
--- a/src/news_type.h
+++ b/src/news_type.h
@@ -94,11 +94,20 @@ enum NewsDisplay {
* Per-NewsType data
*/
struct NewsTypeData {
- const char * const name; ///< Name
- const byte age; ///< Maximum age of news items (in days)
- const SoundFx sound; ///< Sound
- NewsDisplay display; ///< Display mode (off, summary, full)
- StringID description; ///< Description of the news type in news settings window
+ const char * const name; ///< Name
+ const byte age; ///< Maximum age of news items (in days)
+ const SoundFx sound; ///< Sound
+ NewsDisplay display; ///< Display mode (off, summary, full)
+ const StringID description; ///< Description of the news type in news settings window
+
+ NewsTypeData(const char *name, byte age, SoundFx sound, StringID description) :
+ name(name),
+ age(age),
+ sound(sound),
+ display(ND_FULL),
+ description(description)
+ {
+ }
};
struct NewsItem {