1
0
Fork 0

Codechange: Apply coding style

pull/8694/head
SamuXarick 2021-02-12 10:49:38 +00:00 committed by Charles Pigott
parent 259c04f41c
commit 7577dfa575
1 changed files with 2 additions and 3 deletions

View File

@ -665,8 +665,7 @@ public:
break; break;
case WID_DPI_FUND_WIDGET: { case WID_DPI_FUND_WIDGET: {
if (this->selected_type != INVALID_INDUSTRYTYPE) if (this->selected_type != INVALID_INDUSTRYTYPE) {
{
if (_game_mode != GM_EDITOR && _settings_game.construction.raw_industry_construction == 2 && GetIndustrySpec(this->selected_type)->IsRawIndustry()) { if (_game_mode != GM_EDITOR && _settings_game.construction.raw_industry_construction == 2 && GetIndustrySpec(this->selected_type)->IsRawIndustry()) {
DoCommandP(0, this->selected_type, InteractiveRandom(), CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY)); DoCommandP(0, this->selected_type, InteractiveRandom(), CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY));
this->HandleButtonClick(WID_DPI_FUND_WIDGET); this->HandleButtonClick(WID_DPI_FUND_WIDGET);