summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpeter1138 <peter1138@openttd.org>2008-06-02 06:42:27 +0000
committerpeter1138 <peter1138@openttd.org>2008-06-02 06:42:27 +0000
commit10b494d260ca14b77ff18048c02c61d6e805d824 (patch)
tree64ae4afec8c5201749f65696621bb8eb45740dee
parent0812e2f9593664f761b02e443de1b2ef0fa014dd (diff)
downloadopenttd-10b494d260ca14b77ff18048c02c61d6e805d824.tar.xz
(svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates
-rw-r--r--src/economy.cpp2
-rw-r--r--src/economy_type.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 03a15ab25..5a913fb39 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -643,7 +643,7 @@ static void AddInflation()
* 12 -> months per year
* 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++) {
AddSingleInflation((Money*)&_price + i, _price_frac + i, inf);
diff --git a/src/economy_type.h b/src/economy_type.h
index 02b515ce4..ae00296ea 100644
--- a/src/economy_type.h
+++ b/src/economy_type.h
@@ -18,7 +18,7 @@ struct Economy {
int fluct;
byte interest_rate; ///< Interest
byte infl_amount; ///< inflation amount
- byte infl_amount_pr; ///< "floating" portion of inflation
+ byte infl_amount_pr; ///< inflation rate for payment rates
};
struct Subsidy {