From c53ce355fa33a7f2821cf1f7f05952c02ff30aed Mon Sep 17 00:00:00 2001 From: duncanspumpkin Date: Tue, 2 Feb 2016 18:52:41 +0000 Subject: [PATCH] Fix #2827. Chairlifts now create vehicles correctly. Issue was caused by incorrectly returning on successfully finding the next track piece. This in turn would cause the chairlift to not realise it was on an end station piece. --- src/ride/vehicle.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/ride/vehicle.c b/src/ride/vehicle.c index 74547ba14b..d10a7a71b7 100644 --- a/src/ride/vehicle.c +++ b/src/ride/vehicle.c @@ -7135,10 +7135,13 @@ bool vehicle_update_track_motion_backwards_get_new_track(rct_vehicle *vehicle, u input.x = x; input.y = y; input.element = mapElement; - if (track_block_get_next(&input, &output, &outputZ, &direction)) { + if (!track_block_get_next(&input, &output, &outputZ, &direction)) { return false; } mapElement = output.element; + x = output.x; + y = output.y; + z = outputZ; } //loc_6DBC3B: