mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-28 01:04:50 +01:00
Cut out Mini Golf inverted code
This commit is contained in:
@@ -7852,7 +7852,7 @@ Loc6DC462:
|
||||
direction = outDirection;
|
||||
}
|
||||
|
||||
if (PitchAndRollStart(HasFlag(VehicleFlags::CarIsInverted), tileElement) != TrackPitchAndRollEnd(GetTrackType()))
|
||||
if (PitchAndRollStart(false, tileElement) != TrackPitchAndRollEnd(GetTrackType()))
|
||||
{
|
||||
_vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_5;
|
||||
_vehicleVelocityF64E0C -= remaining_distance + 1;
|
||||
@@ -7866,18 +7866,6 @@ Loc6DC462:
|
||||
goto Loc6DCA9A;
|
||||
}
|
||||
|
||||
{
|
||||
int32_t rideType = ::GetRide(tileElement->AsTrack()->GetRideIndex())->type;
|
||||
ClearFlag(VehicleFlags::CarIsInverted);
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::hasInvertedVariant))
|
||||
{
|
||||
if (tileElement->AsTrack()->IsInverted())
|
||||
{
|
||||
SetFlag(VehicleFlags::CarIsInverted);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TrackLocation = trackPos;
|
||||
|
||||
if (!IsHead())
|
||||
@@ -8070,7 +8058,7 @@ Loc6DCA9A:
|
||||
tileElement = trackBeginEnd.begin_element;
|
||||
}
|
||||
|
||||
if (PitchAndRollStart(HasFlag(VehicleFlags::CarIsInverted), tileElement) != TrackPitchAndRollEnd(GetTrackType()))
|
||||
if (PitchAndRollStart(false, tileElement) != TrackPitchAndRollEnd(GetTrackType()))
|
||||
{
|
||||
_vehicleMotionTrackFlags |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_5;
|
||||
_vehicleVelocityF64E0C -= remaining_distance - 0x368A;
|
||||
@@ -8085,18 +8073,6 @@ Loc6DCA9A:
|
||||
goto Loc6DC462;
|
||||
}
|
||||
|
||||
{
|
||||
int32_t rideType = ::GetRide(tileElement->AsTrack()->GetRideIndex())->type;
|
||||
ClearFlag(VehicleFlags::CarIsInverted);
|
||||
if (GetRideTypeDescriptor(rideType).HasFlag(RtdFlag::hasInvertedVariant))
|
||||
{
|
||||
if (tileElement->AsTrack()->IsInverted())
|
||||
{
|
||||
SetFlag(VehicleFlags::CarIsInverted);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
TrackLocation = trackPos;
|
||||
|
||||
if (HasFlag(VehicleFlags::OnLiftHill))
|
||||
|
||||
Reference in New Issue
Block a user