mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-15 11:03:00 +01:00
Merge pull request #4012 from gDanix/fix-3749
Fix #3749: Block Brake Issue when Run on Continous Non-block
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user