mirror of https://github.com/OpenTTD/OpenTTD
(svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates
parent
0812e2f959
commit
10b494d260
|
@ -643,7 +643,7 @@ static void AddInflation()
|
||||||
* 12 -> months per year
|
* 12 -> months per year
|
||||||
* This is only a good approxiamtion for small values
|
* This is only a good approxiamtion for small values
|
||||||
*/
|
*/
|
||||||
Money inf = _economy.infl_amount * 54;
|
int32 inf = _economy.infl_amount * 54;
|
||||||
|
|
||||||
for (uint i = 0; i != NUM_PRICES; i++) {
|
for (uint i = 0; i != NUM_PRICES; i++) {
|
||||||
AddSingleInflation((Money*)&_price + i, _price_frac + i, inf);
|
AddSingleInflation((Money*)&_price + i, _price_frac + i, inf);
|
||||||
|
|
|
@ -18,7 +18,7 @@ struct Economy {
|
||||||
int fluct;
|
int fluct;
|
||||||
byte interest_rate; ///< Interest
|
byte interest_rate; ///< Interest
|
||||||
byte infl_amount; ///< inflation amount
|
byte infl_amount; ///< inflation amount
|
||||||
byte infl_amount_pr; ///< "floating" portion of inflation
|
byte infl_amount_pr; ///< inflation rate for payment rates
|
||||||
};
|
};
|
||||||
|
|
||||||
struct Subsidy {
|
struct Subsidy {
|
||||||
|
|
Loading…
Reference in New Issue