(svn r22000) -Codechange: Introduce an enum for the industry density setting.

This commit is contained in:
alberth
2011-02-06 18:11:39 +00:00
parent a5921c0514
commit d84502c432
5 changed files with 24 additions and 10 deletions

View File

@@ -602,7 +602,7 @@ public:
this->SetupArrays();
const IndustrySpec *indsp = (this->selected_type == INVALID_INDUSTRYTYPE) ? NULL : GetIndustrySpec(this->selected_type);
if (indsp == NULL) this->enabled[this->selected_index] = _settings_game.difficulty.number_industries != 0;
if (indsp == NULL) this->enabled[this->selected_index] = _settings_game.difficulty.number_industries != ID_FUND_ONLY;
this->SetButtons();
}
};