| Old revision #prugkdgjq | New revision #psiivpgdr | ||
|---|---|---|---|
| 15 | ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); | 15 | ret = DoCommand(tile, 0, 0, flags, CMD_LANDSCAPE_CLEAR); |
| 16 | if (ret.Failed()) return ret; | 16 | if (ret.Failed()) return ret; |
| 17 | cost.AddCost(ret); | 17 | cost.AddCost(ret); |
| 18 | cost.AddCost(_price[PR_BUILD_CANAL]); | ||
| 18 | } | 19 | } |
| 19 | 20 | ||
| 20 | /* lower tile */ | 21 | /* lower tile */ | … | … |
| 53 | if (c != NULL) { | 54 | if (c != NULL) { |
| 54 | /* Counts for the water. */ | 55 | /* Counts for the water. */ |
| 55 | if (!IsWaterTile(tile - delta)) c->infrastructure.water++; | 56 | if (!IsWaterTile(tile - delta)) c->infrastructure.water++; |
| 57 | if (!IsWaterTile(tile)) c->infrastructure.water++; | ||
| 56 | if (!IsWaterTile(tile + delta)) c->infrastructure.water++; | 58 | if (!IsWaterTile(tile + delta)) c->infrastructure.water++; |
| 57 | /* Count for the lock itself. */ | 59 | /* Count for the lock itself. */ |
| 58 | c->infrastructure.water += 3 * LOCK_DEPOT_TILE_FACTOR; // Lock is three tiles. | 60 | c->infrastructure.water += 3 * LOCK_DEPOT_TILE_FACTOR; // Lock is three tiles. |