(svn r21169) -Feature: Do not build industries during economic recession.

This commit is contained in:
alberth
2010-11-13 15:08:47 +00:00
parent 3211ab301e
commit 67549a206c

View File

@@ -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) { if (count >= 1) {
/* Pick a weighted random industry to build. /* Pick a weighted random industry to build.