diff options
author | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
---|---|---|
committer | rubidium <rubidium@openttd.org> | 2007-03-07 12:11:48 +0000 |
commit | 24c4d5b06d231785db01500360c26815d8fe4d15 (patch) | |
tree | 757477dbdc02025cc29690a4e66e40f872cab02b /src/economy.h | |
parent | 36bb92ae241403d61dc7a3e5a1696b615be61395 (diff) | |
download | openttd-24c4d5b06d231785db01500360c26815d8fe4d15.tar.xz |
(svn r9051) -Codechange: typedef [enum|struct] Y {} X; -> [enum|struct] X {};
Diffstat (limited to 'src/economy.h')
-rw-r--r-- | src/economy.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/economy.h b/src/economy.h index ae5cf0cd7..4519e182f 100644 --- a/src/economy.h +++ b/src/economy.h @@ -8,24 +8,24 @@ void ResetPriceBaseMultipliers(); void SetPriceBaseMultiplier(uint price, byte factor); -typedef struct { +struct Economy { int32 max_loan; ///< Maximum possible loan int32 max_loan_unround; ///< Economy fluctuation status int fluct; byte interest_rate; ///< Interest byte infl_amount; ///< inflation amount byte infl_amount_pr; ///< "floating" portion of inflation -} Economy; +}; VARDEF Economy _economy; -typedef struct Subsidy { +struct Subsidy { CargoID cargo_type; byte age; /* from and to can either be TownID, StationID or IndustryID */ uint16 from; uint16 to; -} Subsidy; +}; enum ScoreID { @@ -48,11 +48,11 @@ enum ScoreID { DECLARE_POSTFIX_INCREMENT(ScoreID); -typedef struct ScoreInfo { +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 -} ScoreInfo; +}; extern const ScoreInfo _score_info[]; extern int _score_part[MAX_PLAYERS][SCORE_END]; |