mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-30 10:15:36 +01:00
Fix side friction roller coaster painting
This commit is contained in:
@@ -72,6 +72,23 @@ static void side_friction_rc_track_flat(uint8 rideIndex, uint8 trackSequence, ui
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
static const uint32 imageIds[4] = {
|
||||
21610,
|
||||
21611,
|
||||
21610,
|
||||
21611,
|
||||
};
|
||||
|
||||
sub_98197C_rotated(direction, imageIds[direction] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 27, 2, height, 0, 2, height);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
track_paint_util_draw_station_2(rideIndex, trackSequence, direction, height, mapElement, 9, 11);
|
||||
paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (track_element_is_lift_hill(mapElement)) {
|
||||
@@ -1882,6 +1899,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int trackType, in
|
||||
switch (trackType) {
|
||||
case TRACK_ELEM_FLAT:
|
||||
return side_friction_rc_track_flat;
|
||||
case TRACK_ELEM_END_STATION:
|
||||
case TRACK_ELEM_BEGIN_STATION:
|
||||
case TRACK_ELEM_MIDDLE_STATION:
|
||||
return side_friction_rc_track_station;
|
||||
case TRACK_ELEM_25_DEG_UP:
|
||||
return side_friction_rc_track_25_deg_up;
|
||||
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
|
||||
|
||||
Reference in New Issue
Block a user