mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-26 00:45:35 +00:00
Codechange: use enum class for ClearGround
This commit is contained in:
committed by
Peter Nelson
parent
17cab9b29d
commit
5c2a37d03e
+3
-3
@@ -390,7 +390,7 @@ static void GreyscaleToMapHeights(uint img_width, uint img_height, std::span<con
|
||||
}
|
||||
/* Only clear the tiles within the map area. */
|
||||
if (IsInnerTile(tile)) {
|
||||
MakeClear(tile, CLEAR_GRASS, 3);
|
||||
MakeClear(tile, ClearGround::Grass, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -433,7 +433,7 @@ void FixSlopes()
|
||||
/* Height was changed so now there's a chance, more likely at higher altitude, of the
|
||||
* tile turning into rock. */
|
||||
if (IsInnerTile(tile) && RandomRange(max_height) <= current_height) {
|
||||
MakeClear(tile, CLEAR_ROCKS, 3);
|
||||
MakeClear(tile, ClearGround::Rocks, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -462,7 +462,7 @@ void FixSlopes()
|
||||
/* Height was changed so now there's a chance, more likely at higher altitude, of the
|
||||
* tile turning into rock. */
|
||||
if (IsInnerTile(tile) && RandomRange(max_height) <= current_height) {
|
||||
MakeClear(tile, CLEAR_ROCKS, 3);
|
||||
MakeClear(tile, ClearGround::Rocks, 3);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user