forked from rosebudai/OpenRCT2-Web
Replace direct RIDE_TYPE_MOTION_SIMULATOR check with SpecialType
This commit is contained in:
3 files changed
+4
-2
No files matched your search
@@ -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;
|
||||
|
||||
|
||||
@@ -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
|
||||
Reference in new issue
Block a user