Fix incorrect label when using Log Bumps piece on Car Ride

This commit is contained in:
Richard Qian 2020-12-14 16:49:43 -06:00
parent b86c28a66e
commit f293dee3d1

View file

@ -2245,7 +2245,7 @@ static void window_ride_construction_invalidate(rct_window* w)
if (_currentTrackCurve & RideConstructionSpecialPieceSelected)
{
stringId = RideConfigurationStringIds[_currentTrackCurve & ~RideConstructionSpecialPieceSelected];
if (stringId == STR_RAPIDS && ride->type == RIDE_TYPE_MONSTER_TRUCKS)
if (stringId == STR_RAPIDS && (ride->type == RIDE_TYPE_MONSTER_TRUCKS || ride->type == RIDE_TYPE_CAR_RIDE))
{
stringId = STR_LOG_BUMPS;
}
@ -3346,7 +3346,7 @@ static void window_ride_construction_show_special_track_dropdown(rct_window* w,
if (trackPieceStringId == STR_RAPIDS)
{
auto ride = get_ride(_currentRideIndex);
if (ride != nullptr && ride->type == RIDE_TYPE_MONSTER_TRUCKS)
if (ride != nullptr && (ride->type == RIDE_TYPE_MONSTER_TRUCKS || ride->type == RIDE_TYPE_CAR_RIDE))
trackPieceStringId = STR_LOG_BUMPS;
}
if (trackPieceStringId == STR_SPINNING_CONTROL_TOGGLE_TRACK)