1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +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:
duncanspumpkin
2016-02-02 18:52:41 +00:00
parent 21faeaeba1
commit c53ce355fa

View File

@@ -7135,10 +7135,13 @@ bool vehicle_update_track_motion_backwards_get_new_track(rct_vehicle *vehicle, u
input.x = x; input.x = x;
input.y = y; input.y = y;
input.element = mapElement; input.element = mapElement;
if (track_block_get_next(&input, &output, &outputZ, &direction)) { if (!track_block_get_next(&input, &output, &outputZ, &direction)) {
return false; return false;
} }
mapElement = output.element; mapElement = output.element;
x = output.x;
y = output.y;
z = outputZ;
} }
//loc_6DBC3B: //loc_6DBC3B: