summaryrefslogtreecommitdiff
path: root/src/economy_type.h
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-07-31 19:45:48 +0000
committeralberth <alberth@openttd.org>2010-07-31 19:45:48 +0000
commit3f62ee635595998ad5d9d57cb5d986d6ac645c4b (patch)
tree5ffcae9c6b20e1feea4ea80d67880ce202b5bb3a /src/economy_type.h
parentea05f284a96041dee30e04c19d2d1a503b52a72e (diff)
downloadopenttd-3f62ee635595998ad5d9d57cb5d986d6ac645c4b.tar.xz
(svn r20262) -Codechange: Remove unused ScoreInfo::id field, and doxyment the data structures.
Diffstat (limited to 'src/economy_type.h')
-rw-r--r--src/economy_type.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/economy_type.h b/src/economy_type.h
index 08cb2ceca..7942bc463 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -34,6 +34,7 @@ struct Economy {
uint16 old_max_loan_unround_fract; ///< Old: Fraction of the unrounded max loan
};
+/** Score categories in the detailed performance rating. */
enum ScoreID {
SCORE_BEGIN = 0,
SCORE_VEHICLES = 0,
@@ -53,8 +54,8 @@ enum ScoreID {
};
DECLARE_POSTFIX_INCREMENT(ScoreID)
+/** Data structure for storing how the score is computed for a single score id. */
struct ScoreInfo {
- byte id; ///< Unique ID of the score
int needed; ///< How much you need to get the perfect score
int score; ///< How much score it will give
};