} else { /* Clear the tiles, but do not affect town ratings */ CommandCost ret = DoCommand(cur_tile, 0, 0, DC_AUTO | DC_NO_TEST_TOWN_RATING | DC_NO_MODIFY_TOWN_RATING, CMD_LANDSCAPE_CLEAR); if (ret.Failed()) { if (!(ind_behav & INDUSTRYBEH_BUILT_ONWATER)) return ret; if (!_settings_game.construction.build_on_competitor_canal) return ret; if (_settings_game.construction.build_on_competitor_canal && (ind_behav & INDUSTRYBEH_BUILT_ONWATER) && (IsTileType(cur_tile, MP_INDUSTRY) || _current_company >= MAX_COMPANIES)) return ret; } } }