* Make a river tile and remove desert directly around it. * @param tile The tile to change into river and create non-desert around */
| 470 | * @param tile The tile to change into river and create non-desert around |
| 471 | */ |
| 472 | void MakeRiverAndModifyDesertZoneAround(TileIndex tile) |
| 473 | { |
| 474 | MakeRiver(tile, Random()); |
| 475 | MarkTileDirtyByTile(tile); |
| 476 | |
| 477 | /* Remove desert directly around the river tile. */ |
| 478 | for (auto t : SpiralTileSequence(tile, RIVER_OFFSET_DESERT_DISTANCE)) { |
| 479 | if (GetTropicZone(t) == TROPICZONE_DESERT) SetTropicZone(t, TROPICZONE_NORMAL); |
| 480 | } |
| 481 | } |
| 482 | |
| 483 | /** |
| 484 | * Build a piece of canal. |
no test coverage detected