mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 07:43:01 +01:00
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.
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user