mirror of https://github.com/OpenTTD/OpenTTD
(svn r21169) -Feature: Do not build industries during economic recession.
parent
3211ab301e
commit
67549a206c
|
@ -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.
|
||||||
|
|
Loading…
Reference in New Issue