# HG changeset patch # User alberth # Date 2010-11-13 15:08:47 # Node ID 851551db6d99396498841ee7edf02f93ed1190c7 # Parent 65c76775ce4bdf7d3302e7ff9704c02cd6c85607 (svn r21169) -Feature: Do not build industries during economic recession. diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2103,7 +2103,7 @@ void IndustryBuildData::TryBuildNewIndus } } - 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.