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