summaryrefslogtreecommitdiff
path: root/src/economy.cpp
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-13 09:45:20 +0000
committeralberth <alberth@openttd.org>2010-11-13 09:45:20 +0000
commit43f807a9189a1dde0260f40f8553bcc8050a3e1d (patch)
tree468331788816bd2a4b941bf10b20690921ed3dd1 /src/economy.cpp
parentaea8274dbad2da74eed8dba284b66b29be60a408 (diff)
downloadopenttd-43f807a9189a1dde0260f40f8553bcc8050a3e1d.tar.xz
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
Diffstat (limited to 'src/economy.cpp')
-rw-r--r--src/economy.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/economy.cpp b/src/economy.cpp
index 996125005..87d946f95 100644
--- a/src/economy.cpp
+++ b/src/economy.cpp
@@ -710,7 +710,7 @@ static void HandleEconomyFluctuations()
if (_settings_game.difficulty.economy != 0) {
/* When economy is Fluctuating, decrease counter */
_economy.fluct--;
- } else if (_economy.fluct <= 0) {
+ } else if (EconomyIsInRecession()) {
/* When it's Steady and we are in recession, end it now */
_economy.fluct = -12;
} else {