changeset 16453:6b1f74e80691 draft

(svn r21169) -Feature: Do not build industries during economic recession.
author alberth <alberth@openttd.org>
date Sat, 13 Nov 2010 15:08:47 +0000
parents e7a7892030d1
children 3db0ac3171ce
files src/industry_cmd.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2103,7 +2103,7 @@
 		}
 	}
 
-	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.