Replace direct RIDE_TYPE_MOTION_SIMULATOR check with SpecialType

This commit is contained in:
Gymnasiast committed 2025-10-14 23:37:08 +02:00
1 parent bdffc6dd40
commit 1d404b53a6
3 files changed
+4 -2

No files matched your search

+2 -2
View File
@@ -4374,7 +4374,7 @@ void Guest::UpdateRideLeaveVehicle()
exitWaypointLoc.y += carEntry->peep_loading_waypoints[waypointIndex][2].y;
}
if (ride->type == RIDE_TYPE_MOTION_SIMULATOR)
if (ride->getRideTypeDescriptor().specialType == RtdSpecialType::motionSimulator)
exitWaypointLoc.z += 15;
MoveTo(exitWaypointLoc);
@@ -4598,7 +4598,7 @@ void Guest::UpdateRideApproachExitWaypoints()
{
int16_t actionZ;
if (ride->type == RIDE_TYPE_MOTION_SIMULATOR)
if (ride->getRideTypeDescriptor().specialType == RtdSpecialType::motionSimulator)
{
actionZ = ride->getStation(CurrentRideStation).GetBaseZ() + 2;
+1
View File
@@ -451,6 +451,7 @@ enum class RtdSpecialType
cashMachine,
firstAid,
enterprise,
motionSimulator,
};
// Set on ride types that have a main colour, additional colour and support colour.
@@ -75,6 +75,7 @@ constexpr RideTypeDescriptor MotionSimulatorRTD =
.UpdateMeasurementsSpecialElements = RideUpdateMeasurementsSpecialElements_Default,
.MusicTrackOffsetLength = RideAudio::RideMusicGetTrackOffsetLength_Default,
.UpdateRideApproachVehicleWaypoints = UpdateRideApproachVehicleWaypointsMotionSimulator,
.specialType = RtdSpecialType::motionSimulator,
};
} // namespace OpenRCT2
// clang-format on