summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2010-11-13 15:08:47 +0000
committeralberth <alberth@openttd.org>2010-11-13 15:08:47 +0000
commit67549a206c438dee83f7a5c3cca86cef316edad6 (patch)
treeb8eae77db58ff81d4f0457fe5e5dcec448fb1939
parent3211ab301e32ee65454f08c68268d9f13c5bf212 (diff)
downloadopenttd-67549a206c438dee83f7a5c3cca86cef316edad6.tar.xz
(svn r21169) -Feature: Do not build industries during economic recession.
-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 798a484b4..df240f0b6 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2103,7 +2103,7 @@ void IndustryBuildData::TryBuildNewIndustry()
}
}
- if (missing <= 0 || total_prob == 0) count = 0; // Skip creation of an industry.
+ if (EconomyIsInRecession() || missing <= 0 || total_prob == 0) count = 0; // Skip creation of an industry.
if (count >= 1) {
/* Pick a weighted random industry to build.