summaryrefslogtreecommitdiff
path: root/src/economy.h
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2007-07-13 12:08:37 +0000
committerrubidium <rubidium@openttd.org>2007-07-13 12:08:37 +0000
commit5ed3482aac730afbe1970c76ba30a6cee6e1ca42 (patch)
tree8dd8b1852ab4c99689f6c02468cffb13f808288b /src/economy.h
parent3d684e3477a526396c296b9b55b466ab57b7dde3 (diff)
downloadopenttd-5ed3482aac730afbe1970c76ba30a6cee6e1ca42.tar.xz
(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.
Diffstat (limited to 'src/economy.h')
-rw-r--r--src/economy.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/economy.h b/src/economy.h
index 7dd55b9fe..00047f002 100644
--- a/src/economy.h
+++ b/src/economy.h
@@ -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