--- a/src/economy.h Thu Jan 11 13:41:16 2007 +0000
+++ b/src/economy.h Mon Jan 15 20:14:06 2007 +0000
@@ -29,7 +29,8 @@
} Subsidy;
-enum {
+enum ScoreID {
+ SCORE_BEGIN = 0,
SCORE_VEHICLES = 0,
SCORE_STATIONS = 1,
SCORE_MIN_PROFIT = 2,
@@ -40,13 +41,14 @@
SCORE_MONEY = 7,
SCORE_LOAN = 8,
SCORE_TOTAL = 9, // This must always be the last entry
-
- NUM_SCORE = 10, // How many scores are there..
+ SCORE_END = 10, // How many scores are there..
SCORE_MAX = 1000 // The max score that can be in the performance history
// the scores together of score_info is allowed to be more!
};
+DECLARE_POSTFIX_INCREMENT(ScoreID);
+
typedef struct ScoreInfo {
byte id; // Unique ID of the score
int needed; // How much you need to get the perfect score
@@ -54,7 +56,7 @@
} ScoreInfo;
extern const ScoreInfo _score_info[];
-extern int _score_part[MAX_PLAYERS][NUM_SCORE];
+extern int _score_part[MAX_PLAYERS][SCORE_END];
int UpdateCompanyRatingAndValue(Player *p, bool update);