mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2025-03-12 18:40:29 +00:00
(svn r21169) -Feature: Do not build industries during economic recession.
This commit is contained in:
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) {
|
||||
/* Pick a weighted random industry to build.
|
||||
|
Loading…
Reference in New Issue
Block a user