Change RTD flags to a strong enum

This commit is contained in:
Michael Steenbeek authored and GitHub committed 2024-08-13 20:20:25 +00:00
1 parent da8a049b81
commit 47800cddcf
140 files changed
+795 -789

No files matched your search

@@ -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;