mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: use enum class for ClearGround
This commit is contained in:
committed by
Peter Nelson
parent
17cab9b29d
commit
5c2a37d03e
+1
-1
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user