Codechange: use enum class for ClearGround

This commit is contained in:
Peter Nelson
2026-02-02 17:09:27 +00:00
committed by Peter Nelson
parent 17cab9b29d
commit 5c2a37d03e
14 changed files with 95 additions and 95 deletions
+1 -1
View File
@@ -2151,7 +2151,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile, bool check_surrounding)
switch (GetTileType(t)) {
case TileType::Clear:
/* Don't allow rough tiles, as they are likely wetlands. */
if (GetClearGround(t) == CLEAR_ROUGH) continue;
if (GetClearGround(t) == ClearGround::Rough) continue;
break;
case TileType::Trees: