Create enum class for EntranceType

This commit is contained in:
Gymnasiast committed 2026-08-12 16:16:07 +02:00
1 parent 34e8149e93
commit d943171fae
34 files changed
+149 -129

No files matched your search

+2 -2
View File
@@ -564,9 +564,9 @@ static bool TrackDesignSaveShouldSelectSceneryAround(RideId rideIndex, TileEleme
break;
case TileElementType::entrance:
// FIXME: This will always break and return false!
if (tileElement->asEntrance()->getEntranceType() != ENTRANCE_TYPE_RIDE_ENTRANCE)
if (tileElement->asEntrance()->getEntranceType() != EntranceType::rideEntrance)
break;
if (tileElement->asEntrance()->getEntranceType() != ENTRANCE_TYPE_RIDE_EXIT)
if (tileElement->asEntrance()->getEntranceType() != EntranceType::rideExit)
break;
if (tileElement->asEntrance()->getRideIndex() == rideIndex)
return true;