summaryrefslogtreecommitdiff
path: root/src/news_type.h
diff options
context:
space:
mode:
authorfrosch <frosch@openttd.org>2012-12-23 21:07:12 +0000
committerfrosch <frosch@openttd.org>2012-12-23 21:07:12 +0000
commit21b43b63f5e936dc284af0e635879ea0c0ec2d66 (patch)
tree6fb821af3852bbf297485baa7db355ec33a33b7f /src/news_type.h
parent647ee0de64b74f714aea04b6e3bd0b4fb06f8694 (diff)
downloadopenttd-21b43b63f5e936dc284af0e635879ea0c0ec2d66.tar.xz
(svn r24843) -Codechange: Move news display options into the general settings framework. (based on patch by eagle_rainbow)
Diffstat (limited to 'src/news_type.h')
-rw-r--r--src/news_type.h11
1 files changed, 4 insertions, 7 deletions
diff --git a/src/news_type.h b/src/news_type.h
index 40b6e2c94..fee7ae38e 100644
--- a/src/news_type.h
+++ b/src/news_type.h
@@ -113,24 +113,21 @@ 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)
- const StringID description; ///< Description of the news type in news settings window
/**
* Construct this entry.
* @param name The name of the type.
* @param age The maximum age for these messages.
* @param sound The sound to play.
- * @param description The description for this type of messages.
*/
- NewsTypeData(const char *name, byte age, SoundFx sound, NewsDisplay display, StringID description) :
+ NewsTypeData(const char *name, byte age, SoundFx sound) :
name(name),
age(age),
- sound(sound),
- display(display),
- description(description)
+ sound(sound)
{
}
+
+ NewsDisplay GetDisplay() const;
};
/** Information about a single item of news. */