diff --git a/src/openrct2/rct2/S6Importer.cpp b/src/openrct2/rct2/S6Importer.cpp index 2f2d99ddf3..0584669d63 100644 --- a/src/openrct2/rct2/S6Importer.cpp +++ b/src/openrct2/rct2/S6Importer.cpp @@ -803,13 +803,10 @@ public: dst.ProximityStart = { src.proximity_start_x, src.proximity_start_y, src.proximity_start_z }; dst.CurrentRide = src.current_ride; dst.State = src.state; - if (src.proximity_track_type == 0xFF) - dst.ProximityTrackType = TrackElemType::None; - else if ( - src.current_ride < RCT12_MAX_RIDES_IN_PARK && _s6.rides[src.current_ride].type < std::size(RideTypeDescriptors)) + if (src.current_ride < RCT12_MAX_RIDES_IN_PARK && _s6.rides[src.current_ride].type < std::size(RideTypeDescriptors)) dst.ProximityTrackType = RCT2TrackTypeToOpenRCT2(src.proximity_track_type, _s6.rides[src.current_ride].type); else - dst.ProximityTrackType = src.proximity_track_type; + dst.ProximityTrackType = 0xFF; dst.ProximityBaseHeight = src.proximity_base_height; dst.ProximityTotal = src.proximity_total; for (size_t i = 0; i < std::size(src.proximity_scores); i++) diff --git a/src/openrct2/ride/RideRatings.cpp b/src/openrct2/ride/RideRatings.cpp index 6b85ec14df..937d8a1bc6 100644 --- a/src/openrct2/ride/RideRatings.cpp +++ b/src/openrct2/ride/RideRatings.cpp @@ -226,7 +226,8 @@ static void ride_ratings_update_state_2() continue; } - if (trackType == TrackElemType::None + // TODO: Hack to be removed with new save format - trackType 0xFF should not be here. + if (trackType == 0xFF || trackType == TrackElemType::None || (tileElement->AsTrack()->GetSequenceIndex() == 0 && trackType == tileElement->AsTrack()->GetTrackType())) { if (trackType == TrackElemType::EndStation) @@ -332,7 +333,8 @@ static void ride_ratings_update_state_5() continue; } - if (trackType == TrackElemType::None || trackType == tileElement->AsTrack()->GetTrackType()) + // TODO: Hack to be removed with new save format - trackType 0xFF should not be here. + if (trackType == 0xFF || trackType == TrackElemType::None || trackType == tileElement->AsTrack()->GetTrackType()) { ride_ratings_score_close_proximity(tileElement);