forked from rosebudai/OpenRCT2-Web
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:
1 parent
8fe245721b
commit
dfb63ebe88
1 file changed
+2
-2
+2
-2
@@ -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