# HG changeset patch # User peter1138 # Date 1212388947 0 # Node ID e6aa429e06fc2f10a3679c2a39563cda342aa154 # Parent d822addc9d2ab9d148a399e2e5434eefef1adddd (svn r13356) -Codechange: Incorrect documentation and variable type for inflation rates diff -r d822addc9d2a -r e6aa429e06fc src/economy.cpp --- a/src/economy.cpp Sun Jun 01 19:36:55 2008 +0000 +++ b/src/economy.cpp Mon Jun 02 06:42:27 2008 +0000 @@ -643,7 +643,7 @@ * 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 -r d822addc9d2a -r e6aa429e06fc src/economy_type.h --- a/src/economy_type.h Sun Jun 01 19:36:55 2008 +0000 +++ b/src/economy_type.h Mon Jun 02 06:42:27 2008 +0000 @@ -18,7 +18,7 @@ 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 {