summaryrefslogtreecommitdiff
path: root/src/news_type.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2009-05-13 17:39:00 +0000
committerrubidium <rubidium@openttd.org>2009-05-13 17:39:00 +0000
commit5f81ba886c0d1341441d68b3346a374c77aac972 (patch)
tree8a948f402fa6e255d5db8ab2c42b0552ef62dd38 /src/news_type.h
parentd23f616e9f2a381c6431d8374d52fe13f5ad5052 (diff)
downloadopenttd-5f81ba886c0d1341441d68b3346a374c77aac972.tar.xz
(svn r16297) -Codechange: silence more ICC warnings
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 {