summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorglx <glx@openttd.org>2008-04-13 17:59:43 +0000
committerglx <glx@openttd.org>2008-04-13 17:59:43 +0000
commit5a6014d7e364016a9a09d19f3f33912d47e80ae8 (patch)
treeda2196497596fddf0fcc78d419131130736c2747 /src
parentb18f330739d028e7b6fcaa9470b343d3de617a88 (diff)
downloadopenttd-5a6014d7e364016a9a09d19f3f33912d47e80ae8.tar.xz
(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
Diffstat (limited to 'src')
-rw-r--r--src/news_type.h9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/news_type.h b/src/news_type.h
index a168eccb7..d8dc812a5 100644
--- a/src/news_type.h
+++ b/src/news_type.h
@@ -66,12 +66,13 @@ enum NewsCallback {
/**
* Kinds of bankrupcy
+ * @note These flags are or'd with player index
*/
enum NewsBankrupcy {
- NB_BTROUBLE, ///< Company is in trouble (warning)
- NB_BMERGER, ///< Company has been bought by another company
- NB_BBANKRUPT, ///< Company has gone bankrupt
- NB_BNEWCOMPANY, ///< A new company has been started
+ NB_BTROUBLE = (1 << 4), ///< Company is in trouble (warning)
+ NB_BMERGER = (2 << 4), ///< Company has been bought by another company
+ NB_BBANKRUPT = (3 << 4), ///< Company has gone bankrupt
+ NB_BNEWCOMPANY = (4 << 4), ///< A new company has been started
};
struct NewsItem {