mirror of https://github.com/OpenRCT2/OpenRCT2.git
Remove unwanted condition in ride_ratings_update_state_5
This commit is contained in:
parent
11614d7170
commit
fe2f1bad5a
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue