1
0
mirror of https://github.com/OpenTTD/OpenTTD synced 2026-02-03 01:15:03 +01:00

Fix b4ac5e2231: don't compare clear density with ClearGround (#15217)

This commit is contained in:
Peter Nelson
2026-02-02 13:02:56 +00:00
committed by GitHub
parent cb562ef33c
commit f25e1f8be1

View File

@@ -2146,7 +2146,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 (GetClearDensity(t) == CLEAR_ROUGH) continue;
if (GetClearGround(t) == CLEAR_ROUGH) continue;
break;
case TileType::Trees: