Loading

Revision differences

Old revision #pud3xwsldNew revision #pz8my8xcv
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(tile) && IsInclinedSlope(tileh_new)) {
9            DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);    
10        }  9        }  
11        else {  10        else {  
12            return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);  11            return_cmd_error(STR_ERROR_LAND_SLOPED_IN_WRONG_DIRECTION);  
13        }  12        }  
14    }  13    }  
15    return  15    return DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
16} 15}