(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
authorglx
Sun, 13 Apr 2008 17:59:43 +0000
changeset 10160 11cc0b7750c2
parent 10159 fb4fbb11cf5a
child 10161 4331e1c4c987
(svn r12691) -Fix (r12459): all company related news displayed the 'company is in trouble' message
src/news_type.h
--- a/src/news_type.h	Sun Apr 13 17:27:36 2008 +0000
+++ b/src/news_type.h	Sun Apr 13 17:59:43 2008 +0000
@@ -66,12 +66,13 @@
 
 /**
  * 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 {