Fix #10333, c53f29d: Only show industry prospecting errors to local company (#10338)

pull/474/head
Tyler Trahan 1 year ago committed by GitHub
parent b05c21203a
commit dced2d8c30
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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 {

Loading…
Cancel
Save