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
1 changed files with 4 additions and 1 deletions

View File

@ -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: