Remove unwanted condition in ride_ratings_update_state_5

This commit is contained in:
underdoom 2022-07-12 20:58:40 +03:00 committed by GitHub
parent 11614d7170
commit fe2f1bad5a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -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);