* Adds all tiles that incident with the north corner of a specific tile to the "tile_table" in a TerraformerState. * * @param ts TerraformerState. * @param tile Tile. * @ingroup dirty */
| 80 | * @ingroup dirty |
| 81 | */ |
| 82 | static void TerraformAddDirtyTileAround(TerraformerState *ts, TileIndex tile) |
| 83 | { |
| 84 | /* Make sure all tiles passed to TerraformAddDirtyTile are within [0, Map::Size()] */ |
| 85 | if (TileY(tile) >= 1) TerraformAddDirtyTile(ts, tile + TileDiffXY( 0, -1)); |
| 86 | if (TileY(tile) >= 1 && TileX(tile) >= 1) TerraformAddDirtyTile(ts, tile + TileDiffXY(-1, -1)); |
| 87 | if (TileX(tile) >= 1) TerraformAddDirtyTile(ts, tile + TileDiffXY(-1, 0)); |
| 88 | TerraformAddDirtyTile(ts, tile); |
| 89 | } |
| 90 | |
| 91 | /** |
| 92 | * Terraform the north corner of a tile to a specific height. |
no test coverage detected