Fix #10694: Lift hill speed of the Flying RC cannot be changed

This commit is contained in:
Michael Steenbeek 2020-02-22 18:47:33 +01:00 committed by GitHub
parent 8c6bfdd199
commit e16a53df1d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View file

@ -22,6 +22,7 @@
- Fix: [#10489] Hosts last player action not being synchronized.
- Fix: [#10543] Secondary shop item prices are not imported correctly from RCT1 saves.
- Fix: [#10547] RCT1 parks have too many rides available.
- Fix: [#10694] The lift hill speed of the flying roller coaster cannot be changed (original bug).
- Fix: [#10705] Apply multithreaded rendering to all viewports.
- Fix: [#10739] Mountain tool overlay for even-numbered selections.
- Removed: [#6898] LOADMM and LOADRCT1 title sequence commands (use LOADSC instead).

View file

@ -3638,8 +3638,11 @@ static void window_ride_operating_invalidate(rct_window* w)
| (1ULL << WIDX_MINIMUM_LENGTH_CHECKBOX) | (1ULL << WIDX_MAXIMUM_LENGTH_CHECKBOX)
| (1ULL << WIDX_SYNCHRONISE_WITH_ADJACENT_STATIONS_CHECKBOX));
// Lift hill speed
if (track_piece_is_available_for_ride_type(ride->type, TRACK_LIFT_HILL))
// Sometimes, only one of the alternatives support lift hill pieces. Make sure to check both.
bool hasAlternativeType = (RideData4[ride->type].flags & RIDE_TYPE_FLAG4_HAS_ALTERNATIVE_TRACK_TYPE) != 0;
if (track_piece_is_available_for_ride_type(ride->type, TRACK_LIFT_HILL)
|| (hasAlternativeType
&& track_piece_is_available_for_ride_type(RideData4[ride->type].alternate_type, TRACK_LIFT_HILL)))
{
window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED_LABEL].type = WWT_LABEL;
window_ride_operating_widgets[WIDX_LIFT_HILL_SPEED].type = WWT_SPINNER;