Fix track breaks when traveling backwards

This commit is contained in:
duncanspumpkin 2016-01-18 19:41:40 +00:00
parent 869a47a777
commit 3d6be6cb2a
1 changed files with 2 additions and 2 deletions

View File

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