1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-02 19:56:13 +01:00

Remove duplicated code with function call

This commit is contained in:
Gymnasiast
2020-04-19 21:13:20 +02:00
parent 7d50a2d186
commit 19646a29a5

View File

@@ -2541,9 +2541,7 @@ void window_ride_construction_update_enabled_track_pieces()
if (rideEntry == nullptr)
return;
int32_t rideType = (_currentTrackAlternative & RIDE_TYPE_ALTERNATIVE_TRACK_TYPE)
? RideTypeDescriptors[ride->type].AlternateType
: ride->type;
int32_t rideType = ride_get_alternative_type(ride);
if (!gCheatsEnableAllDrawableTrackPieces && RideGroupManager::RideTypeHasRideGroups(rideType))
{