Codechange: Use enum class for Roadside.

This commit is contained in:
Peter Nelson
2025-11-17 19:49:37 +00:00
committed by dP
parent fab1c5f7e9
commit 0112fa8ce3
7 changed files with 90 additions and 59 deletions
+1 -1
View File
@@ -246,7 +246,7 @@ static bool FixTTOMapArray()
case MP_ROAD: // road (depot) or level crossing
switch (GB(tile.m5(), 4, 4)) {
case 0: // RoadTileType::Normal
if (tile.m2() == 4) tile.m2() = 5; // 'small trees' -> ROADSIDE_TREES
if (tile.m2() == 4) tile.m2() = 5; // 'small trees' -> Roadside::Trees
break;
case 1: // RoadTileType::Crossing (there aren't monorail crossings in TTO)
tile.m3() = tile.m1(); // set owner of road = owner of rail