Codechange: use enum class for ClearGround

This commit is contained in:
Peter Nelson
2026-02-02 18:49:20 +00:00
committed by Peter Nelson
parent 17cab9b29d
commit 5c2a37d03e
14 changed files with 95 additions and 95 deletions
+2 -2
View File
@@ -618,8 +618,8 @@ public:
/* Clear farmland. */
for (const auto tile : Map::Iterate()) {
if (IsTileType(tile, TileType::Clear) && GetClearGround(tile) == CLEAR_FIELDS) {
MakeClear(tile, CLEAR_GRASS, 3);
if (IsTileType(tile, TileType::Clear) && GetClearGround(tile) == ClearGround::Fields) {
MakeClear(tile, ClearGround::Grass, 3);
}
}