1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

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)
This commit is contained in:
Daniel Trujillo
2016-07-08 18:53:42 +02:00
parent 9efc0cab6a
commit d731a015ea

View File

@@ -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;