summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authoralberth <alberth@openttd.org>2011-02-06 17:19:56 +0000
committeralberth <alberth@openttd.org>2011-02-06 17:19:56 +0000
commit870d2eafbf87a2b4cddd7a73779f14697ac6677a (patch)
treec610140a2414cc8a806d95e933decfe23f040700 /src
parentfd86b0608d051d14d5c1eba2a9730d94f4c505d2 (diff)
downloadopenttd-870d2eafbf87a2b4cddd7a73779f14697ac6677a.tar.xz
(svn r21998) -Fix (r21969): Number of industries difficulty setting should not affect the SE.
Diffstat (limited to 'src')
-rw-r--r--src/industry_cmd.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp
index b5dbf2efe..5dc79dbb6 100644
--- a/src/industry_cmd.cpp
+++ b/src/industry_cmd.cpp
@@ -2010,7 +2010,7 @@ void IndustryBuildData::MonthlyLoop()
*/
void GenerateIndustries()
{
- if (_settings_game.difficulty.number_industries == 0) return; // No industries.
+ if (_game_mode != GM_EDITOR && _settings_game.difficulty.number_industries == 0) return; // No industries in the game.
uint32 industry_probs[NUM_INDUSTRYTYPES];
bool force_at_least_one[NUM_INDUSTRYTYPES];