From 3dd606c72cdb3aef3a3be55c2087cb65de512e57 Mon Sep 17 00:00:00 2001 From: keldorkatarn Date: Mon, 23 Apr 2018 02:32:47 +0200 Subject: [PATCH] Go back to original values for industry site search to prevent the game from freezing too long. --- src/industry_cmd.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/industry_cmd.cpp b/src/industry_cmd.cpp index daed005c8..bd4cef105 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2058,7 +2058,7 @@ static uint GetNumberOfIndustries() */ static Industry *PlaceIndustry(IndustryType type, IndustryAvailabilityCallType creation_type, bool try_hard) { - uint tries = try_hard ? 25000u : 10000u; + uint tries = try_hard ? 10000u : 2000u; for (; tries > 0; tries--) { Industry *ind = CreateNewIndustry(RandomTile(), type, creation_type); if (ind != NULL) return ind; -- 2.11.4.GIT