mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-06 06:32:56 +01:00
Fix track previous from not selecting corkscrews.
Issue was caused by wrong order of adding up the z coordinates of the previous track block
This commit is contained in:
@@ -533,8 +533,8 @@ bool track_block_get_previous_from_zero(sint16 x, sint16 y, sint16 z, uint8 ride
|
||||
|
||||
outTrackBeginEnd->begin_z = mapElement->base_height * 8;
|
||||
outTrackBeginEnd->begin_z +=
|
||||
nextTrackBlock->z -
|
||||
get_track_def_from_ride(ride, mapElement->properties.track.type)->z;
|
||||
get_track_def_from_ride(ride, mapElement->properties.track.type)->z -
|
||||
nextTrackBlock->z;
|
||||
|
||||
outTrackBeginEnd->begin_direction = nextRotation;
|
||||
outTrackBeginEnd->end_direction = RCT2_GLOBAL(0x00F441D3, uint8) ^ (1 << 1);
|
||||
|
||||
Reference in New Issue
Block a user