(svn r10541) -Fix [FS#1028]: cargo payment rates overflow.

-Fix: cargo payment rates diverge from cost rates making it impossible to make any profit after a certain number of years.
 Both are solved by stopping the inflation after 170 years; there is absolutely no point in continueing the inflation after that as it only makes the game have overflows at some point that cannot be solved; using larger variables only delays the inevitable.
This commit is contained in:
rubidium
2007-07-13 12:08:37 +00:00
parent 56dfe3031c
commit 9b105c28bd
3 changed files with 22 additions and 4 deletions

View File

@@ -11,6 +11,7 @@ void SetPriceBaseMultiplier(uint price, byte factor);
struct Economy {
Money max_loan; ///< Maximum possible loan
Money max_loan_unround; ///< Economy fluctuation status
uint16 max_loan_unround_fract; ///< Fraction of the unrounded max loan
int fluct;
byte interest_rate; ///< Interest
byte infl_amount; ///< inflation amount