(svn r12805) -Codechange: remove some bit magic related to the news display states. Patch by cirdan.

This commit is contained in:
rubidium
2008-04-20 11:40:33 +00:00
parent b139756e2b
commit fccfcd093b
4 changed files with 52 additions and 75 deletions

View File

@@ -76,6 +76,15 @@ enum NewsBankrupcy {
NB_BNEWCOMPANY = (4 << 4), ///< A new company has been started
};
/**
* News display options
*/
enum NewsDisplay {
ND_OFF, ///< Only show a reminder in the status bar
ND_SUMMARY, ///< Show ticker
ND_FULL, ///< Show newspaper
};
/**
* Per-NewsType data
*/
@@ -83,6 +92,7 @@ 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)
};
struct NewsItem {