Skip to content

Commit

Permalink
Fix OpenRCT2#8585: Part of track missing on air powered vertical coaster
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Jan 24, 2019
1 parent 66c5713 commit cf2594a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
1 change: 1 addition & 0 deletions distribution/changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
18 changes: 7 additions & 11 deletions src/openrct2/ride/coaster/AirPoweredVerticalCoaster.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit cf2594a

Please sign in to comment.