Codechange: Use Map::Iterate() to iterate tiles

This commit is contained in:
SamuXarick
2024-10-27 18:52:57 +00:00
committed by rubidium42
parent cfb995b6e9
commit 10e2d1ca36
15 changed files with 36 additions and 36 deletions

View File

@@ -1299,7 +1299,7 @@ void TileLoop_Water(TileIndex tile)
void ConvertGroundTilesIntoWaterTiles()
{
for (TileIndex tile = 0; tile < Map::Size(); ++tile) {
for (const auto tile : Map::Iterate()) {
auto [slope, z] = GetTileSlopeZ(tile);
if (IsTileType(tile, MP_CLEAR) && z == 0) {
/* Make both water for tiles at level 0