summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDarkvater <darkvater@openttd.org>2005-04-16 20:37:17 +0000
committerDarkvater <darkvater@openttd.org>2005-04-16 20:37:17 +0000
commit972448d5ae7c6fd4f0ce8fd057f95abf496a6a73 (patch)
treee4fa09d80cd3885039aff1479fc4678eab8af148
parent878cebaa702bb9957d7393cda05c599dcad60419 (diff)
downloadopenttd-972448d5ae7c6fd4f0ce8fd057f95abf496a6a73.tar.xz
(svn r2211) - Fix(ish): When eternally looping in 2090 don't go increasing the inflation anymore because it will just rise to insanely high values beyond all imagination.
-rw-r--r--economy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/economy.c b/economy.c
index 8a131155c..d77611f71 100644
--- a/economy.c
+++ b/economy.c
@@ -1480,7 +1480,7 @@ int LoadUnloadVehicle(Vehicle *v)
void PlayersMonthlyLoop(void)
{
PlayersGenStatistics();
- if (_patches.inflation)
+ if (_patches.inflation && _cur_year < MAX_YEAR_END)
AddInflation();
PlayersPayInterest();
// Reset the _current_player flag