summaryrefslogtreecommitdiff
path: root/src/industry_cmd.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/industry_cmd.cpp
parentaea8274dbad2da74eed8dba284b66b29be60a408 (diff)
downloadopenttd-43f807a9189a1dde0260f40f8553bcc8050a3e1d.tar.xz
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index 2e617afe2..a56ed02b5 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -497,7 +497,7 @@ static void TransportIndustryGoods(TileIndex tile)
i->produced_cargo_waiting[j] -= cw;
/* fluctuating economy? */
- if (_economy.fluct <= 0) cw = (cw + 1) / 2;
+ if (EconomyIsInRecession()) cw = (cw + 1) / 2;
i->this_month_production[j] += cw;