From d731a015ea8fdefef86b8233a286359d89a2ee83 Mon Sep 17 00:00:00 2001 From: Daniel Trujillo Date: Fri, 8 Jul 2016 18:53:42 +0200 Subject: [PATCH] Fix bug causing block brakes blocking vehicles in non-block mode A comparison has been added to ensure that, if the ride isn't in a block-sectioned mode, the block brakes will act as a simple brakes (with 6 km/h boosters) --- src/ride/vehicle.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ride/vehicle.c b/src/ride/vehicle.c index 2bb377d54c..68ee3134d8 100644 --- a/src/ride/vehicle.c +++ b/src/ride/vehicle.c @@ -5432,7 +5432,7 @@ static void sub_6DAB4C_chunk_2(rct_vehicle *vehicle) RCT2_GLOBAL(0x00F64E18, uint32) |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_10; } } else if (trackType == TRACK_ELEM_CABLE_LIFT_HILL || trackType == TRACK_ELEM_BLOCK_BRAKES || track_element_is_lift_hill(trackElement)) { - if (!(trackElement->flags & (1 << 5))) { + if (!(trackElement->flags & (1 << 5)) || !ride_is_block_sectioned(ride)) { if (trackType == TRACK_ELEM_BLOCK_BRAKES && vehicle->velocity >= 0) { if (vehicle->velocity <= 0x20364) { vehicle->velocity = 0x20364;