From 10b494d260ca14b77ff18048c02c61d6e805d824 Mon Sep 17 00:00:00 2001 From: peter1138 Date: Mon, 2 Jun 2008 06:42:27 +0000 Subject: (svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates --- src/economy.cpp | 2 +- src/economy_type.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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 { -- cgit v1.2.3-70-g09d2