Old revision #psebpsnid | New revision #pud3xwsld | ||
---|---|---|---|
6 | /* Rivers can't be terraformed if the resulting formation is not flat or inclined */ | 6 | /* Rivers can't be terraformed if the resulting formation is not flat or inclined */ |
7 | if (IsWaterTile(tile) && IsRiver(tile)) { | 7 | if (IsWaterTile(tile) && IsRiver(tile)) { |
8 | if (IsTileFlat(tileh_new) || IsInclinedSlope(tileh_new)) { | 8 | if (IsTileFlat(tileh_new) || IsInclinedSlope(tileh_new)) { |
9 | DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); | ||
9 | } | 10 | } |
10 | else { | 11 | else { |
11 | return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION); | 12 | return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION); |
12 | } | 13 | } |
13 | } | 14 | } |
14 | return | 14 | return |
15 | } | 16 | } |