diff options
author | SamuXarick <43006711+SamuXarick@users.noreply.github.com> | 2021-02-12 10:49:38 +0000 |
---|---|---|
committer | Charles Pigott <charlespigott@googlemail.com> | 2021-02-19 00:14:30 +0000 |
commit | 7577dfa57518a66e839b1b06d97ddf1dab633a06 (patch) | |
tree | b46c091e140864656a2345dabe584b3365668509 | |
parent | 259c04f41c328d46d579750b331755355b0a5b03 (diff) | |
download | openttd-7577dfa57518a66e839b1b06d97ddf1dab633a06.tar.xz |
Codechange: Apply coding style
-rw-r--r-- | src/industry_gui.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/industry_gui.cpp b/src/industry_gui.cpp index f3d61ec6d..cce96e6d6 100644 --- a/src/industry_gui.cpp +++ b/src/industry_gui.cpp @@ -607,7 +607,7 @@ public: { if (!confirmed) return; - for (Industry* industry : Industry::Iterate()) delete industry; + for (Industry *industry : Industry::Iterate()) delete industry; /* Clear farmland. */ for (TileIndex tile = 0; tile < MapSize(); tile++) { @@ -665,8 +665,7 @@ public: break; 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()) { DoCommandP(0, this->selected_type, InteractiveRandom(), CMD_BUILD_INDUSTRY | CMD_MSG(STR_ERROR_CAN_T_CONSTRUCT_THIS_INDUSTRY)); this->HandleButtonClick(WID_DPI_FUND_WIDGET); |