1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-16 11:33:03 +01:00

Remove RideTypesBeenOn hack

This commit is contained in:
Gymnasiast
2020-08-28 22:49:36 +02:00
committed by Ted John
parent 1007bac730
commit d6fc9d4459

View File

@@ -2110,15 +2110,11 @@ bool Guest::HasRidden(const Ride* ride) const
void Guest::SetHasRiddenRideType(int32_t rideType)
{
// This is needed to avoid desyncs. TODO: remove once the new save format is introduced.
rideType = OpenRCT2RideTypeToRCT2RideType(rideType);
RideTypesBeenOn[rideType / 8] |= 1 << (rideType % 8);
}
bool Guest::HasRiddenRideType(int32_t rideType) const
{
// This is needed to avoid desyncs. TODO: remove once the new save format is introduced.
rideType = OpenRCT2RideTypeToRCT2RideType(rideType);
return RideTypesBeenOn[rideType / 8] & (1 << (rideType % 8));
}