1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 15:24:30 +01:00

Fix #8585: Part of track missing on air powered vertical coaster (#8635)

This commit is contained in:
Michael Steenbeek
2019-01-25 22:09:12 +01:00
committed by GitHub
parent 66c571370e
commit 3b176cd6eb
2 changed files with 8 additions and 11 deletions

View File

@@ -57,6 +57,7 @@
- Fix: [#8555] Multiplayer window text limits are not computed properly.
- Fix: [#8572] Steel Twister track pieces ID 64 and 65 drawn incorrectly.
- Fix: [#8584] Duck spawning function does not check tiles with x or y coordinate of 0..63 (original bug).
- Fix: [#8585] Part of track missing on air powered vertical coaster.
- Fix: [#8588] Guest list scrolling breaks above ~2000 guests.
- Fix: [#8591] Game loop does not run at a consistent tick rate of 40 Hz.
- Improved: [#2940] Allow mouse-dragging to set patrol area (Singleplayer only).

View File

@@ -657,20 +657,16 @@ static void air_powered_vertical_rc_track_vertical_slope_up(
switch (trackSequence)
{
case 0:
// HACK this might be a mistake in original code
if (direction & 1)
{
bbHeight = bbHeights12[trackSequence];
sub_98197C_rotated(session, direction, supportsImageId, 0, 0, 20, 32, bbHeight, height, 0, 6, height);
sub_98199C_rotated(session, direction, trackImageId, 0, 0, 20, 32, bbHeight, height, 0, 6, height);
bbHeight = bbHeights12[trackSequence];
sub_98197C_rotated(session, direction, supportsImageId, 0, 0, 20, 32, bbHeight, height, 0, 6, height);
sub_98199C_rotated(session, direction, trackImageId, 0, 0, 20, 32, bbHeight, height, 0, 6, height);
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
wooden_a_supports_paint_setup(session, 0, 0, height, session->TrackColours[SCHEME_SUPPORTS], nullptr);
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
paint_util_push_tunnel_rotated(session, direction, height, TUNNEL_6);
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(session, height + supportHeights[trackSequence], 0x20);
}
paint_util_set_segment_support_height(session, SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(session, height + supportHeights[trackSequence], 0x20);
break;
case 1:
case 2: