1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 14:02:59 +01:00

Change RTD flags to a strong enum

This commit is contained in:
Michael Steenbeek
2024-08-13 22:20:25 +02:00
committed by GitHub
parent da8a049b81
commit 47800cddcf
140 changed files with 795 additions and 789 deletions

View File

@@ -77,7 +77,7 @@ static void SetupTrackManagerObjects()
for (auto rideType : item->RideInfo.RideType)
{
if (GetRideTypeDescriptor(rideType).HasFlag(RIDE_TYPE_FLAG_HAS_TRACK))
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::hasTrack))
{
*selectionFlags &= ~ObjectSelectionFlags::Flag6;
break;
@@ -108,7 +108,7 @@ static void SetupTrackDesignerObjects()
{
if (rideType != RIDE_TYPE_NULL)
{
if (GetRideTypeDescriptor(rideType).HasFlag(RIDE_TYPE_FLAG_SHOW_IN_TRACK_DESIGNER))
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::showInTrackDesigner))
{
*selectionFlags &= ~ObjectSelectionFlags::Flag6;
break;