From efb720326d7b76e1df0abc9967e466e36066dd22 Mon Sep 17 00:00:00 2001 From: Daniel Trujillo Date: Fri, 8 Jul 2016 23:56:52 +0200 Subject: [PATCH] Add an implicit "else" After "vehicle->velocity = 0", the sentence: "vehicle->velocity -= vehicle->velocity >> 3" doesn't have any effect, so insert an "else" can clarify the code --- src/ride/vehicle.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/ride/vehicle.c b/src/ride/vehicle.c index d186f1816c..a00f7fc200 100644 --- a/src/ride/vehicle.c +++ b/src/ride/vehicle.c @@ -5453,11 +5453,12 @@ static void sub_6DAB4C_chunk_2(rct_vehicle *vehicle) // Slow it down till completely stop the car RCT2_GLOBAL(0x00F64E18, uint32) |= VEHICLE_UPDATE_MOTION_TRACK_FLAG_10; vehicle->acceleration = 0; - // If the vehicle is slow enough, stop it + // If the vehicle is slow enough, stop it. If not, slow it down if (vehicle->velocity <= 0x20000) { vehicle->velocity = 0; + } else { + vehicle->velocity -= vehicle->velocity >> 3; } - vehicle->velocity -= vehicle->velocity >> 3; } } }