mirror of
https://github.com/OpenTTD/OpenTTD.git
synced 2026-07-24 03:56:43 +00:00
Codechange: use enum class for TreeGround (#15222)
This commit is contained in:
+1
-1
@@ -2156,7 +2156,7 @@ static CommandCost TownCanBePlacedHere(TileIndex tile, bool check_surrounding)
|
||||
|
||||
case TileType::Trees:
|
||||
/* Don't allow rough trees, as they are likely wetlands. */
|
||||
if (GetTreeGround(t) == TREE_GROUND_ROUGH) continue;
|
||||
if (GetTreeGround(t) == TreeGround::Rough) continue;
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user