mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 05:53:02 +01:00
Remove unwanted condition in ride_ratings_update_state_5
This commit is contained in:
@@ -230,8 +230,7 @@ static void ride_ratings_update_state_2(RideRatingUpdateState& state)
|
||||
continue;
|
||||
}
|
||||
|
||||
// TODO: Hack to be removed with new save format - trackType 0xFF should not be here.
|
||||
if (trackType == 0xFF || trackType == TrackElemType::None
|
||||
if (trackType == TrackElemType::None
|
||||
|| (tileElement->AsTrack()->GetSequenceIndex() == 0 && trackType == tileElement->AsTrack()->GetTrackType()))
|
||||
{
|
||||
if (trackType == TrackElemType::EndStation)
|
||||
@@ -337,8 +336,7 @@ static void ride_ratings_update_state_5(RideRatingUpdateState& state)
|
||||
continue;
|
||||
}
|
||||
|
||||
// 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())
|
||||
if (trackType == TrackElemType::None || trackType == tileElement->AsTrack()->GetTrackType())
|
||||
{
|
||||
ride_ratings_score_close_proximity(state, tileElement);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user