From ad0dfc6f0a94e7e598e830388906264b035aa34d Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 23 Nov 2024 00:05:31 +0100 Subject: [PATCH] Remove one check for RIDE_TYPE_CHAIRLIFT --- src/openrct2-ui/windows/RideConstruction.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/openrct2-ui/windows/RideConstruction.cpp b/src/openrct2-ui/windows/RideConstruction.cpp index 43d6aa7419..566cc20512 100644 --- a/src/openrct2-ui/windows/RideConstruction.cpp +++ b/src/openrct2-ui/windows/RideConstruction.cpp @@ -2760,8 +2760,9 @@ namespace OpenRCT2::Ui::Windows continue; // Non-default vehicle visuals do not use this system, so we have to assume it supports all the track pieces. - if (currentRideEntry->Cars[0].PaintStyle != VEHICLE_VISUAL_DEFAULT || rideType == RIDE_TYPE_CHAIRLIFT - || (currentRideEntry->Cars[0].flags & CAR_ENTRY_FLAG_SLIDE_SWING)) + auto& firstCar = currentRideEntry->Cars[0]; + if (firstCar.PaintStyle != VEHICLE_VISUAL_DEFAULT || (firstCar.flags & CAR_ENTRY_FLAG_CHAIRLIFT) + || (firstCar.flags & CAR_ENTRY_FLAG_SLIDE_SWING)) { disabledGroups.reset(); break;