Remove unwanted condition in ride_ratings_update_state_5

This commit is contained in:
underdoom authored and GitHub committed 2022-07-12 19:58:40 +02:00
1 parent 11614d7170
commit fe2f1bad5a
1 file changed
+2 -4
+2 -4
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);