Convert PoweredLaunch to PoweredLaunchBlockSectioned when block brake

This commit is contained in:
frutiemax committed 2022-07-31 17:58:58 -04:00
1 parent 889293f2b7
commit 293370c3c5
1 file changed
+10 -2
+10 -2
View File
@@ -547,9 +547,17 @@ GameActions::Result TrackPlaceAction::Execute() const
ride->num_block_brakes++;
ride->window_invalidate_flags |= RIDE_INVALIDATE_RIDE_OPERATING;
// change the current mode to its circuit blocked equivalent
RideMode newMode = RideMode::ContinuousCircuitBlockSectioned;
if (ride->type == RIDE_TYPE_LIM_LAUNCHED_ROLLER_COASTER)
newMode = RideMode::PoweredLaunchBlockSectioned;
if (ride->mode == RideMode::PoweredLaunch)
{
if (ride->GetRideTypeDescriptor().RideModes
& (1ULL << static_cast<uint8_t>(RideMode::PoweredLaunchBlockSectioned))
|| gCheatsShowAllOperatingModes)
newMode = RideMode::PoweredLaunchBlockSectioned;
else
newMode = RideMode::PoweredLaunch;
}
auto rideSetSetting = RideSetSettingAction(ride->id, RideSetSetting::Mode, static_cast<uint8_t>(newMode));
GameActions::ExecuteNested(&rideSetSetting);