From 548a9c41d5b58a0b20fb70ac07077f05ede0b789 Mon Sep 17 00:00:00 2001 From: Tyler Trahan Date: Thu, 12 Jan 2023 14:03:39 -0500 Subject: [PATCH] Fix #10333, c53f29d: Only show industry prospecting errors to local company (#10338) --- 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 e1c2db2289..78a0966a45 100644 --- a/src/industry_cmd.cpp +++ b/src/industry_cmd.cpp @@ -2064,7 +2064,7 @@ CommandCost CmdBuildIndustry(DoCommandFlag flags, TileIndex tile, IndustryType i } cur_company.Restore(); } - if (ret.Failed()) { + if (ret.Failed() && IsLocalCompany()) { if (prospect_success) { ShowErrorMessage(STR_ERROR_CAN_T_PROSPECT_INDUSTRY, STR_ERROR_NO_SUITABLE_PLACES_FOR_PROSPECTING, WL_INFO); } else {