mirror of https://github.com/OpenRCT2/OpenRCT2.git
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:
parent
21faeaeba1
commit
c53ce355fa
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue