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:
committed by
GitHub
parent
da8a049b81
commit
47800cddcf
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user