From 3d6be6cb2a54d4371be131d39b8e5314b655b361 Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Mon, 18 Jan 2016 19:41:40 +0000 Subject: [PATCH] Fix track breaks when traveling backwards --- src/ride/vehicle.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ride/vehicle.c b/src/ride/vehicle.c index c2674de06b..4212a04692 100644 --- a/src/ride/vehicle.c +++ b/src/ride/vehicle.c @@ -7223,8 +7223,8 @@ loc_6DBA33:; if (trackType == TRACK_ELEM_BRAKES) { regs.eax = -(vehicle->var_CF << 16); - if (regs.eax <= RCT2_GLOBAL(0x00F64E08, sint32)) { - regs.eax = RCT2_GLOBAL(0x00F64E08, sint32) * -4; + if (regs.eax > RCT2_GLOBAL(0x00F64E08, sint32)) { + regs.eax = RCT2_GLOBAL(0x00F64E08, sint32) * -16; vehicle->acceleration = regs.eax; } }