diff options
author | alberth <alberth@openttd.org> | 2010-11-13 09:45:20 +0000 |
---|---|---|
committer | alberth <alberth@openttd.org> | 2010-11-13 09:45:20 +0000 |
commit | 43f807a9189a1dde0260f40f8553bcc8050a3e1d (patch) | |
tree | 468331788816bd2a4b941bf10b20690921ed3dd1 /src/industry_cmd.cpp | |
parent | aea8274dbad2da74eed8dba284b66b29be60a408 (diff) | |
download | openttd-43f807a9189a1dde0260f40f8553bcc8050a3e1d.tar.xz |
(svn r21156) -Codechange: Introduce EconomyIsInRecession().
Diffstat (limited to 'src/industry_cmd.cpp')
-rw-r--r-- | src/industry_cmd.cpp | 2 |
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; |