Old revision #p0fosxr56 | New revision #prugkdgjq | ||
---|---|---|---|
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 | } | ||
16 | 19 | ||
17 | /* lower tile */ | 20 | /* lower tile */ |
18 | WaterClass wc_lower = IsWaterTile(tile - delta) ? GetWaterClass(tile - delta) : WATER_CLASS_CANAL; | 21 | WaterClass wc_lower = IsWaterTile(tile - delta) ? GetWaterClass(tile - delta) : WATER_CLASS_CANAL; |