2 | /* Clear the tiles, but do not affect town ratings */
| 2 | if ((ind_behav & INDUSTRYBEH_BUILT_ONWATER) && _settings_game.construction.build_on_competitor_canal) {
|
---|
3 | CommandCost ret = DoCommand(cur_tile, 0, 0, DC_AUTO | DC_NO_TEST_TOWN_RATING | DC_NO_MODIFY_TOWN_RATING, CMD_LANDSCAPE_CLEAR);
| 3 | if (IsWaterTile(cur_tile) && IsCanal(cur_tile)) {
|
---|
| | 4 | CommandCost ret = CheckTileOwnership(cur_tile);
|
---|
| | 5 | if (ret.Failed() && GetTileOwner(cur_tile) >= MAX_COMPANIES) return ret;
|
---|
| | 6 | } else {
|
---|
| | 7 | /* Clear the tiles, but do not affect town ratings */
|
---|
| | 8 | CommandCost ret = DoCommand(cur_tile, 0, 0, DC_AUTO | DC_NO_TEST_TOWN_RATING | DC_NO_MODIFY_TOWN_RATING, CMD_LANDSCAPE_CLEAR);
|
---|