Loading

Revision differences

Old revision #pf0ccdkviNew revision #pud3xwsld
5  5  
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);
   10        }
   11        else {
9            return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);  12            return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);  
10        }  13        }  
11    }  14    }  
12    return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);  12    return
13} 16}