Loading

Revision differences

Old revision #p0fosxr56New revision #piy9msgw1
10  10  
11    /* middle tile */  11    /* middle tile */  
12    WaterClass wc_middle = IsWaterTile(tile) ? GetWaterClass(tile) : WATER_CLASS_CANAL;  12    WaterClass wc_middle = IsWaterTile(tile) ? GetWaterClass(tile) : WATER_CLASS_CANAL;  
13    ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);  13   
14    if (ret.Failed()) return ret;  14    if (!IsWaterTile(tile)) {
15    cost.AddCost(ret);  15        ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR);
   16        if (ret.Failed()) return ret;
   17        cost.AddCost(ret);
   18        cost.AddCost(_price[PR_BUILD_CANAL]);
   19    }
16  20  
17    /* lower tile */  21    /* lower tile */  
18    WaterClass wc_lower = IsWaterTile(tile - delta) ? GetWaterClass(tile - delta) : WATER_CLASS_CANAL;  22    WaterClass wc_lower = IsWaterTile(tile - delta) ? GetWaterClass(tile - delta) : WATER_CLASS_CANAL;