diff --git a/src/ride/coaster/bobsleigh_coaster.c b/src/ride/coaster/bobsleigh_coaster.c
index ae7cea39a9..b1f186fe4e 100644
--- a/src/ride/coaster/bobsleigh_coaster.c
+++ b/src/ride/coaster/bobsleigh_coaster.c
@@ -66,6 +66,24 @@ static void bobsleigh_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void bobsleigh_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][2] = {
+ { 14580, SPR_STATION_BASE_B_SW_NE },
+ { 14581, SPR_STATION_BASE_B_NW_SE },
+ { 14580, SPR_STATION_BASE_B_SW_NE },
+ { 14581, SPR_STATION_BASE_B_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ sub_98196C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
+ 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 bobsleigh_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -2191,6 +2209,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int trackType, int di
switch (trackType) {
case TRACK_ELEM_FLAT:
return bobsleigh_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return bobsleigh_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return bobsleigh_rc_track_25_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
diff --git a/src/ride/coaster/compact_inverted_coaster.c b/src/ride/coaster/compact_inverted_coaster.c
index f558da5c68..09be59f5f0 100644
--- a/src/ride/coaster/compact_inverted_coaster.c
+++ b/src/ride/coaster/compact_inverted_coaster.c
@@ -62,6 +62,25 @@ static void compact_inverted_rc_track_flat(uint8 rideIndex, uint8 trackSequence,
paint_util_set_general_support_height(height + 48, 0x20);
}
+static void compact_inverted_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 26557, SPR_STATION_INVERTED_BAR_A_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 26558, SPR_STATION_INVERTED_BAR_A_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 26557, SPR_STATION_INVERTED_BAR_A_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 26558, SPR_STATION_INVERTED_BAR_A_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 3, height + 29, 0, 6, height + 29);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 11);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ paint_util_push_tunnel_rotated(direction, height, TUNNEL_9);
+ paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
+ paint_util_set_general_support_height(height + 48, 0x20);
+}
+
static void compact_inverted_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -3174,32 +3193,27 @@ static void compact_inverted_rc_track_on_ride_photo(uint8 rideIndex, uint8 track
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26555, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26556, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26555, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26556, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
paint_util_push_tunnel_rotated(direction, height, TUNNEL_3);
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(height + 64, 0x20);
@@ -5504,6 +5518,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int trackType,
switch (trackType) {
case TRACK_ELEM_FLAT:
return compact_inverted_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return compact_inverted_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return compact_inverted_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/corkscrew_roller_coaster.c b/src/ride/coaster/corkscrew_roller_coaster.c
index 686d414727..b4b13c7931 100644
--- a/src/ride/coaster/corkscrew_roller_coaster.c
+++ b/src/ride/coaster/corkscrew_roller_coaster.c
@@ -66,6 +66,28 @@ static void corkscrew_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void corkscrew_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 16236, 16232, SPR_STATION_BASE_A_SW_NE },
+ { 16237, 16233, SPR_STATION_BASE_A_NW_SE },
+ { 16236, 16232, SPR_STATION_BASE_A_SW_NE },
+ { 16237, 16233, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ 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 corkscrew_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -3160,32 +3182,27 @@ static void corkscrew_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequenc
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16224, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16225, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16224, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16225, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(height + 48, 0x20);
@@ -5772,6 +5789,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int trackType, int di
switch (trackType) {
case TRACK_ELEM_FLAT:
return corkscrew_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return corkscrew_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return corkscrew_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/flying_roller_coaster.c b/src/ride/coaster/flying_roller_coaster.c
index 7031936396..5ad1417453 100644
--- a/src/ride/coaster/flying_roller_coaster.c
+++ b/src/ride/coaster/flying_roller_coaster.c
@@ -66,6 +66,28 @@ static void flying_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 dir
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void flying_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 17154, 17150, SPR_STATION_BASE_A_SW_NE },
+ { 17155, 17151, SPR_STATION_BASE_A_NW_SE },
+ { 17154, 17150, SPR_STATION_BASE_A_SW_NE },
+ { 17155, 17151, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 11);
+ 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 flying_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (direction) {
@@ -2942,32 +2964,27 @@ static void flying_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence,
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17146, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17147, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17146, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17147, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -6605,6 +6622,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int trackType, int direc
switch (trackType) {
case TRACK_ELEM_FLAT:
return flying_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return flying_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return flying_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/giga_coaster.c b/src/ride/coaster/giga_coaster.c
index 6bab5c5764..f95dcd67b5 100644
--- a/src/ride/coaster/giga_coaster.c
+++ b/src/ride/coaster/giga_coaster.c
@@ -80,6 +80,28 @@ static void giga_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direc
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void giga_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 18084, 18076, SPR_STATION_BASE_A_SW_NE },
+ { 18085, 18077, SPR_STATION_BASE_A_NW_SE },
+ { 18084, 18076, SPR_STATION_BASE_A_SW_NE },
+ { 18085, 18077, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ 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 giga_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_cable_lift(mapElement)) {
@@ -2682,32 +2704,27 @@ static void giga_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, ui
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18074, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18075, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18074, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18075, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -6031,6 +6048,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int trackType, int directi
switch (trackType) {
case TRACK_ELEM_FLAT:
return giga_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return giga_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return giga_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/heartline_twister_coaster.c b/src/ride/coaster/heartline_twister_coaster.c
index 47ee266a3f..3861bcf0b2 100644
--- a/src/ride/coaster/heartline_twister_coaster.c
+++ b/src/ride/coaster/heartline_twister_coaster.c
@@ -72,6 +72,24 @@ static void heartline_twister_rc_track_flat(uint8 rideIndex, uint8 trackSequence
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void heartline_twister_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 19732, SPR_STATION_BASE_B_SW_NE },
+ { 19733, SPR_STATION_BASE_B_NW_SE },
+ { 19732, SPR_STATION_BASE_B_SW_NE },
+ { 19733, SPR_STATION_BASE_B_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ sub_98196C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
+ 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 heartline_twister_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -491,28 +509,28 @@ static void heartline_twister_rc_track_heartline_transfer_up(uint8 rideIndex, ui
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21308, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21318, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21312, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(6, 5, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(6, 5, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
case 1:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21315, 0, 0, 32, 20, 2, height + 8, 0, 6, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21309, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21319, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21313, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(7, 6, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(7, 6, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
case 2:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21316, 0, 0, 32, 20, 2, height + 8, 0, 6, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21306, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21320, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21310, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(6, 7, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(6, 7, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
case 3:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21317, 0, 0, 32, 20, 2, height + 8, 0, 6, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21307, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21321, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21311, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(7, 8, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(7, 8, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
}
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
@@ -611,28 +629,28 @@ static void heartline_twister_rc_track_heartline_transfer_down(uint8 rideIndex,
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21308, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21318, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21312, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(6, 5, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(6, 5, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
case 1:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21315, 0, 0, 32, 20, 2, height + 8, 0, 6, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21309, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21319, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21313, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(7, 6, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(7, 6, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
case 2:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21316, 0, 0, 32, 20, 2, height + 8, 0, 6, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21306, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21320, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21310, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(6, 7, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(6, 7, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
case 3:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21317, 0, 0, 32, 20, 2, height + 8, 0, 6, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21307, 0, 0, 32, 20, 2, height + 16, 0, 6, height + 16);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21321, 0, 0, 32, 1, 34, height + 8, 0, 27, height + 8);
sub_98199C_rotated(direction, gTrackColours[SCHEME_TRACK] | 21311, 0, 0, 32, 1, 34, height + 16, 0, 27, height + 16);
- wooden_a_supports_paint_setup(7, 8, height + 8, 0x00000000, NULL);
+ wooden_a_supports_paint_setup(7, 8, height + 8, gTrackColours[SCHEME_SUPPORTS], NULL);
break;
}
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
@@ -1031,6 +1049,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int trackType
switch (trackType) {
case TRACK_ELEM_FLAT:
return heartline_twister_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return heartline_twister_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return heartline_twister_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/inverted_hairpin_coaster.c b/src/ride/coaster/inverted_hairpin_coaster.c
index 15b64fc1e8..8db06aea26 100644
--- a/src/ride/coaster/inverted_hairpin_coaster.c
+++ b/src/ride/coaster/inverted_hairpin_coaster.c
@@ -66,6 +66,25 @@ static void inverted_hairpin_rc_track_flat(uint8 rideIndex, uint8 trackSequence,
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void inverted_hairpin_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 17028, SPR_STATION_INVERTED_BAR_0_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 17029, SPR_STATION_INVERTED_BAR_0_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 17028, SPR_STATION_INVERTED_BAR_0_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 17029, SPR_STATION_INVERTED_BAR_0_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 3, height + 24, 0, 6, height + 24);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 1, height + 24, 0, 6, height + 24);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 11);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ 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 inverted_hairpin_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -861,6 +880,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int trackType,
switch (trackType) {
case TRACK_ELEM_FLAT:
return inverted_hairpin_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return inverted_hairpin_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return inverted_hairpin_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/inverted_impulse_coaster.c b/src/ride/coaster/inverted_impulse_coaster.c
index 51ee56c6e7..5fcfe4b9ac 100644
--- a/src/ride/coaster/inverted_impulse_coaster.c
+++ b/src/ride/coaster/inverted_impulse_coaster.c
@@ -46,6 +46,25 @@ static void inverted_impulse_rc_track_flat(uint8 rideIndex, uint8 trackSequence,
paint_util_set_general_support_height(height + 48, 0x20);
}
+static void inverted_impulse_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 19662, SPR_STATION_INVERTED_BAR_B_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 19663, SPR_STATION_INVERTED_BAR_B_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 19662, SPR_STATION_INVERTED_BAR_B_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 19663, SPR_STATION_INVERTED_BAR_B_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 3, height + 29, 0, 6, height + 29);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 11);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ paint_util_push_tunnel_rotated(direction, height, TUNNEL_9);
+ paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
+ paint_util_set_general_support_height(height + 48, 0x20);
+}
+
static void inverted_impulse_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (direction) {
@@ -449,6 +468,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int trackType,
switch (trackType) {
case TRACK_ELEM_FLAT:
return inverted_impulse_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return inverted_impulse_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return inverted_impulse_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/inverted_roller_coaster.c b/src/ride/coaster/inverted_roller_coaster.c
index 86191dbd52..7d2ec78fab 100644
--- a/src/ride/coaster/inverted_roller_coaster.c
+++ b/src/ride/coaster/inverted_roller_coaster.c
@@ -62,6 +62,25 @@ static void inverted_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 d
paint_util_set_general_support_height(height + 48, 0x20);
}
+static void inverted_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 27131, SPR_STATION_INVERTED_BAR_C_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 27132, SPR_STATION_INVERTED_BAR_C_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 27131, SPR_STATION_INVERTED_BAR_C_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 27132, SPR_STATION_INVERTED_BAR_C_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 3, height + 29, 0, 6, height + 29);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 3);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ paint_util_push_tunnel_rotated(direction, height, TUNNEL_9);
+ paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
+ paint_util_set_general_support_height(height + 48, 0x20);
+}
+
static void inverted_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -3181,32 +3200,27 @@ static void inverted_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 27129, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 27130, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 27129, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 27130, 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
paint_util_push_tunnel_rotated(direction, height, TUNNEL_3);
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(height + 64, 0x20);
@@ -6503,6 +6517,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int trackType, int dir
switch (trackType) {
case TRACK_ELEM_FLAT:
return inverted_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return inverted_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return inverted_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/lay_down_roller_coaster.c b/src/ride/coaster/lay_down_roller_coaster.c
index ee4c23d4e5..67c7708103 100644
--- a/src/ride/coaster/lay_down_roller_coaster.c
+++ b/src/ride/coaster/lay_down_roller_coaster.c
@@ -66,6 +66,28 @@ static void lay_down_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 d
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void lay_down_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 16236, 16232, SPR_STATION_BASE_A_SW_NE },
+ { 16237, 16233, SPR_STATION_BASE_A_NW_SE },
+ { 16236, 16232, SPR_STATION_BASE_A_SW_NE },
+ { 16237, 16233, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 11);
+ 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 lay_down_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -2910,32 +2932,27 @@ static void lay_down_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16224, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16225, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16224, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 16225, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(height + 48, 0x20);
@@ -6072,6 +6089,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int trackType, int dir
switch (trackType) {
case TRACK_ELEM_FLAT:
return lay_down_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return lay_down_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return lay_down_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/lim_launched_roller_coaster.c b/src/ride/coaster/lim_launched_roller_coaster.c
index 7dba41102a..a6d4e1d87a 100644
--- a/src/ride/coaster/lim_launched_roller_coaster.c
+++ b/src/ride/coaster/lim_launched_roller_coaster.c
@@ -26,1321 +26,28 @@
#include "../track_data.h"
#include "../track_paint.h"
-static void lim_launched_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+static void lim_launched_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15006, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15007, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15008, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15009, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
+ static const uint32 imageIds[4][3] = {
+ { 15018, 15020, SPR_STATION_BASE_B_SW_NE },
+ { 15019, 15021, SPR_STATION_BASE_B_NW_SE },
+ { 15018, 15020, SPR_STATION_BASE_B_SW_NE },
+ { 15019, 15021, SPR_STATION_BASE_B_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
} else {
- switch (direction) {
- case 0:
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15004, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15005, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
}
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
+ 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 lim_launched_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15060, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15061, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15062, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15063, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15032, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15033, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15034, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15035, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15076, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15077, 0, 0, 32, 1, 98, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15078, 0, 0, 32, 1, 98, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15079, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 32, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15048, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15049, 0, 0, 32, 1, 98, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15050, 0, 0, 32, 1, 98, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15051, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 32, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 56, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
-}
-
-static void lim_launched_rc_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15052, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15053, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15054, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15055, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15024, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15025, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15026, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15027, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15064, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15065, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15068, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15066, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15069, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15067, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15036, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15037, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15040, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15038, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15041, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15039, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 24, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
-}
-
-static void lim_launched_rc_track_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15070, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15071, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15074, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15072, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15075, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15073, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 20, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15042, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15043, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15046, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15044, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15047, 0, 0, 32, 1, 66, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15045, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 20, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 24, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15056, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15057, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15058, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15059, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15028, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15029, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15030, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15031, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_60_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_down_to_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_60_deg_up_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_60_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_to_60_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_flat_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15183, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15188, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15193, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15178, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15182, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15187, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15192, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15177, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15181, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15186, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15191, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15176, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15180, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15185, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15190, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15175, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15179, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15184, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15189, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15174, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_left_quarter_turn_5(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_flat_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15080, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15092, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15081, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15093, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15082, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15083, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void lim_launched_rc_track_flat_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15084, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15085, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15086, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15094, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15087, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15095, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void lim_launched_rc_track_left_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15086, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15094, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15087, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15095, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15084, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15085, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void lim_launched_rc_track_right_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15082, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15083, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15080, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15092, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15081, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15093, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void lim_launched_rc_track_banked_left_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15203, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15214, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15208, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15213, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15198, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15202, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15207, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15212, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15197, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15201, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15206, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15211, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15196, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15200, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15205, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15210, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15195, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15199, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15204, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15209, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15215, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15194, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_banked_right_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_banked_left_quarter_turn_5(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15096, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15112, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15097, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15113, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15098, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15099, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_right_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15100, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15101, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15102, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15114, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15103, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15115, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_up_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15104, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15116, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15105, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15117, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15106, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15107, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_up_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15108, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15109, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15110, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15118, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15111, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15119, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_left_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_to_right_bank(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_to_left_bank(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_down_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_right_bank_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_down_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_bank_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15088, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15089, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15090, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15091, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void lim_launched_rc_track_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_bank(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15296, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15301, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15306, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15311, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15297, 0, 0, 32, 16, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15302, 0, 0, 32, 16, 3, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15307, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15312, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15298, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15303, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15308, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15313, 0, 0, 16, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15299, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15304, 0, 0, 16, 32, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15309, 0, 0, 16, 32, 3, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15314, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15300, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15305, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15310, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15315, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15276, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15281, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15286, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15291, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15277, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15282, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15287, 0, 0, 32, 16, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15292, 0, 0, 32, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15278, 0, 0, 16, 16, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15283, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15288, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15293, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15279, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15284, 0, 0, 16, 32, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15289, 0, 0, 16, 32, 3, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15294, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15280, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15285, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15290, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15295, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_right_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_left_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_s_bend_left(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15260, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15264, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15263, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15267, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15261, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15265, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(0, 6, 1, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15262, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15266, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15262, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15266, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15261, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15265, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(0, 6, 1, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15263, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15267, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15260, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15264, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 1:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 2:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_s_bend_right(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15268, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15272, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15271, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15275, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15269, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15273, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15270, 0, 0, 32, 26, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15274, 0, 0, 32, 26, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15270, 0, 0, 32, 26, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15274, 0, 0, 32, 26, 3, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15269, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15273, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15271, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15275, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15268, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15272, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 1:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 2:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
static void lim_launched_rc_track_left_vertical_loop(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (trackSequence) {
@@ -1685,309 +392,6 @@ static void lim_launched_rc_track_right_vertical_loop(uint8 rideIndex, uint8 tra
}
}
-static void lim_launched_rc_track_left_quarter_turn_3(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15125, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15128, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15131, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15122, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15124, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15127, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15130, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15121, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15123, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15126, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15129, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15120, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_quarter_turn_3(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_left_quarter_turn_3(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_quarter_turn_3_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15137, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15144, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15140, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15143, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15134, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15136, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15139, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15142, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15133, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15135, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15138, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15141, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15145, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15132, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_quarter_turn_3_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_left_quarter_turn_3_bank(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15327, 0, 6, 32, 20, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15329, 0, 6, 32, 20, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15331, 0, 6, 32, 20, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15325, 0, 6, 32, 20, 3, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15326, 6, 0, 20, 32, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15328, 6, 0, 20, 32, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15330, 6, 0, 20, 32, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15324, 6, 0, 20, 32, 3, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15316, 0, 6, 32, 20, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15318, 0, 6, 32, 20, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15320, 0, 6, 32, 20, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15322, 0, 6, 32, 20, 3, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15317, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15319, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15321, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(0, 4, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15323, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_right_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_left_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
static void lim_launched_rc_track_left_twist_down_to_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (trackSequence) {
@@ -2480,884 +884,6 @@ static void lim_launched_rc_track_right_corkscrew_down(uint8 rideIndex, uint8 tr
lim_launched_rc_track_left_corkscrew_up(rideIndex, 2 - trackSequence, (direction - 1) & 3, height, mapElement);
}
-static void lim_launched_rc_track_left_half_banked_helix_up_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15165, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15172, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15168, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15171, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15162, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 2, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15164, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15167, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15170, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15161, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15163, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15166, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15169, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15173, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15160, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15162, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15165, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15172, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15168, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15171, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 2, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 1:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15161, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15164, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15167, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15170, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15160, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15163, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15166, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15169, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15173, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_half_banked_helix_up_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15146, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15149, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15152, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15155, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15159, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 2, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15147, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15150, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15153, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15156, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15148, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15151, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15158, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15154, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15157, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_0);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15149, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15152, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15155, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15159, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15146, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 2, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15150, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15153, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15156, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15147, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15151, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15158, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15154, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15157, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15148, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_half_banked_helix_down_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 4) {
- trackSequence -= 4;
- direction = (direction - 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_right_half_banked_helix_up_small(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_half_banked_helix_down_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 4) {
- trackSequence -= 4;
- direction = (direction + 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_left_half_banked_helix_up_small(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_half_banked_helix_up_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15247, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15258, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15252, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15257, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15242, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 1, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15246, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15251, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15256, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15241, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15245, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15250, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15255, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15240, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15244, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15249, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15254, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15239, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15243, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15248, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15253, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15259, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15238, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15242, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15247, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15258, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15252, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15257, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 1, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 1:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 8:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 9:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15241, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15246, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15251, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15256, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 10:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15240, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15245, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15250, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15255, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 11:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 12:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15239, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15244, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15249, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15254, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 13:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15238, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15243, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15248, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15253, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15259, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_half_banked_helix_up_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15216, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15221, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15226, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15231, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15237, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 1, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15217, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15222, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15227, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15232, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15218, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15223, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15228, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15233, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15219, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15224, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15229, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15234, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15220, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15225, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15236, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15230, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15235, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_0);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15221, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15226, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15231, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15237, 0, 0, 1, 32, 26, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15216, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 1, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_0);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_0);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 8:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 9:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15222, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15227, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15232, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15217, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 10:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15223, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15228, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15233, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15218, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 11:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 12:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15224, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15229, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15234, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15219, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 13:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15225, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15236, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15230, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15235, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15220, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_half_banked_helix_down_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 7) {
- trackSequence -= 7;
- direction = (direction - 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_right_half_banked_helix_up_large(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_half_banked_helix_down_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 7) {
- trackSequence -= 7;
- direction = (direction + 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_left_half_banked_helix_up_large(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_quarter_turn_1_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15341, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15345, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15342, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15346, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15343, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15347, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15340, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15344, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_left(height - 8, TUNNEL_2);
- break;
- case 2:
- paint_util_push_tunnel_right(height + 56, TUNNEL_1);
- break;
- case 3:
- paint_util_push_tunnel_right(height - 8, TUNNEL_1);
- paint_util_push_tunnel_left(height + 56, TUNNEL_1);
- break;
- }
- paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
-}
-
-static void lim_launched_rc_track_right_quarter_turn_1_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15332, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15336, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15333, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15337, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15334, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15338, 0, 0, 2, 28, 59, height, 28, 2, height + 2);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15335, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15339, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 56, TUNNEL_1);
- paint_util_push_tunnel_left(height - 8, TUNNEL_1);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 56, TUNNEL_2);
- break;
- case 3:
- paint_util_push_tunnel_right(height - 8, TUNNEL_1);
- break;
- }
- paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
-}
-
-static void lim_launched_rc_track_left_quarter_turn_1_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_right_quarter_turn_1_60_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_quarter_turn_1_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_quarter_turn_1_60_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
static void lim_launched_rc_track_brakes(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (direction) {
@@ -3378,111 +904,6 @@ static void lim_launched_rc_track_brakes(uint8 rideIndex, uint8 trackSequence, u
paint_util_set_general_support_height(height + 32, 0x20);
}
-static void lim_launched_rc_track_25_deg_up_left_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15594, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15595, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15596, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15597, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_up_right_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15598, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15599, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15600, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15601, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15004, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15005, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15004, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15005, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
- break;
- }
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_down_left_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_right_banked(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_down_right_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_left_banked(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
static void lim_launched_rc_track_90_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (trackSequence) {
@@ -3607,2352 +1028,6 @@ static void lim_launched_rc_track_60_deg_down_to_90_deg_down(uint8 rideIndex, ui
}
}
-static void lim_launched_rc_track_left_eighth_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15526, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15530, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15534, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15538, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15527, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15531, 0, 0, 34, 16, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15535, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15539, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15528, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15532, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15536, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15540, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15529, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15533, 0, 0, 16, 18, 3, height, 0, 16, height);
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15537, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15541, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_eighth_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15510, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15514, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15518, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15522, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15511, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15515, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15519, 0, 0, 34, 16, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15523, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15512, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15516, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15520, 0, 0, 28, 28, 3, height, 4, 4, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15524, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15513, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15517, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15521, 0, 0, 16, 18, 3, height, 0, 16, height);
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15525, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_eighth_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- lim_launched_rc_track_right_eighth_to_diag(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_eighth_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- lim_launched_rc_track_left_eighth_to_diag(rideIndex, trackSequence, (direction + 3) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_eighth_bank_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15558, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15562, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15566, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15570, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15559, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15563, 0, 0, 34, 16, 0, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15567, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15571, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15560, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15564, 0, 0, 16, 16, 0, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15568, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15572, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15561, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15565, 0, 0, 16, 18, 0, height, 0, 16, height + 27);
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15569, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15573, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_eighth_bank_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15542, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15546, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15550, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15554, 0, 0, 32, 1, 26, height, 0, 27, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15543, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15547, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15551, 0, 0, 34, 16, 0, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15555, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15544, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15548, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15552, 0, 0, 28, 28, 0, height, 4, 4, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15556, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15545, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15549, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15553, 0, 0, 16, 18, 0, height, 0, 16, height + 27);
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15557, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_eighth_bank_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- lim_launched_rc_track_right_eighth_bank_to_diag(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_eighth_bank_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- lim_launched_rc_track_left_eighth_bank_to_diag(rideIndex, trackSequence, (direction + 3) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_diag_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15451, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15423, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15448, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15420, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15450, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15422, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15449, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15421, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15463, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15435, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15460, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15432, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15462, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15434, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15461, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15433, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15475, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15447, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15472, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15444, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15474, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15446, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15473, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15445, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 36, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15455, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15427, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15452, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15424, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15454, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15426, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15453, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15425, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15467, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15439, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15464, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15436, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15466, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15438, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15465, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15437, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15471, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15443, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15468, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15440, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15470, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15442, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15469, -16, -16, 16, 16, 3, height, 0, 0, height);
- metal_b_supports_paint_setup(0, 0, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15441, -16, -16, 16, 16, 3, height, 0, 0, height);
- metal_b_supports_paint_setup(0, 0, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 21, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15459, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15431, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15456, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15428, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15458, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15430, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15457, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15429, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15461, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15433, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15462, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15434, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15460, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15432, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15463, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15435, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15473, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15445, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15474, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15446, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15472, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15444, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15475, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15447, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 28, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15457, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15429, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15458, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15430, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15456, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15428, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15459, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15431, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_down_to_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15469, -16, -16, 16, 16, 3, height, 0, 0, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15441, -16, -16, 16, 16, 3, height, 0, 0, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15470, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15442, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15468, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15440, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15471, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15443, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 17, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_60_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15465, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15437, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15466, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15438, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15464, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15436, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15467, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15439, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15453, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15425, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15454, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15426, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15452, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15424, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15455, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15427, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_flat_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15503, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15500, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15504, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15502, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15501, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_flat_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15508, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15505, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15507, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15509, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15506, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_left_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15506, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15507, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15509, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15505, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15508, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_right_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15501, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15502, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15500, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15504, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15503, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_left_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15493, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15490, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15494, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15492, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15491, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_right_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15498, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15495, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15497, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15499, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15496, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_up_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15483, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15480, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15484, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15482, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15481, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_up_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15488, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15485, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15487, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15489, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15486, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_left_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15486, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15487, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15489, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15485, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15488, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_right_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15481, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15482, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15480, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15484, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15483, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 4, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_down_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15496, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15497, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15499, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15495, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15498, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_25_deg_down_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15491, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15492, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15490, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15494, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15493, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15479, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15476, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15478, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15477, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_diag_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15477, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15478, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15476, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(0, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15479, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(0, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(0, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(0, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
static void lim_launched_rc_track_90_deg_to_inverted_flat_quarter_loop_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (trackSequence) {
@@ -6041,789 +1116,6 @@ static void lim_launched_rc_track_block_brakes(uint8 rideIndex, uint8 trackSeque
paint_util_set_general_support_height(height + 32, 0x20);
}
-static void lim_launched_rc_track_left_banked_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15689, 0, 6, 32, 20, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15691, 0, 6, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15693, 0, 6, 32, 20, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15687, 0, 6, 32, 20, 3, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15688, 6, 0, 20, 32, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15690, 6, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15692, 6, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15686, 6, 0, 20, 32, 3, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_banked_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15678, 0, 6, 32, 20, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15680, 0, 6, 32, 20, 3, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15682, 0, 6, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15684, 0, 6, 32, 20, 3, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15679, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15681, 6, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15683, 6, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(0, 4, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15685, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_banked_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_right_banked_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_banked_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- lim_launched_rc_track_left_banked_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_banked_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15658, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15663, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15668, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15673, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15659, 0, 0, 32, 16, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15664, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15669, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15674, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15660, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15665, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15670, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15675, 0, 0, 16, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15661, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15666, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15671, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15676, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15662, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15667, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15672, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15677, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_right_banked_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15638, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15643, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15648, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15653, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15639, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15644, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15649, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15654, 0, 0, 32, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15640, 0, 0, 16, 16, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15645, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15650, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15655, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15641, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15646, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15651, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15656, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15642, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15647, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15652, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15657, 0, 0, 20, 32, 3, height, 6, 0, height);
- break;
- }
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_2);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_2);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void lim_launched_rc_track_left_banked_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_right_banked_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_banked_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- lim_launched_rc_track_left_banked_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_up_to_left_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15602, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15603, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15610, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15604, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15605, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_up_to_right_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15606, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15607, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15608, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15611, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15609, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_left_banked_25_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15612, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15613, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15620, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15614, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15615, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_right_banked_25_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15616, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15617, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15618, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15621, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15619, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void lim_launched_rc_track_25_deg_down_to_left_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_right_banked_25_deg_up_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_25_deg_down_to_right_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_banked_25_deg_up_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_banked_25_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_to_right_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_banked_25_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_25_deg_up_to_left_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_banked_flat_to_left_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15622, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15623, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15624, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15625, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_right_banked_flat_to_right_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15626, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15627, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15628, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15629, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_left_banked_25_deg_up_to_left_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15630, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15631, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15632, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15633, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_right_banked_25_deg_up_to_right_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15634, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15635, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15636, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15637, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_left_banked_flat_to_left_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_right_banked_25_deg_up_to_right_banked_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_banked_flat_to_right_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_banked_25_deg_up_to_left_banked_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_banked_25_deg_down_to_left_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_right_banked_flat_to_right_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_banked_25_deg_down_to_right_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_banked_flat_to_left_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_flat_to_left_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15574, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15575, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15582, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15576, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15577, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_flat_to_right_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15578, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15579, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15580, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15583, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15581, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void lim_launched_rc_track_left_banked_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15584, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15585, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15592, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15586, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15587, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_right_banked_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15588, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15589, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15590, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15593, 0, 0, 32, 1, 34, height, 0, 27, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15591, 0, 0, 32, 20, 3, height, 0, 6, height);
- break;
- }
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(0, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void lim_launched_rc_track_flat_to_left_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_right_banked_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_flat_to_right_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_left_banked_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_left_banked_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_flat_to_right_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void lim_launched_rc_track_right_banked_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- lim_launched_rc_track_flat_to_left_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
static void lim_launched_rc_track_left_quarter_turn_1_90_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (trackSequence) {
@@ -6895,100 +1187,147 @@ static void lim_launched_rc_track_right_quarter_turn_1_90_deg_down(uint8 rideInd
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int trackType, int direction)
{
switch (trackType) {
+
+ // Use Looping Roller Coaster
case TRACK_ELEM_FLAT:
- return lim_launched_rc_track_flat;
case TRACK_ELEM_25_DEG_UP:
- return lim_launched_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
- return lim_launched_rc_track_60_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
- return lim_launched_rc_track_flat_to_25_deg_up;
case TRACK_ELEM_25_DEG_UP_TO_60_DEG_UP:
- return lim_launched_rc_track_25_deg_up_to_60_deg_up;
case TRACK_ELEM_60_DEG_UP_TO_25_DEG_UP:
- return lim_launched_rc_track_60_deg_up_to_25_deg_up;
case TRACK_ELEM_25_DEG_UP_TO_FLAT:
- return lim_launched_rc_track_25_deg_up_to_flat;
case TRACK_ELEM_25_DEG_DOWN:
- return lim_launched_rc_track_25_deg_down;
case TRACK_ELEM_60_DEG_DOWN:
- return lim_launched_rc_track_60_deg_down;
case TRACK_ELEM_FLAT_TO_25_DEG_DOWN:
- return lim_launched_rc_track_flat_to_25_deg_down;
case TRACK_ELEM_25_DEG_DOWN_TO_60_DEG_DOWN:
- return lim_launched_rc_track_25_deg_down_to_60_deg_down;
case TRACK_ELEM_60_DEG_DOWN_TO_25_DEG_DOWN:
- return lim_launched_rc_track_60_deg_down_to_25_deg_down;
case TRACK_ELEM_25_DEG_DOWN_TO_FLAT:
- return lim_launched_rc_track_25_deg_down_to_flat;
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES:
- return lim_launched_rc_track_left_quarter_turn_5;
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES:
- return lim_launched_rc_track_right_quarter_turn_5;
case TRACK_ELEM_FLAT_TO_LEFT_BANK:
- return lim_launched_rc_track_flat_to_left_bank;
case TRACK_ELEM_FLAT_TO_RIGHT_BANK:
- return lim_launched_rc_track_flat_to_right_bank;
case TRACK_ELEM_LEFT_BANK_TO_FLAT:
- return lim_launched_rc_track_left_bank_to_flat;
case TRACK_ELEM_RIGHT_BANK_TO_FLAT:
- return lim_launched_rc_track_right_bank_to_flat;
case TRACK_ELEM_BANKED_LEFT_QUARTER_TURN_5_TILES:
- return lim_launched_rc_track_banked_left_quarter_turn_5;
case TRACK_ELEM_BANKED_RIGHT_QUARTER_TURN_5_TILES:
- return lim_launched_rc_track_banked_right_quarter_turn_5;
case TRACK_ELEM_LEFT_BANK_TO_25_DEG_UP:
- return lim_launched_rc_track_left_bank_to_25_deg_up;
case TRACK_ELEM_RIGHT_BANK_TO_25_DEG_UP:
- return lim_launched_rc_track_right_bank_to_25_deg_up;
case TRACK_ELEM_25_DEG_UP_TO_LEFT_BANK:
- return lim_launched_rc_track_25_deg_up_to_left_bank;
case TRACK_ELEM_25_DEG_UP_TO_RIGHT_BANK:
- return lim_launched_rc_track_25_deg_up_to_right_bank;
case TRACK_ELEM_LEFT_BANK_TO_25_DEG_DOWN:
- return lim_launched_rc_track_left_bank_to_25_deg_down;
case TRACK_ELEM_RIGHT_BANK_TO_25_DEG_DOWN:
- return lim_launched_rc_track_right_bank_to_25_deg_down;
case TRACK_ELEM_25_DEG_DOWN_TO_LEFT_BANK:
- return lim_launched_rc_track_25_deg_down_to_left_bank;
case TRACK_ELEM_25_DEG_DOWN_TO_RIGHT_BANK:
- return lim_launched_rc_track_25_deg_down_to_right_bank;
case TRACK_ELEM_LEFT_BANK:
- return lim_launched_rc_track_left_bank;
case TRACK_ELEM_RIGHT_BANK:
- return lim_launched_rc_track_right_bank;
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES_25_DEG_UP:
- return lim_launched_rc_track_left_quarter_turn_5_25_deg_up;
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES_25_DEG_UP:
- return lim_launched_rc_track_right_quarter_turn_5_25_deg_up;
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES_25_DEG_DOWN:
- return lim_launched_rc_track_left_quarter_turn_5_25_deg_down;
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES_25_DEG_DOWN:
- return lim_launched_rc_track_right_quarter_turn_5_25_deg_down;
case TRACK_ELEM_S_BEND_LEFT:
- return lim_launched_rc_track_s_bend_left;
case TRACK_ELEM_S_BEND_RIGHT:
- return lim_launched_rc_track_s_bend_right;
+ case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES:
+ case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES:
+ case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_BANK:
+ case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_BANK:
+ case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_25_DEG_UP:
+ case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_UP_SMALL:
+ case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_UP_SMALL:
+ case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_DOWN_SMALL:
+ case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_DOWN_SMALL:
+ case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_UP_LARGE:
+ case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_UP_LARGE:
+ case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_DOWN_LARGE:
+ case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_DOWN_LARGE:
+ case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_60_DEG_UP:
+ case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_60_DEG_UP:
+ case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_60_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_60_DEG_DOWN:
+ case TRACK_ELEM_25_DEG_UP_LEFT_BANKED:
+ case TRACK_ELEM_25_DEG_UP_RIGHT_BANKED:
+ case TRACK_ELEM_ON_RIDE_PHOTO:
+ case TRACK_ELEM_25_DEG_DOWN_LEFT_BANKED:
+ case TRACK_ELEM_25_DEG_DOWN_RIGHT_BANKED:
+ case TRACK_ELEM_LEFT_EIGHTH_TO_DIAG:
+ case TRACK_ELEM_RIGHT_EIGHTH_TO_DIAG:
+ case TRACK_ELEM_LEFT_EIGHTH_TO_ORTHOGONAL:
+ case TRACK_ELEM_RIGHT_EIGHTH_TO_ORTHOGONAL:
+ case TRACK_ELEM_LEFT_EIGHTH_BANK_TO_DIAG:
+ case TRACK_ELEM_RIGHT_EIGHTH_BANK_TO_DIAG:
+ case TRACK_ELEM_LEFT_EIGHTH_BANK_TO_ORTHOGONAL:
+ case TRACK_ELEM_RIGHT_EIGHTH_BANK_TO_ORTHOGONAL:
+ case TRACK_ELEM_DIAG_FLAT:
+ case TRACK_ELEM_DIAG_25_DEG_UP:
+ case TRACK_ELEM_DIAG_60_DEG_UP:
+ case TRACK_ELEM_DIAG_FLAT_TO_25_DEG_UP:
+ case TRACK_ELEM_DIAG_25_DEG_UP_TO_60_DEG_UP:
+ case TRACK_ELEM_DIAG_60_DEG_UP_TO_25_DEG_UP:
+ case TRACK_ELEM_DIAG_25_DEG_UP_TO_FLAT:
+ case TRACK_ELEM_DIAG_25_DEG_DOWN:
+ case TRACK_ELEM_DIAG_60_DEG_DOWN:
+ case TRACK_ELEM_DIAG_FLAT_TO_25_DEG_DOWN:
+ case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_60_DEG_DOWN:
+ case TRACK_ELEM_DIAG_60_DEG_DOWN_TO_25_DEG_DOWN:
+ case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_FLAT:
+ case TRACK_ELEM_DIAG_FLAT_TO_LEFT_BANK:
+ case TRACK_ELEM_DIAG_FLAT_TO_RIGHT_BANK:
+ case TRACK_ELEM_DIAG_LEFT_BANK_TO_FLAT:
+ case TRACK_ELEM_DIAG_RIGHT_BANK_TO_FLAT:
+ case TRACK_ELEM_DIAG_LEFT_BANK_TO_25_DEG_UP:
+ case TRACK_ELEM_DIAG_RIGHT_BANK_TO_25_DEG_UP:
+ case TRACK_ELEM_DIAG_25_DEG_UP_TO_LEFT_BANK:
+ case TRACK_ELEM_DIAG_25_DEG_UP_TO_RIGHT_BANK:
+ case TRACK_ELEM_DIAG_LEFT_BANK_TO_25_DEG_DOWN:
+ case TRACK_ELEM_DIAG_RIGHT_BANK_TO_25_DEG_DOWN:
+ case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_LEFT_BANK:
+ case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_RIGHT_BANK:
+ case TRACK_ELEM_DIAG_LEFT_BANK:
+ case TRACK_ELEM_DIAG_RIGHT_BANK:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_25_DEG_UP_TO_LEFT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_25_DEG_UP_TO_RIGHT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_25_DEG_UP:
+ case TRACK_ELEM_25_DEG_DOWN_TO_LEFT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_25_DEG_DOWN_TO_RIGHT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_LEFT_BANKED_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_RIGHT_BANKED_FLAT:
+ case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_LEFT_BANKED_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_RIGHT_BANKED_FLAT:
+ case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_FLAT:
+ case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
+ return get_track_paint_function_looping_rc(trackType, direction);
+
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return lim_launched_rc_track_station;
case TRACK_ELEM_LEFT_VERTICAL_LOOP:
return lim_launched_rc_track_left_vertical_loop;
case TRACK_ELEM_RIGHT_VERTICAL_LOOP:
return lim_launched_rc_track_right_vertical_loop;
- case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES:
- return lim_launched_rc_track_left_quarter_turn_3;
- case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES:
- return lim_launched_rc_track_right_quarter_turn_3;
- case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_BANK:
- return lim_launched_rc_track_left_quarter_turn_3_bank;
- case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_BANK:
- return lim_launched_rc_track_right_quarter_turn_3_bank;
- case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_25_DEG_UP:
- return lim_launched_rc_track_left_quarter_turn_3_25_deg_up;
- case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_25_DEG_UP:
- return lim_launched_rc_track_right_quarter_turn_3_25_deg_up;
- case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_25_DEG_DOWN:
- return lim_launched_rc_track_left_quarter_turn_3_25_deg_down;
- case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_25_DEG_DOWN:
- return lim_launched_rc_track_right_quarter_turn_3_25_deg_down;
case TRACK_ELEM_LEFT_TWIST_DOWN_TO_UP:
return lim_launched_rc_track_left_twist_down_to_up;
case TRACK_ELEM_RIGHT_TWIST_DOWN_TO_UP:
@@ -7005,42 +1344,8 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int trackType, int
return lim_launched_rc_track_left_corkscrew_down;
case TRACK_ELEM_RIGHT_CORKSCREW_DOWN:
return lim_launched_rc_track_right_corkscrew_down;
- case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_UP_SMALL:
- return lim_launched_rc_track_left_half_banked_helix_up_small;
- case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_UP_SMALL:
- return lim_launched_rc_track_right_half_banked_helix_up_small;
- case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_DOWN_SMALL:
- return lim_launched_rc_track_left_half_banked_helix_down_small;
- case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_DOWN_SMALL:
- return lim_launched_rc_track_right_half_banked_helix_down_small;
- case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_UP_LARGE:
- return lim_launched_rc_track_left_half_banked_helix_up_large;
- case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_UP_LARGE:
- return lim_launched_rc_track_right_half_banked_helix_up_large;
- case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_DOWN_LARGE:
- return lim_launched_rc_track_left_half_banked_helix_down_large;
- case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_DOWN_LARGE:
- return lim_launched_rc_track_right_half_banked_helix_down_large;
- case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_60_DEG_UP:
- return lim_launched_rc_track_left_quarter_turn_1_60_deg_up;
- case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_60_DEG_UP:
- return lim_launched_rc_track_right_quarter_turn_1_60_deg_up;
- case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_60_DEG_DOWN:
- return lim_launched_rc_track_left_quarter_turn_1_60_deg_down;
- case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_60_DEG_DOWN:
- return lim_launched_rc_track_right_quarter_turn_1_60_deg_down;
case TRACK_ELEM_BRAKES:
return lim_launched_rc_track_brakes;
- case TRACK_ELEM_25_DEG_UP_LEFT_BANKED:
- return lim_launched_rc_track_25_deg_up_left_banked;
- case TRACK_ELEM_25_DEG_UP_RIGHT_BANKED:
- return lim_launched_rc_track_25_deg_up_right_banked;
- case TRACK_ELEM_ON_RIDE_PHOTO:
- return lim_launched_rc_track_on_ride_photo;
- case TRACK_ELEM_25_DEG_DOWN_LEFT_BANKED:
- return lim_launched_rc_track_25_deg_down_left_banked;
- case TRACK_ELEM_25_DEG_DOWN_RIGHT_BANKED:
- return lim_launched_rc_track_25_deg_down_right_banked;
case TRACK_ELEM_90_DEG_UP:
return lim_launched_rc_track_90_deg_up;
case TRACK_ELEM_90_DEG_DOWN:
@@ -7053,146 +1358,12 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int trackType, int
return lim_launched_rc_track_90_deg_up_to_60_deg_up;
case TRACK_ELEM_60_DEG_DOWN_TO_90_DEG_DOWN:
return lim_launched_rc_track_60_deg_down_to_90_deg_down;
- case TRACK_ELEM_LEFT_EIGHTH_TO_DIAG:
- return lim_launched_rc_track_left_eighth_to_diag;
- case TRACK_ELEM_RIGHT_EIGHTH_TO_DIAG:
- return lim_launched_rc_track_right_eighth_to_diag;
- case TRACK_ELEM_LEFT_EIGHTH_TO_ORTHOGONAL:
- return lim_launched_rc_track_left_eighth_to_orthogonal;
- case TRACK_ELEM_RIGHT_EIGHTH_TO_ORTHOGONAL:
- return lim_launched_rc_track_right_eighth_to_orthogonal;
- case TRACK_ELEM_LEFT_EIGHTH_BANK_TO_DIAG:
- return lim_launched_rc_track_left_eighth_bank_to_diag;
- case TRACK_ELEM_RIGHT_EIGHTH_BANK_TO_DIAG:
- return lim_launched_rc_track_right_eighth_bank_to_diag;
- case TRACK_ELEM_LEFT_EIGHTH_BANK_TO_ORTHOGONAL:
- return lim_launched_rc_track_left_eighth_bank_to_orthogonal;
- case TRACK_ELEM_RIGHT_EIGHTH_BANK_TO_ORTHOGONAL:
- return lim_launched_rc_track_right_eighth_bank_to_orthogonal;
- case TRACK_ELEM_DIAG_FLAT:
- return lim_launched_rc_track_diag_flat;
- case TRACK_ELEM_DIAG_25_DEG_UP:
- return lim_launched_rc_track_diag_25_deg_up;
- case TRACK_ELEM_DIAG_60_DEG_UP:
- return lim_launched_rc_track_diag_60_deg_up;
- case TRACK_ELEM_DIAG_FLAT_TO_25_DEG_UP:
- return lim_launched_rc_track_diag_flat_to_25_deg_up;
- case TRACK_ELEM_DIAG_25_DEG_UP_TO_60_DEG_UP:
- return lim_launched_rc_track_diag_25_deg_up_to_60_deg_up;
- case TRACK_ELEM_DIAG_60_DEG_UP_TO_25_DEG_UP:
- return lim_launched_rc_track_diag_60_deg_up_to_25_deg_up;
- case TRACK_ELEM_DIAG_25_DEG_UP_TO_FLAT:
- return lim_launched_rc_track_diag_25_deg_up_to_flat;
- case TRACK_ELEM_DIAG_25_DEG_DOWN:
- return lim_launched_rc_track_diag_25_deg_down;
- case TRACK_ELEM_DIAG_60_DEG_DOWN:
- return lim_launched_rc_track_diag_60_deg_down;
- case TRACK_ELEM_DIAG_FLAT_TO_25_DEG_DOWN:
- return lim_launched_rc_track_diag_flat_to_25_deg_down;
- case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_60_DEG_DOWN:
- return lim_launched_rc_track_diag_25_deg_down_to_60_deg_down;
- case TRACK_ELEM_DIAG_60_DEG_DOWN_TO_25_DEG_DOWN:
- return lim_launched_rc_track_diag_60_deg_down_to_25_deg_down;
- case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_FLAT:
- return lim_launched_rc_track_diag_25_deg_down_to_flat;
- case TRACK_ELEM_DIAG_FLAT_TO_LEFT_BANK:
- return lim_launched_rc_track_diag_flat_to_left_bank;
- case TRACK_ELEM_DIAG_FLAT_TO_RIGHT_BANK:
- return lim_launched_rc_track_diag_flat_to_right_bank;
- case TRACK_ELEM_DIAG_LEFT_BANK_TO_FLAT:
- return lim_launched_rc_track_diag_left_bank_to_flat;
- case TRACK_ELEM_DIAG_RIGHT_BANK_TO_FLAT:
- return lim_launched_rc_track_diag_right_bank_to_flat;
- case TRACK_ELEM_DIAG_LEFT_BANK_TO_25_DEG_UP:
- return lim_launched_rc_track_diag_left_bank_to_25_deg_up;
- case TRACK_ELEM_DIAG_RIGHT_BANK_TO_25_DEG_UP:
- return lim_launched_rc_track_diag_right_bank_to_25_deg_up;
- case TRACK_ELEM_DIAG_25_DEG_UP_TO_LEFT_BANK:
- return lim_launched_rc_track_diag_25_deg_up_to_left_bank;
- case TRACK_ELEM_DIAG_25_DEG_UP_TO_RIGHT_BANK:
- return lim_launched_rc_track_diag_25_deg_up_to_right_bank;
- case TRACK_ELEM_DIAG_LEFT_BANK_TO_25_DEG_DOWN:
- return lim_launched_rc_track_diag_left_bank_to_25_deg_down;
- case TRACK_ELEM_DIAG_RIGHT_BANK_TO_25_DEG_DOWN:
- return lim_launched_rc_track_diag_right_bank_to_25_deg_down;
- case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_LEFT_BANK:
- return lim_launched_rc_track_diag_25_deg_down_to_left_bank;
- case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_RIGHT_BANK:
- return lim_launched_rc_track_diag_25_deg_down_to_right_bank;
- case TRACK_ELEM_DIAG_LEFT_BANK:
- return lim_launched_rc_track_diag_left_bank;
- case TRACK_ELEM_DIAG_RIGHT_BANK:
- return lim_launched_rc_track_diag_right_bank;
case TRACK_ELEM_90_DEG_TO_INVERTED_FLAT_QUARTER_LOOP_UP:
return lim_launched_rc_track_90_deg_to_inverted_flat_quarter_loop_up;
case TRACK_ELEM_INVERTED_FLAT_TO_90_DEG_QUARTER_LOOP_DOWN:
return lim_launched_rc_track_inverted_flat_to_90_deg_quarter_loop_down;
case TRACK_ELEM_BLOCK_BRAKES:
return lim_launched_rc_track_block_brakes;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
- return lim_launched_rc_track_left_banked_quarter_turn_3_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
- return lim_launched_rc_track_right_banked_quarter_turn_3_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
- return lim_launched_rc_track_left_banked_quarter_turn_3_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
- return lim_launched_rc_track_right_banked_quarter_turn_3_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
- return lim_launched_rc_track_left_banked_quarter_turn_5_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
- return lim_launched_rc_track_right_banked_quarter_turn_5_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
- return lim_launched_rc_track_left_banked_quarter_turn_5_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
- return lim_launched_rc_track_right_banked_quarter_turn_5_25_deg_down;
- case TRACK_ELEM_25_DEG_UP_TO_LEFT_BANKED_25_DEG_UP:
- return lim_launched_rc_track_25_deg_up_to_left_banked_25_deg_up;
- case TRACK_ELEM_25_DEG_UP_TO_RIGHT_BANKED_25_DEG_UP:
- return lim_launched_rc_track_25_deg_up_to_right_banked_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_25_DEG_UP:
- return lim_launched_rc_track_left_banked_25_deg_up_to_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_25_DEG_UP:
- return lim_launched_rc_track_right_banked_25_deg_up_to_25_deg_up;
- case TRACK_ELEM_25_DEG_DOWN_TO_LEFT_BANKED_25_DEG_DOWN:
- return lim_launched_rc_track_25_deg_down_to_left_banked_25_deg_down;
- case TRACK_ELEM_25_DEG_DOWN_TO_RIGHT_BANKED_25_DEG_DOWN:
- return lim_launched_rc_track_25_deg_down_to_right_banked_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
- return lim_launched_rc_track_left_banked_25_deg_down_to_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
- return lim_launched_rc_track_right_banked_25_deg_down_to_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_UP:
- return lim_launched_rc_track_left_banked_flat_to_left_banked_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
- return lim_launched_rc_track_right_banked_flat_to_right_banked_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_LEFT_BANKED_FLAT:
- return lim_launched_rc_track_left_banked_25_deg_up_to_left_banked_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_RIGHT_BANKED_FLAT:
- return lim_launched_rc_track_right_banked_25_deg_up_to_right_banked_flat;
- case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
- return lim_launched_rc_track_left_banked_flat_to_left_banked_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
- return lim_launched_rc_track_right_banked_flat_to_right_banked_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_LEFT_BANKED_FLAT:
- return lim_launched_rc_track_left_banked_25_deg_down_to_left_banked_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_RIGHT_BANKED_FLAT:
- return lim_launched_rc_track_right_banked_25_deg_down_to_right_banked_flat;
- case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_UP:
- return lim_launched_rc_track_flat_to_left_banked_25_deg_up;
- case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
- return lim_launched_rc_track_flat_to_right_banked_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_FLAT:
- return lim_launched_rc_track_left_banked_25_deg_up_to_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_FLAT:
- return lim_launched_rc_track_right_banked_25_deg_up_to_flat;
- case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
- return lim_launched_rc_track_flat_to_left_banked_25_deg_down;
- case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
- return lim_launched_rc_track_flat_to_right_banked_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_FLAT:
- return lim_launched_rc_track_left_banked_25_deg_down_to_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
- return lim_launched_rc_track_right_banked_25_deg_down_to_flat;
case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_90_DEG_UP:
return lim_launched_rc_track_left_quarter_turn_1_90_deg_up;
case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_90_DEG_UP:
diff --git a/src/ride/coaster/looping_roller_coaster.c b/src/ride/coaster/looping_roller_coaster.c
index d92a700185..a627526606 100644
--- a/src/ride/coaster/looping_roller_coaster.c
+++ b/src/ride/coaster/looping_roller_coaster.c
@@ -66,6 +66,24 @@ static void looping_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 di
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void looping_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][2] = {
+ { 15016, SPR_STATION_BASE_B_SW_NE },
+ { 15017, SPR_STATION_BASE_B_NW_SE },
+ { 15016, SPR_STATION_BASE_B_SW_NE },
+ { 15017, SPR_STATION_BASE_B_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ sub_98196C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
+ 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 looping_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -2974,32 +2992,27 @@ static void looping_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence,
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15004, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15005, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15004, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15005, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(height + 48, 0x20);
@@ -6171,6 +6184,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int trackType, int dire
switch (trackType) {
case TRACK_ELEM_FLAT:
return looping_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return looping_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return looping_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/mine_ride.c b/src/ride/coaster/mine_ride.c
index 258643a9aa..e2a0b4f8ac 100644
--- a/src/ride/coaster/mine_ride.c
+++ b/src/ride/coaster/mine_ride.c
@@ -49,6 +49,24 @@ static void mine_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 dir
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void mine_ride_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 19338, SPR_STATION_BASE_A_SW_NE },
+ { 19339, SPR_STATION_BASE_A_NW_SE },
+ { 19338, SPR_STATION_BASE_A_SW_NE },
+ { 19339, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ sub_98196C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ 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 mine_ride_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (direction) {
@@ -2017,32 +2035,27 @@ static void mine_ride_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence,
metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19338, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19339, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19338, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19339, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -3553,6 +3566,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int trackType, int direc
switch (trackType) {
case TRACK_ELEM_FLAT:
return mine_ride_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return mine_ride_track_station;
case TRACK_ELEM_25_DEG_UP:
return mine_ride_track_25_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
diff --git a/src/ride/coaster/mine_train_coaster.c b/src/ride/coaster/mine_train_coaster.c
index 9166e5d520..1c52737091 100644
--- a/src/ride/coaster/mine_train_coaster.c
+++ b/src/ride/coaster/mine_train_coaster.c
@@ -66,6 +66,28 @@ static void mine_train_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void mine_train_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 20064, 20060, SPR_STATION_BASE_B_SW_NE },
+ { 20065, 20061, SPR_STATION_BASE_B_NW_SE },
+ { 20064, 20060, SPR_STATION_BASE_B_SW_NE },
+ { 20065, 20061, SPR_STATION_BASE_B_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height - 2, 0, 2, height);
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98199C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 0, height);
+ } else {
+ sub_98199C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 0, height);
+ }
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 3);
+ track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
+ 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 mine_train_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -2784,30 +2806,27 @@ static void mine_train_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequen
wooden_a_supports_paint_setup(6, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 2);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 31, 1, 1, 19, height + 2);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25617, 6, 0, 1, 1, 19, height + 2);
break;
case 1:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 20053, 0, 0, 32, 20, 1, height, 0, 6, height);
wooden_a_supports_paint_setup(7, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 2);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 31, 1, 1, 19, height + 2);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25618, 26, 0, 1, 1, 19, height + 2);
break;
case 2:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 20052, 0, 0, 32, 20, 1, height, 0, 6, height);
wooden_a_supports_paint_setup(6, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 2);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 31, 1, 1, 19, height + 2);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25615, 26, 31, 1, 1, 19, height + 2);
break;
case 3:
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 20053, 0, 0, 32, 20, 1, height, 0, 6, height);
wooden_a_supports_paint_setup(7, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 2);
sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 31, 1, 1, 19, height + 2);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25616, 6, 31, 1, 1, 19, height + 2);
break;
}
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -5355,6 +5374,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int trackType, int d
switch (trackType) {
case TRACK_ELEM_FLAT:
return mine_train_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return mine_train_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return mine_train_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/mini_roller_coaster.c b/src/ride/coaster/mini_roller_coaster.c
index a31fc84808..830ff2e72e 100644
--- a/src/ride/coaster/mini_roller_coaster.c
+++ b/src/ride/coaster/mini_roller_coaster.c
@@ -78,6 +78,28 @@ static void mini_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direc
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void mini_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 18746, 18742, SPR_STATION_BASE_A_SW_NE },
+ { 18747, 18743, SPR_STATION_BASE_A_NW_SE },
+ { 18746, 18742, SPR_STATION_BASE_A_SW_NE },
+ { 18747, 18743, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ 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 mini_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -2842,32 +2864,27 @@ static void mini_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, ui
metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18738, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18739, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18738, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18739, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -5929,6 +5946,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int trackType, int directi
switch (trackType) {
case TRACK_ELEM_FLAT:
return mini_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return mini_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return mini_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/mini_suspended_coaster.c b/src/ride/coaster/mini_suspended_coaster.c
index e7c3b8b020..7d651f8b14 100644
--- a/src/ride/coaster/mini_suspended_coaster.c
+++ b/src/ride/coaster/mini_suspended_coaster.c
@@ -68,6 +68,25 @@ static void mini_suspended_rc_track_flat(uint8 rideIndex, uint8 trackSequence, u
paint_util_set_general_support_height(height + 48, 0x20);
}
+static void mini_suspended_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 28433, SPR_STATION_INVERTED_BAR_E_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 28434, SPR_STATION_INVERTED_BAR_E_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 28433, SPR_STATION_INVERTED_BAR_E_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 28434, SPR_STATION_INVERTED_BAR_E_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98196C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 6, 32, 20, 1, height + 24);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 1, height + 24, 0, 2, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 3);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ 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 mini_suspended_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -1559,6 +1578,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int trackType, i
switch (trackType) {
case TRACK_ELEM_FLAT:
return mini_suspended_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return mini_suspended_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return mini_suspended_rc_track_25_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
diff --git a/src/ride/coaster/multi_dimension_roller_coaster.c b/src/ride/coaster/multi_dimension_roller_coaster.c
index f226ad9604..5263a39f72 100644
--- a/src/ride/coaster/multi_dimension_roller_coaster.c
+++ b/src/ride/coaster/multi_dimension_roller_coaster.c
@@ -81,6 +81,41 @@ static void multi_dimension_rc_track_flat(uint8 rideIndex, uint8 trackSequence,
}
}
+static void multi_dimension_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 15810, 15812, SPR_STATION_INVERTED_BAR_A_SW_NE },
+ { 15811, 15813, SPR_STATION_INVERTED_BAR_A_NW_SE },
+ { 15810, 15812, SPR_STATION_INVERTED_BAR_A_SW_NE },
+ { 15811, 15813, SPR_STATION_INVERTED_BAR_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 26, 1, height, 0, 3, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 26, 1, height, 0, 3, height + 3);
+ }
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 11);
+
+ rct_ride * ride = get_ride(rideIndex);
+ const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
+ if (direction == 0 || direction == 2) {
+ track_paint_util_draw_station_covers(EDGE_NW, false, entranceStyle, direction, height);
+ } else {
+ track_paint_util_draw_station_covers(EDGE_NE, false, entranceStyle, direction, height);
+ }
+
+ if (direction == 0 || direction == 2) {
+ track_paint_util_draw_station_covers(EDGE_SE, false, entranceStyle, direction, height);
+ } else {
+ track_paint_util_draw_station_covers(EDGE_SW, false, entranceStyle, direction, height);
+ }
+
+ 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 multi_dimension_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (!track_element_is_inverted(mapElement)) {
@@ -3833,32 +3868,27 @@ static void multi_dimension_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackS
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15806, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15807, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15806, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 15807, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -3869,32 +3899,27 @@ static void multi_dimension_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackS
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26227, 0, 0, 32, 20, 3, height + 24, 0, 6, height + 24);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26228, 0, 0, 32, 20, 3, height + 24, 0, 6, height + 24);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26227, 0, 0, 32, 20, 3, height + 24, 0, 6, height + 24);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(11, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(11, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 26228, 0, 0, 32, 20, 3, height + 24, 0, 6, height + 24);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 64, 0x20);
@@ -9260,6 +9285,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int trackType,
switch (trackType) {
case TRACK_ELEM_FLAT:
return multi_dimension_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return multi_dimension_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return multi_dimension_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/reverser_roller_coaster.c b/src/ride/coaster/reverser_roller_coaster.c
index 251697f025..8efc597d44 100644
--- a/src/ride/coaster/reverser_roller_coaster.c
+++ b/src/ride/coaster/reverser_roller_coaster.c
@@ -79,6 +79,24 @@ static void reverser_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 d
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void reverser_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 21506, SPR_STATION_BASE_A_SW_NE },
+ { 21507, SPR_STATION_BASE_A_NW_SE },
+ { 21506, SPR_STATION_BASE_A_SW_NE },
+ { 21507, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_MISC], 0, 0, 32, 27, 2, height, 0, 2, height);
+ sub_98199C_rotated(direction, imageIds[direction][0] | 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 reverser_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -1005,6 +1023,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int trackType, int dir
switch (trackType) {
case TRACK_ELEM_FLAT:
return reverser_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return reverser_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return reverser_rc_track_25_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
diff --git a/src/ride/coaster/side_friction_roller_coaster.c b/src/ride/coaster/side_friction_roller_coaster.c
index 99267cffe4..1e0df2228a 100644
--- a/src/ride/coaster/side_friction_roller_coaster.c
+++ b/src/ride/coaster/side_friction_roller_coaster.c
@@ -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:
diff --git a/src/ride/coaster/spiral_roller_coaster.c b/src/ride/coaster/spiral_roller_coaster.c
index 7d08f66e18..7c0d0bafea 100644
--- a/src/ride/coaster/spiral_roller_coaster.c
+++ b/src/ride/coaster/spiral_roller_coaster.c
@@ -26,4969 +26,6 @@
#include "../track_data.h"
#include "../track_paint.h"
-static void spiral_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19044, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19045, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19046, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19047, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- } else {
- switch (direction) {
- case 0:
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18738, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18739, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19056, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19057, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19058, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19059, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18796, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18797, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18798, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18799, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18812, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 38, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18813, 0, 0, 32, 1, 98, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 38, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18814, 0, 0, 32, 1, 98, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 38, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18815, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 38, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 56, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
-}
-
-static void spiral_rc_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19048, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19049, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19050, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19051, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18788, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18789, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18790, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18791, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18800, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 18, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18801, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18804, 0, 0, 32, 1, 66, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 18, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18802, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18805, 0, 0, 32, 1, 66, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 18, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18803, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 18, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 24, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
-}
-
-static void spiral_rc_track_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18806, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 26, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18807, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18810, 0, 0, 32, 1, 66, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 26, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18808, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18811, 0, 0, 32, 1, 66, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 26, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18809, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 26, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 24, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19052, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19053, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19054, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19055, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18792, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18793, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18794, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18795, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_60_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_down_to_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_60_deg_up_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_60_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_to_60_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_flat_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18851, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18856, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18861, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18846, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18850, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18855, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18860, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18845, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18849, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18854, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18859, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18844, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18848, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18853, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18858, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18843, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18847, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18852, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18857, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18842, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_left_quarter_turn_5(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_flat_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18748, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18756, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18749, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18757, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18750, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18751, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_flat_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18752, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18753, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18754, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18758, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18755, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18759, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_left_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18754, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18758, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18755, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18759, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18752, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18753, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_right_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18750, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18751, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18748, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18756, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18749, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18757, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_banked_left_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18871, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18882, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18876, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18881, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18866, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18870, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18875, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18880, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18865, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18869, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18874, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18879, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18864, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18868, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18873, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18878, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18863, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18867, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18872, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18877, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18883, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18862, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_banked_right_quarter_turn_5(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_banked_left_quarter_turn_5(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18760, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18764, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18761, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18765, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18762, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18763, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_right_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18766, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18767, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18768, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18770, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18769, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18771, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18772, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18776, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18773, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18777, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18774, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18775, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18778, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18779, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18780, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18782, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18781, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18783, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_left_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_to_right_bank(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_to_left_bank(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_down_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_right_bank_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_down_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_bank_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18784, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18785, 0, 0, 32, 1, 26, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18786, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18787, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_bank(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18936, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18941, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18946, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18951, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18937, 0, 0, 32, 16, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18942, 0, 0, 32, 16, 3, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18947, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18952, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18938, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18943, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18948, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18953, 0, 0, 16, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18939, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18944, 0, 0, 16, 32, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18949, 0, 0, 16, 32, 3, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18954, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18940, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18945, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18950, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18955, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18916, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18921, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18926, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18931, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18917, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18922, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18927, 0, 0, 32, 16, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18932, 0, 0, 32, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18918, 0, 0, 16, 16, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18923, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18928, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18933, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18919, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18924, 0, 0, 16, 32, 3, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18929, 0, 0, 16, 32, 3, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18934, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18920, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18925, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18930, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18935, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_right_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_left_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_s_bend_left(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18900, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18904, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18903, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18907, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18901, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(1, 5, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18905, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18902, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18906, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18902, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18906, 0, 0, 32, 26, 3, height, 0, 6, height);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18901, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(1, 5, 3, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18905, 0, 0, 32, 26, 3, height);
- metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18903, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18907, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18900, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18904, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 1:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 2:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_s_bend_right(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18908, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18912, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18911, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18915, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18909, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18913, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18910, 0, 0, 32, 26, 3, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18914, 0, 0, 32, 26, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18910, 0, 0, 32, 26, 3, height);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18914, 0, 0, 32, 26, 3, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18909, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18913, 0, 0, 32, 26, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18911, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18915, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18908, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18912, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 1:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 2:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_quarter_turn_3(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18821, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18824, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18827, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18818, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18820, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18823, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18826, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18817, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18819, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18822, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18825, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18816, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_quarter_turn_3(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_left_quarter_turn_3(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_quarter_turn_3_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18833, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18840, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18836, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18839, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18830, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18832, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18835, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18838, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18829, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18831, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18834, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18837, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18841, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18828, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_quarter_turn_3_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_left_quarter_turn_3_bank(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18967, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18969, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18971, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18965, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18966, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18968, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18970, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18964, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18956, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18958, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18960, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18962, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18957, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18959, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18961, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(2, 4, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18963, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_right_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_left_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_half_banked_helix_up_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18991, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18998, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18994, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18997, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18988, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18990, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18993, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18996, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18987, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18989, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18992, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18995, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18999, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 15, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18986, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18988, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18991, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18998, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18994, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18997, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 1:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18987, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18990, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18993, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18996, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18986, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18989, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18992, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18995, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18999, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 15, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_half_banked_helix_up_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18972, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18975, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18978, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18981, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18985, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 11, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18973, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18976, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18979, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18982, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18974, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18977, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18984, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 15, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18980, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18983, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_6);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18975, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18978, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18981, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18985, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 11, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18972, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18976, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18979, 0, 0, 16, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18982, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18973, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18977, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18984, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 15, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18980, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18983, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18974, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_half_banked_helix_down_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 4) {
- trackSequence -= 4;
- direction = (direction - 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_right_half_banked_helix_up_small(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_half_banked_helix_down_small(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 4) {
- trackSequence -= 4;
- direction = (direction + 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_left_half_banked_helix_up_small(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_half_banked_helix_up_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19031, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19042, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19036, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19041, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19026, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19030, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19035, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19040, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19025, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19029, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19034, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19039, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19024, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19028, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19033, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19038, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19023, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19027, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19032, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19037, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19043, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19022, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19026, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19031, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19042, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19036, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19041, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 1:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 8:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 9:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19025, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19030, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19035, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19040, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 10:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19024, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19029, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19034, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19039, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 11:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 12:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19023, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19028, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19033, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19038, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 13:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19022, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19027, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19032, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19037, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19043, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_half_banked_helix_up_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19000, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19005, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19010, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19015, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19021, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19001, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19006, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19011, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19016, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19002, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19007, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19012, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19017, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19003, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19008, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19013, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19018, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19004, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19009, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19020, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19014, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19019, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_6);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 7:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19005, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19010, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19015, 0, 0, 20, 32, 3, height, 6, 0, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19021, 0, 0, 1, 32, 26, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19000, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 7, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height, TUNNEL_6);
- break;
- case 3:
- paint_util_push_tunnel_left(height, TUNNEL_6);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 8:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 9:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19006, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19011, 0, 0, 16, 32, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19016, 0, 0, 16, 32, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19001, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 10:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19007, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19012, 0, 0, 16, 16, 1, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19017, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19002, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 11:
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 12:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19008, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19013, 0, 0, 32, 16, 1, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19018, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19003, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 13:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19009, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19020, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19014, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19019, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19004, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 13, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_half_banked_helix_down_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 7) {
- trackSequence -= 7;
- direction = (direction - 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_right_half_banked_helix_up_large(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_half_banked_helix_down_large(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- if (trackSequence >= 7) {
- trackSequence -= 7;
- direction = (direction + 1) & 3;
- }
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_left_half_banked_helix_up_large(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_quarter_turn_1_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18893, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18897, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18894, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18898, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18895, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18899, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18892, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18896, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_left(height - 8, TUNNEL_8);
- break;
- case 2:
- paint_util_push_tunnel_right(height + 56, TUNNEL_7);
- break;
- case 3:
- paint_util_push_tunnel_right(height - 8, TUNNEL_7);
- paint_util_push_tunnel_left(height + 56, TUNNEL_7);
- break;
- }
- paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
-}
-
-static void spiral_rc_track_right_quarter_turn_1_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18884, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18888, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18885, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18889, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18886, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18890, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18887, 0, 0, 28, 28, 3, height, 2, 2, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18891, 0, 0, 28, 28, 1, height, 2, 2, height + 99);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 56, TUNNEL_7);
- paint_util_push_tunnel_left(height - 8, TUNNEL_7);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 56, TUNNEL_8);
- break;
- case 3:
- paint_util_push_tunnel_right(height - 8, TUNNEL_7);
- break;
- }
- paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
-}
-
-static void spiral_rc_track_left_quarter_turn_1_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_right_quarter_turn_1_60_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_quarter_turn_1_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_quarter_turn_1_60_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_brakes(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18740, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18741, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_left_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19222, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19223, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19224, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19225, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_right_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19226, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19227, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19228, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19229, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18738, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
- break;
- case 1:
- sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18739, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
- break;
- case 2:
- sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18738, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
- break;
- case 3:
- sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
- metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18739, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
- break;
- }
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- 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 + 48, 0x20);
-}
-
-static void spiral_rc_track_25_deg_down_left_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_right_banked(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_down_right_banked(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_left_banked(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_eighth_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19076, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19080, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19084, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19088, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19077, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19081, 0, 0, 34, 16, 3, height, 0, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19085, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19089, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19078, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19082, 0, 0, 16, 16, 3, height, 16, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19086, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19090, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19079, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(1, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19083, 0, 0, 16, 18, 3, height, 0, 16, height);
- metal_a_supports_paint_setup(2, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19087, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(1, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19091, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(2, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_eighth_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19060, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19064, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19068, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19072, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19061, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19065, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19069, 0, 0, 34, 16, 3, height, 0, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19073, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19062, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19066, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19070, 0, 0, 28, 28, 3, height, 4, 4, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19074, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19063, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19067, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19071, 0, 0, 16, 18, 3, height, 0, 16, height);
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19075, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_eighth_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- spiral_rc_track_right_eighth_to_diag(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_eighth_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- spiral_rc_track_left_eighth_to_diag(rideIndex, trackSequence, (direction + 3) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_eighth_bank_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19108, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19112, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19116, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19120, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19109, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19113, 0, 0, 34, 16, 0, height, 0, 0, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19117, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19121, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19110, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19114, 0, 0, 16, 16, 0, height, 16, 16, height + 27);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19118, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19122, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19111, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(1, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19115, 0, 0, 16, 18, 0, height, 0, 16, height + 27);
- metal_a_supports_paint_setup(2, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19119, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(1, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19123, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(2, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_eighth_bank_to_diag(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19092, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19096, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19100, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19104, 0, 0, 32, 1, 26, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19093, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19097, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19101, 0, 0, 34, 16, 0, height, 0, 0, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19105, 0, 0, 32, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19094, 0, 0, 16, 16, 3, height, 0, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19098, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19102, 0, 0, 28, 28, 0, height, 4, 4, height + 27);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19106, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 4:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19095, 0, 0, 16, 16, 3, height, 16, 0, height);
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19099, 0, 0, 16, 16, 3, height, 0, 0, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19103, 0, 0, 16, 18, 0, height, 0, 16, height + 27);
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19107, 0, 0, 16, 16, 3, height, 16, 16, height);
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_eighth_bank_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- spiral_rc_track_right_eighth_bank_to_diag(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_eighth_bank_to_orthogonal(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
- spiral_rc_track_left_eighth_bank_to_diag(rideIndex, trackSequence, (direction + 3) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_diag_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19189, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19127, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19186, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19124, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19188, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19126, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19187, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19125, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19201, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19139, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19198, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19136, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19200, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19138, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19199, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19137, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19151, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19148, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19150, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 38, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19149, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 42, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 38, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 42, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19193, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19131, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19190, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19128, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19192, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19130, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19191, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19129, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19143, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19140, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19142, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 22, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19141, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 22, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 22, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 22, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19147, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19144, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19146, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 27, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19145, -16, -16, 16, 16, 3, height, 0, 0, height);
- metal_b_supports_paint_setup(2, 0, 27, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 27, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 27, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19197, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19135, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19194, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19132, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19196, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19134, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19195, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19133, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19199, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19137, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19200, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19138, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19198, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19136, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19201, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19139, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19149, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19150, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19148, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 30, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19151, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 34, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 30, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 34, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 104, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19195, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19133, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19196, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19134, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19194, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19132, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19197, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19135, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_down_to_60_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19145, -16, -16, 16, 16, 3, height, 0, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19146, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19144, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 23, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19147, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 23, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 23, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 23, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_60_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19141, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19142, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19140, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19143, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19191, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19129, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19192, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19130, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19190, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- } else {
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19128, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- if (track_element_is_lift_hill(mapElement)) {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19193, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- } else {
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19131, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_flat_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19159, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19156, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19160, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19158, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19157, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_flat_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19164, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19161, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19163, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19165, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19162, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_left_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19162, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19163, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19165, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19161, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19164, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_right_bank_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19157, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19158, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19156, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19160, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19159, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_left_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19179, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19176, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19180, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19178, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19177, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_right_bank_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19184, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19181, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19183, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19185, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19182, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_up_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19169, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19166, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19170, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19168, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19167, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_up_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19174, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19171, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19173, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19175, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19172, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_left_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19172, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19173, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19175, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19171, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19174, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_right_bank_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19167, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19168, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19166, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19170, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19169, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 10, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_down_to_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19182, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19183, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19185, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19181, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19184, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_25_deg_down_to_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19177, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19178, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19176, -16, -16, 32, 32, 3, height, -16, -16, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19180, -16, -16, 32, 32, 0, height, -16, -16, height + 35);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_b_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19179, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_b_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_b_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_b_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_left_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19155, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19152, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19154, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19153, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_diag_right_bank(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19153, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 1:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19154, -16, -16, 32, 32, 3, height, -16, -16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 2:
- switch (direction) {
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19152, -16, -16, 32, 32, 0, height, -16, -16, height + 27);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- metal_a_supports_paint_setup(1, 1, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19155, -16, -16, 32, 32, 3, height, -16, -16, height);
- metal_a_supports_paint_setup(2, 0, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- metal_a_supports_paint_setup(1, 2, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- metal_a_supports_paint_setup(2, 3, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
- break;
- }
-}
-
static void spiral_rc_track_left_curved_lift_hill(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (trackSequence) {
@@ -5123,1210 +160,151 @@ static void spiral_rc_track_right_curved_lift_hill(uint8 rideIndex, uint8 trackS
}
}
-static void spiral_rc_track_block_brakes(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18742, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 18743, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 32, 0x20);
-}
-
-static void spiral_rc_track_left_banked_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19317, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19319, 0, 6, 32, 1, 34, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19321, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19315, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19316, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19318, 6, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19320, 6, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19314, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_banked_quarter_turn_3_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19306, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19308, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19310, 0, 6, 32, 1, 34, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19312, 0, 6, 32, 20, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 2:
- paint_util_set_general_support_height(height + 56, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19307, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19309, 6, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19311, 6, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 16, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19313, 6, 0, 20, 32, 3, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_banked_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_right_banked_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_banked_quarter_turn_3_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
- spiral_rc_track_left_banked_quarter_turn_3_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_banked_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19286, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19291, 0, 0, 32, 1, 34, height, 0, 27, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19296, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19301, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19287, 0, 0, 32, 16, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19292, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19297, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19302, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19288, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19293, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19298, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19303, 0, 0, 16, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19289, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19294, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19299, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19304, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19290, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19295, 0, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19300, 0, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19305, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 2:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 3:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_right_banked_quarter_turn_5_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (trackSequence) {
- case 0:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19266, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19271, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19276, 0, 0, 32, 1, 34, height, 0, 27, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19281, 0, 0, 32, 20, 3, height, 0, 6, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 1:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 2:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19267, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19272, 0, 0, 32, 16, 3, height, 0, 16, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19277, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 3:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19282, 0, 0, 32, 16, 3, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 3:
- switch (direction) {
- case 0:
- sub_98196C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19268, 0, 0, 16, 16, 3, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19273, 0, 0, 16, 16, 3, height, 16, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19278, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19283, 0, 0, 16, 16, 3, height, 0, 16, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 64, 0x20);
- break;
- case 4:
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 5:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19269, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19274, 0, 0, 1, 32, 34, height, 27, 0, height);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19279, 0, 0, 1, 1, 34, height, 30, 30, height);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19284, 0, 0, 16, 32, 3, height, 16, 0, height);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- case 6:
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19270, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19275, 0, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19280, 0, 0, 1, 32, 34, height, 27, 0, height);
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19285, 0, 0, 20, 32, 3, height, 6, 0, height);
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- break;
- }
- switch (direction) {
- case 0:
- paint_util_push_tunnel_right(height + 8, TUNNEL_8);
- break;
- case 1:
- paint_util_push_tunnel_left(height + 8, TUNNEL_8);
- break;
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 72, 0x20);
- break;
- }
-}
-
-static void spiral_rc_track_left_banked_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_right_banked_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction + 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_banked_quarter_turn_5_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
- spiral_rc_track_left_banked_quarter_turn_5_25_deg_up(rideIndex, trackSequence, (direction - 1) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_up_to_left_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19230, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19231, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19238, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19232, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19233, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_25_deg_up_to_right_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19234, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19235, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19236, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19239, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19237, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_left_banked_25_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19240, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19241, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19248, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19242, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19243, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_right_banked_25_deg_up_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19244, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19245, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19246, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19249, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19247, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 14, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_7);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 56, 0x20);
-}
-
-static void spiral_rc_track_25_deg_down_to_left_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_right_banked_25_deg_up_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_25_deg_down_to_right_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_banked_25_deg_up_to_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_banked_25_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_to_right_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_banked_25_deg_down_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_25_deg_up_to_left_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_banked_flat_to_left_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19250, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19251, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19252, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19253, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_right_banked_flat_to_right_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19254, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19255, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19256, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19257, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_left_banked_25_deg_up_to_left_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19258, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19259, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19260, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19261, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_right_banked_25_deg_up_to_right_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19262, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19263, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19264, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19265, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_left_banked_flat_to_left_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_right_banked_25_deg_up_to_right_banked_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_banked_flat_to_right_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_banked_25_deg_up_to_left_banked_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_banked_25_deg_down_to_left_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_right_banked_flat_to_right_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_banked_25_deg_down_to_right_banked_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_banked_flat_to_left_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_flat_to_left_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19202, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19203, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19210, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19204, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19205, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_flat_to_right_banked_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19206, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19207, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19208, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19211, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19209, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 9, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height, TUNNEL_8);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 48, 0x20);
-}
-
-static void spiral_rc_track_left_banked_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19212, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19213, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19220, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19214, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19215, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_right_banked_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- switch (direction) {
- case 0:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19216, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 1:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19217, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 2:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19218, 0, 0, 32, 20, 3, height, 0, 6, height);
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19221, 0, 0, 32, 1, 34, height, 0, 27, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(1, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- case 3:
- sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 19219, 0, 0, 32, 20, 3, height, 0, 6, height);
- if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
- metal_a_supports_paint_setup(2, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
- }
- break;
- }
- if (direction == 0 || direction == 3) {
- paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_6);
- } else {
- paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_14);
- }
- paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
- paint_util_set_general_support_height(height + 40, 0x20);
-}
-
-static void spiral_rc_track_flat_to_left_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_right_banked_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_flat_to_right_banked_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_left_banked_25_deg_up_to_flat(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_left_banked_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_flat_to_right_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
-static void spiral_rc_track_right_banked_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
-{
- spiral_rc_track_flat_to_left_banked_25_deg_up(rideIndex, trackSequence, (direction + 2) & 3, height, mapElement);
-}
-
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_rc(int trackType, int direction)
{
switch (trackType) {
+
+ // Use Mini Roller Coaster
case TRACK_ELEM_FLAT:
- return spiral_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
case TRACK_ELEM_25_DEG_UP:
- return spiral_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
- return spiral_rc_track_60_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
- return spiral_rc_track_flat_to_25_deg_up;
case TRACK_ELEM_25_DEG_UP_TO_60_DEG_UP:
- return spiral_rc_track_25_deg_up_to_60_deg_up;
case TRACK_ELEM_60_DEG_UP_TO_25_DEG_UP:
- return spiral_rc_track_60_deg_up_to_25_deg_up;
case TRACK_ELEM_25_DEG_UP_TO_FLAT:
- return spiral_rc_track_25_deg_up_to_flat;
case TRACK_ELEM_25_DEG_DOWN:
- return spiral_rc_track_25_deg_down;
case TRACK_ELEM_60_DEG_DOWN:
- return spiral_rc_track_60_deg_down;
case TRACK_ELEM_FLAT_TO_25_DEG_DOWN:
- return spiral_rc_track_flat_to_25_deg_down;
case TRACK_ELEM_25_DEG_DOWN_TO_60_DEG_DOWN:
- return spiral_rc_track_25_deg_down_to_60_deg_down;
case TRACK_ELEM_60_DEG_DOWN_TO_25_DEG_DOWN:
- return spiral_rc_track_60_deg_down_to_25_deg_down;
case TRACK_ELEM_25_DEG_DOWN_TO_FLAT:
- return spiral_rc_track_25_deg_down_to_flat;
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES:
- return spiral_rc_track_left_quarter_turn_5;
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES:
- return spiral_rc_track_right_quarter_turn_5;
case TRACK_ELEM_FLAT_TO_LEFT_BANK:
- return spiral_rc_track_flat_to_left_bank;
case TRACK_ELEM_FLAT_TO_RIGHT_BANK:
- return spiral_rc_track_flat_to_right_bank;
case TRACK_ELEM_LEFT_BANK_TO_FLAT:
- return spiral_rc_track_left_bank_to_flat;
case TRACK_ELEM_RIGHT_BANK_TO_FLAT:
- return spiral_rc_track_right_bank_to_flat;
case TRACK_ELEM_BANKED_LEFT_QUARTER_TURN_5_TILES:
- return spiral_rc_track_banked_left_quarter_turn_5;
case TRACK_ELEM_BANKED_RIGHT_QUARTER_TURN_5_TILES:
- return spiral_rc_track_banked_right_quarter_turn_5;
case TRACK_ELEM_LEFT_BANK_TO_25_DEG_UP:
- return spiral_rc_track_left_bank_to_25_deg_up;
case TRACK_ELEM_RIGHT_BANK_TO_25_DEG_UP:
- return spiral_rc_track_right_bank_to_25_deg_up;
case TRACK_ELEM_25_DEG_UP_TO_LEFT_BANK:
- return spiral_rc_track_25_deg_up_to_left_bank;
case TRACK_ELEM_25_DEG_UP_TO_RIGHT_BANK:
- return spiral_rc_track_25_deg_up_to_right_bank;
case TRACK_ELEM_LEFT_BANK_TO_25_DEG_DOWN:
- return spiral_rc_track_left_bank_to_25_deg_down;
case TRACK_ELEM_RIGHT_BANK_TO_25_DEG_DOWN:
- return spiral_rc_track_right_bank_to_25_deg_down;
case TRACK_ELEM_25_DEG_DOWN_TO_LEFT_BANK:
- return spiral_rc_track_25_deg_down_to_left_bank;
case TRACK_ELEM_25_DEG_DOWN_TO_RIGHT_BANK:
- return spiral_rc_track_25_deg_down_to_right_bank;
case TRACK_ELEM_LEFT_BANK:
- return spiral_rc_track_left_bank;
case TRACK_ELEM_RIGHT_BANK:
- return spiral_rc_track_right_bank;
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES_25_DEG_UP:
- return spiral_rc_track_left_quarter_turn_5_25_deg_up;
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES_25_DEG_UP:
- return spiral_rc_track_right_quarter_turn_5_25_deg_up;
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES_25_DEG_DOWN:
- return spiral_rc_track_left_quarter_turn_5_25_deg_down;
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES_25_DEG_DOWN:
- return spiral_rc_track_right_quarter_turn_5_25_deg_down;
case TRACK_ELEM_S_BEND_LEFT:
- return spiral_rc_track_s_bend_left;
case TRACK_ELEM_S_BEND_RIGHT:
- return spiral_rc_track_s_bend_right;
case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES:
- return spiral_rc_track_left_quarter_turn_3;
case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES:
- return spiral_rc_track_right_quarter_turn_3;
case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_BANK:
- return spiral_rc_track_left_quarter_turn_3_bank;
case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_BANK:
- return spiral_rc_track_right_quarter_turn_3_bank;
case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_25_DEG_UP:
- return spiral_rc_track_left_quarter_turn_3_25_deg_up;
case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_25_DEG_UP:
- return spiral_rc_track_right_quarter_turn_3_25_deg_up;
case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES_25_DEG_DOWN:
- return spiral_rc_track_left_quarter_turn_3_25_deg_down;
case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES_25_DEG_DOWN:
- return spiral_rc_track_right_quarter_turn_3_25_deg_down;
case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_UP_SMALL:
- return spiral_rc_track_left_half_banked_helix_up_small;
case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_UP_SMALL:
- return spiral_rc_track_right_half_banked_helix_up_small;
case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_DOWN_SMALL:
- return spiral_rc_track_left_half_banked_helix_down_small;
case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_DOWN_SMALL:
- return spiral_rc_track_right_half_banked_helix_down_small;
case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_UP_LARGE:
- return spiral_rc_track_left_half_banked_helix_up_large;
case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_UP_LARGE:
- return spiral_rc_track_right_half_banked_helix_up_large;
case TRACK_ELEM_LEFT_HALF_BANKED_HELIX_DOWN_LARGE:
- return spiral_rc_track_left_half_banked_helix_down_large;
case TRACK_ELEM_RIGHT_HALF_BANKED_HELIX_DOWN_LARGE:
- return spiral_rc_track_right_half_banked_helix_down_large;
case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_60_DEG_UP:
- return spiral_rc_track_left_quarter_turn_1_60_deg_up;
case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_60_DEG_UP:
- return spiral_rc_track_right_quarter_turn_1_60_deg_up;
case TRACK_ELEM_LEFT_QUARTER_TURN_1_TILE_60_DEG_DOWN:
- return spiral_rc_track_left_quarter_turn_1_60_deg_down;
case TRACK_ELEM_RIGHT_QUARTER_TURN_1_TILE_60_DEG_DOWN:
- return spiral_rc_track_right_quarter_turn_1_60_deg_down;
case TRACK_ELEM_BRAKES:
- return spiral_rc_track_brakes;
case TRACK_ELEM_25_DEG_UP_LEFT_BANKED:
- return spiral_rc_track_25_deg_up_left_banked;
case TRACK_ELEM_25_DEG_UP_RIGHT_BANKED:
- return spiral_rc_track_25_deg_up_right_banked;
case TRACK_ELEM_ON_RIDE_PHOTO:
- return spiral_rc_track_on_ride_photo;
case TRACK_ELEM_25_DEG_DOWN_LEFT_BANKED:
- return spiral_rc_track_25_deg_down_left_banked;
case TRACK_ELEM_25_DEG_DOWN_RIGHT_BANKED:
- return spiral_rc_track_25_deg_down_right_banked;
case TRACK_ELEM_LEFT_EIGHTH_TO_DIAG:
- return spiral_rc_track_left_eighth_to_diag;
case TRACK_ELEM_RIGHT_EIGHTH_TO_DIAG:
- return spiral_rc_track_right_eighth_to_diag;
case TRACK_ELEM_LEFT_EIGHTH_TO_ORTHOGONAL:
- return spiral_rc_track_left_eighth_to_orthogonal;
case TRACK_ELEM_RIGHT_EIGHTH_TO_ORTHOGONAL:
- return spiral_rc_track_right_eighth_to_orthogonal;
case TRACK_ELEM_LEFT_EIGHTH_BANK_TO_DIAG:
- return spiral_rc_track_left_eighth_bank_to_diag;
case TRACK_ELEM_RIGHT_EIGHTH_BANK_TO_DIAG:
- return spiral_rc_track_right_eighth_bank_to_diag;
case TRACK_ELEM_LEFT_EIGHTH_BANK_TO_ORTHOGONAL:
- return spiral_rc_track_left_eighth_bank_to_orthogonal;
case TRACK_ELEM_RIGHT_EIGHTH_BANK_TO_ORTHOGONAL:
- return spiral_rc_track_right_eighth_bank_to_orthogonal;
case TRACK_ELEM_DIAG_FLAT:
- return spiral_rc_track_diag_flat;
case TRACK_ELEM_DIAG_25_DEG_UP:
- return spiral_rc_track_diag_25_deg_up;
case TRACK_ELEM_DIAG_60_DEG_UP:
- return spiral_rc_track_diag_60_deg_up;
case TRACK_ELEM_DIAG_FLAT_TO_25_DEG_UP:
- return spiral_rc_track_diag_flat_to_25_deg_up;
case TRACK_ELEM_DIAG_25_DEG_UP_TO_60_DEG_UP:
- return spiral_rc_track_diag_25_deg_up_to_60_deg_up;
case TRACK_ELEM_DIAG_60_DEG_UP_TO_25_DEG_UP:
- return spiral_rc_track_diag_60_deg_up_to_25_deg_up;
case TRACK_ELEM_DIAG_25_DEG_UP_TO_FLAT:
- return spiral_rc_track_diag_25_deg_up_to_flat;
case TRACK_ELEM_DIAG_25_DEG_DOWN:
- return spiral_rc_track_diag_25_deg_down;
case TRACK_ELEM_DIAG_60_DEG_DOWN:
- return spiral_rc_track_diag_60_deg_down;
case TRACK_ELEM_DIAG_FLAT_TO_25_DEG_DOWN:
- return spiral_rc_track_diag_flat_to_25_deg_down;
case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_60_DEG_DOWN:
- return spiral_rc_track_diag_25_deg_down_to_60_deg_down;
case TRACK_ELEM_DIAG_60_DEG_DOWN_TO_25_DEG_DOWN:
- return spiral_rc_track_diag_60_deg_down_to_25_deg_down;
case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_FLAT:
- return spiral_rc_track_diag_25_deg_down_to_flat;
case TRACK_ELEM_DIAG_FLAT_TO_LEFT_BANK:
- return spiral_rc_track_diag_flat_to_left_bank;
case TRACK_ELEM_DIAG_FLAT_TO_RIGHT_BANK:
- return spiral_rc_track_diag_flat_to_right_bank;
case TRACK_ELEM_DIAG_LEFT_BANK_TO_FLAT:
- return spiral_rc_track_diag_left_bank_to_flat;
case TRACK_ELEM_DIAG_RIGHT_BANK_TO_FLAT:
- return spiral_rc_track_diag_right_bank_to_flat;
case TRACK_ELEM_DIAG_LEFT_BANK_TO_25_DEG_UP:
- return spiral_rc_track_diag_left_bank_to_25_deg_up;
case TRACK_ELEM_DIAG_RIGHT_BANK_TO_25_DEG_UP:
- return spiral_rc_track_diag_right_bank_to_25_deg_up;
case TRACK_ELEM_DIAG_25_DEG_UP_TO_LEFT_BANK:
- return spiral_rc_track_diag_25_deg_up_to_left_bank;
case TRACK_ELEM_DIAG_25_DEG_UP_TO_RIGHT_BANK:
- return spiral_rc_track_diag_25_deg_up_to_right_bank;
case TRACK_ELEM_DIAG_LEFT_BANK_TO_25_DEG_DOWN:
- return spiral_rc_track_diag_left_bank_to_25_deg_down;
case TRACK_ELEM_DIAG_RIGHT_BANK_TO_25_DEG_DOWN:
- return spiral_rc_track_diag_right_bank_to_25_deg_down;
case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_LEFT_BANK:
- return spiral_rc_track_diag_25_deg_down_to_left_bank;
case TRACK_ELEM_DIAG_25_DEG_DOWN_TO_RIGHT_BANK:
- return spiral_rc_track_diag_25_deg_down_to_right_bank;
case TRACK_ELEM_DIAG_LEFT_BANK:
- return spiral_rc_track_diag_left_bank;
case TRACK_ELEM_DIAG_RIGHT_BANK:
- return spiral_rc_track_diag_right_bank;
+ case TRACK_ELEM_BLOCK_BRAKES:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
+ case TRACK_ELEM_25_DEG_UP_TO_LEFT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_25_DEG_UP_TO_RIGHT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_25_DEG_UP:
+ case TRACK_ELEM_25_DEG_DOWN_TO_LEFT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_25_DEG_DOWN_TO_RIGHT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_LEFT_BANKED_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_RIGHT_BANKED_FLAT:
+ case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_LEFT_BANKED_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_RIGHT_BANKED_FLAT:
+ case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_FLAT:
+ case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
+ case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_FLAT:
+ case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
+ return get_track_paint_function_mini_rc(trackType, direction);
+
case TRACK_ELEM_LEFT_CURVED_LIFT_HILL:
return spiral_rc_track_left_curved_lift_hill;
case TRACK_ELEM_RIGHT_CURVED_LIFT_HILL:
return spiral_rc_track_right_curved_lift_hill;
- case TRACK_ELEM_BLOCK_BRAKES:
- return spiral_rc_track_block_brakes;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
- return spiral_rc_track_left_banked_quarter_turn_3_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_UP:
- return spiral_rc_track_right_banked_quarter_turn_3_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
- return spiral_rc_track_left_banked_quarter_turn_3_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_3_TILE_25_DEG_DOWN:
- return spiral_rc_track_right_banked_quarter_turn_3_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
- return spiral_rc_track_left_banked_quarter_turn_5_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_UP:
- return spiral_rc_track_right_banked_quarter_turn_5_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
- return spiral_rc_track_left_banked_quarter_turn_5_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_QUARTER_TURN_5_TILE_25_DEG_DOWN:
- return spiral_rc_track_right_banked_quarter_turn_5_25_deg_down;
- case TRACK_ELEM_25_DEG_UP_TO_LEFT_BANKED_25_DEG_UP:
- return spiral_rc_track_25_deg_up_to_left_banked_25_deg_up;
- case TRACK_ELEM_25_DEG_UP_TO_RIGHT_BANKED_25_DEG_UP:
- return spiral_rc_track_25_deg_up_to_right_banked_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_25_DEG_UP:
- return spiral_rc_track_left_banked_25_deg_up_to_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_25_DEG_UP:
- return spiral_rc_track_right_banked_25_deg_up_to_25_deg_up;
- case TRACK_ELEM_25_DEG_DOWN_TO_LEFT_BANKED_25_DEG_DOWN:
- return spiral_rc_track_25_deg_down_to_left_banked_25_deg_down;
- case TRACK_ELEM_25_DEG_DOWN_TO_RIGHT_BANKED_25_DEG_DOWN:
- return spiral_rc_track_25_deg_down_to_right_banked_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
- return spiral_rc_track_left_banked_25_deg_down_to_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_25_DEG_DOWN:
- return spiral_rc_track_right_banked_25_deg_down_to_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_UP:
- return spiral_rc_track_left_banked_flat_to_left_banked_25_deg_up;
- case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
- return spiral_rc_track_right_banked_flat_to_right_banked_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_LEFT_BANKED_FLAT:
- return spiral_rc_track_left_banked_25_deg_up_to_left_banked_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_RIGHT_BANKED_FLAT:
- return spiral_rc_track_right_banked_25_deg_up_to_right_banked_flat;
- case TRACK_ELEM_LEFT_BANKED_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
- return spiral_rc_track_left_banked_flat_to_left_banked_25_deg_down;
- case TRACK_ELEM_RIGHT_BANKED_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
- return spiral_rc_track_right_banked_flat_to_right_banked_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_LEFT_BANKED_FLAT:
- return spiral_rc_track_left_banked_25_deg_down_to_left_banked_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_RIGHT_BANKED_FLAT:
- return spiral_rc_track_right_banked_25_deg_down_to_right_banked_flat;
- case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_UP:
- return spiral_rc_track_flat_to_left_banked_25_deg_up;
- case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_UP:
- return spiral_rc_track_flat_to_right_banked_25_deg_up;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_UP_TO_FLAT:
- return spiral_rc_track_left_banked_25_deg_up_to_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_UP_TO_FLAT:
- return spiral_rc_track_right_banked_25_deg_up_to_flat;
- case TRACK_ELEM_FLAT_TO_LEFT_BANKED_25_DEG_DOWN:
- return spiral_rc_track_flat_to_left_banked_25_deg_down;
- case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
- return spiral_rc_track_flat_to_right_banked_25_deg_down;
- case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_FLAT:
- return spiral_rc_track_left_banked_25_deg_down_to_flat;
- case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
- return spiral_rc_track_right_banked_25_deg_down_to_flat;
}
return NULL;
}
diff --git a/src/ride/coaster/stand_up_roller_coaster.c b/src/ride/coaster/stand_up_roller_coaster.c
index 3dc6aa12b3..f1912687c3 100644
--- a/src/ride/coaster/stand_up_roller_coaster.c
+++ b/src/ride/coaster/stand_up_roller_coaster.c
@@ -66,6 +66,28 @@ static void stand_up_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 d
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void stand_up_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 25567, 25571, SPR_STATION_BASE_A_SW_NE },
+ { 25568, 25572, SPR_STATION_BASE_A_NW_SE },
+ { 25567, 25571, SPR_STATION_BASE_A_SW_NE },
+ { 25568, 25572, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 6, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 6, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ 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 stand_up_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -3305,32 +3327,27 @@ static void stand_up_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 25229, 0, 6, 32, 20, 1, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 25230, 0, 6, 32, 20, 1, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 25229, 0, 6, 32, 20, 1, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 25230, 0, 6, 32, 20, 1, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
paint_util_set_general_support_height(height + 48, 0x20);
@@ -5707,6 +5724,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int trackType, int dir
switch (trackType) {
case TRACK_ELEM_FLAT:
return stand_up_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return stand_up_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return stand_up_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/steeplechase.c b/src/ride/coaster/steeplechase.c
index 634ee567df..e616d56874 100644
--- a/src/ride/coaster/steeplechase.c
+++ b/src/ride/coaster/steeplechase.c
@@ -60,6 +60,24 @@ static void steeplechase_track_flat(uint8 rideIndex, uint8 trackSequence, uint8
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void steeplechase_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 28635, SPR_STATION_BASE_B_SW_NE },
+ { 28636, SPR_STATION_BASE_B_NW_SE },
+ { 28635, SPR_STATION_BASE_B_SW_NE },
+ { 28636, SPR_STATION_BASE_B_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 3, height - 2, 0, 2, height);
+ sub_98199C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 6, 32, 20, 3, height, 0, 0, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 3);
+ track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
+ 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 steeplechase_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -1541,6 +1559,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int trackType, int di
switch (trackType) {
case TRACK_ELEM_FLAT:
return steeplechase_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return steeplechase_track_station;
case TRACK_ELEM_25_DEG_UP:
return steeplechase_track_25_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
diff --git a/src/ride/coaster/suspended_swinging_coaster.c b/src/ride/coaster/suspended_swinging_coaster.c
index b4e658afc2..4fcfc2ae10 100644
--- a/src/ride/coaster/suspended_swinging_coaster.c
+++ b/src/ride/coaster/suspended_swinging_coaster.c
@@ -62,6 +62,25 @@ static void suspended_swinging_rc_track_flat(uint8 rideIndex, uint8 trackSequenc
paint_util_set_general_support_height(height + 48, 0x20);
}
+static void suspended_swinging_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 25963, SPR_STATION_INVERTED_BAR_D_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 25964, SPR_STATION_INVERTED_BAR_D_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 25963, SPR_STATION_INVERTED_BAR_D_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 25964, SPR_STATION_INVERTED_BAR_D_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 3, height + 29, 0, 6, height + 29);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 3, height + 29, 0, 6, height + 29);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ paint_util_push_tunnel_rotated(direction, height, TUNNEL_9);
+ paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
+ paint_util_set_general_support_height(height + 48, 0x20);
+}
+
static void suspended_swinging_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -2838,6 +2857,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int trackTyp
switch (trackType) {
case TRACK_ELEM_FLAT:
return suspended_swinging_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return suspended_swinging_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return suspended_swinging_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/twister_roller_coaster.c b/src/ride/coaster/twister_roller_coaster.c
index 7e8c026836..334a300401 100644
--- a/src/ride/coaster/twister_roller_coaster.c
+++ b/src/ride/coaster/twister_roller_coaster.c
@@ -66,6 +66,31 @@ static void twister_rc_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 di
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void twister_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 17154, 17150, SPR_STATION_BASE_A_SW_NE },
+ { 17155, 17151, SPR_STATION_BASE_A_NW_SE },
+ { 17154, 17150, SPR_STATION_BASE_A_SW_NE },
+ { 17155, 17151, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 0);
+
+ rct_ride * ride = get_ride(rideIndex);
+ track_paint_util_draw_station_platform(ride, direction, height, 9, mapElement);
+
+ 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 twister_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -3222,32 +3247,27 @@ static void twister_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence,
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17146, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17147, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17146, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17147, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -7651,6 +7671,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(int trackType, int dire
switch (trackType) {
case TRACK_ELEM_FLAT:
return twister_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return twister_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return twister_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/coaster/vertical_drop_roller_coaster.c b/src/ride/coaster/vertical_drop_roller_coaster.c
index 51e160eb99..5053dfb74c 100644
--- a/src/ride/coaster/vertical_drop_roller_coaster.c
+++ b/src/ride/coaster/vertical_drop_roller_coaster.c
@@ -66,6 +66,31 @@ static void vertical_drop_rc_track_flat(uint8 rideIndex, uint8 trackSequence, ui
paint_util_set_general_support_height(height + 32, 0x20);
}
+static void vertical_drop_rc_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { 17154, 17150, SPR_STATION_BASE_A_SW_NE },
+ { 17155, 17151, SPR_STATION_BASE_A_NW_SE },
+ { 17154, 17150, SPR_STATION_BASE_A_SW_NE },
+ { 17155, 17151, SPR_STATION_BASE_A_NW_SE },
+ };
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION) {
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ } else {
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 1, height, 0, 6, height + 3);
+ }
+ sub_98196C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_MISC], 0, 0, 32, 32, 1, height);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 3);
+
+ rct_ride * ride = get_ride(rideIndex);
+ track_paint_util_draw_station_platform(ride, direction, height, 9, mapElement);
+
+ 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 vertical_drop_rc_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
if (track_element_is_lift_hill(mapElement)) {
@@ -3081,32 +3106,27 @@ static void vertical_drop_rc_track_on_ride_photo(uint8 rideIndex, uint8 trackSeq
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17146, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25623, 26, 0, 1, 1, 19, height + 3);
break;
case 1:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17147, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25624, 6, 0, 1, 1, 19, height + 3);
break;
case 2:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17146, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25625, 6, 0, 1, 1, 19, height + 3);
break;
case 3:
sub_98196C_rotated(direction, 0x20000000 | 22432, 0, 0, 32, 32, 1, height);
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
sub_98197C_rotated(direction, gTrackColours[SCHEME_TRACK] | 17147, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
- sub_98196C_rotated(direction, gTrackColours[SCHEME_MISC] | 25626, 26, 0, 1, 1, 19, height + 3);
break;
}
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
- sub_98196C_rotated(direction, 0x00000000, 0, 0, 0, 0, 0, height - 48);
+ track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
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 + 48, 0x20);
@@ -7126,6 +7146,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(int trackType, in
switch (trackType) {
case TRACK_ELEM_FLAT:
return vertical_drop_rc_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return vertical_drop_rc_track_station;
case TRACK_ELEM_25_DEG_UP:
return vertical_drop_rc_track_25_deg_up;
case TRACK_ELEM_60_DEG_UP:
diff --git a/src/ride/track_paint.c b/src/ride/track_paint.c
index cee1c1f7c5..6a9439f1bd 100644
--- a/src/ride/track_paint.c
+++ b/src/ride/track_paint.c
@@ -286,6 +286,11 @@ bool track_paint_util_should_paint_supports(rct_xy16 position)
}
void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ track_paint_util_draw_station_2(rideIndex, trackSequence, direction, height, mapElement, 5, 7);
+}
+
+void track_paint_util_draw_station_2(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement, int fenceOffsetA, int fenceOffsetB)
{
rct_xy16 position = {gPaintMapPosition.x, gPaintMapPosition.y};
rct_ride * ride = get_ride(rideIndex);
@@ -310,7 +315,7 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
} else {
imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_SW_NE : SPR_STATION_PLATFORM_SW_NE) | gTrackColours[SCHEME_SUPPORTS];
}
- sub_98196C(imageId, 0, 0, 32, 8, 1, height + 5, get_current_rotation());
+ sub_98196C(imageId, 0, 0, 32, 8, 1, height + fenceOffsetA, get_current_rotation());
//height -= 5 (height)
track_paint_util_draw_station_covers(EDGE_NW, hasFence, entranceStyle, direction, height);
//height += 5 (height + 5)
@@ -322,7 +327,7 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
} else {
imageId = SPR_STATION_PLATFORM_SW_NE | gTrackColours[SCHEME_SUPPORTS];
}
- sub_98196C(imageId, 0, 24, 32, 8, 1, height + 5, get_current_rotation());
+ sub_98196C(imageId, 0, 24, 32, 8, 1, height + fenceOffsetA, get_current_rotation());
//height += 2 (height + 7)
hasFence = track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation());
@@ -334,15 +339,15 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
} else {
imageId = SPR_STATION_FENCE_SW_NE | gTrackColours[SCHEME_SUPPORTS];
}
- sub_98196C(imageId, 0, 31, 32, 1, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 0, 31, 32, 1, 7, height + fenceOffsetB, get_current_rotation());
} else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 0) {
// Addition: draw only small fence if there is an entrance/exit at the beginning
imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 31, 23, 1, 8, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 31, 23, 1, 8, 7, height + fenceOffsetB, get_current_rotation());
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
// Addition: draw only small fence if there is an entrance/exit at the end
imageId = SPR_STATION_LIGHT_BACK_NE_SW | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 31, 23, 1, 8, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 31, 23, 1, 8, 7, height + fenceOffsetB, get_current_rotation());
}
//height -= 7 (height)
track_paint_util_draw_station_covers(EDGE_SE, hasFence, entranceStyle, direction, height);
@@ -350,10 +355,10 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 0) {
imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 31, 0, 1, 8, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 31, 0, 1, 8, 7, height + fenceOffsetB, get_current_rotation());
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
imageId = SPR_STATION_LIGHT_BACK_NE_SW | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 31, 0, 1, 8, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 31, 0, 1, 8, 7, height + fenceOffsetB, get_current_rotation());
}
} else if (direction == 1 || direction == 3) {
//height += 5 (height + 5);
@@ -370,7 +375,7 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
} else {
imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_NW_SE : SPR_STATION_PLATFORM_NW_SE) | gTrackColours[SCHEME_SUPPORTS];
}
- sub_98196C(imageId, 0, 0, 8, 32, 1, height + 5, get_current_rotation());
+ sub_98196C(imageId, 0, 0, 8, 32, 1, height + fenceOffsetA, get_current_rotation());
//height -= 5 (height)
track_paint_util_draw_station_covers(EDGE_NE, hasFence, entranceStyle, direction, height);
//height += 5 (height + 5)
@@ -382,7 +387,7 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
} else {
imageId = SPR_STATION_PLATFORM_NW_SE | gTrackColours[SCHEME_SUPPORTS];
}
- sub_98196C(imageId, 24, 0, 8, 32, 1, height + 5, get_current_rotation());
+ sub_98196C(imageId, 24, 0, 8, 32, 1, height + fenceOffsetA, get_current_rotation());
//height += 2 (height + 7)
hasFence = track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation());
@@ -394,15 +399,15 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
} else {
imageId = SPR_STATION_FENCE_NW_SE | gTrackColours[SCHEME_SUPPORTS];
}
- sub_98196C(imageId, 31, 0, 1, 32, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 31, 0, 1, 32, 7, height + fenceOffsetB, get_current_rotation());
} else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 3) {
// Addition: draw only small fence if there is an entrance/exit at the beginning
imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 23, 31, 8, 1, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 23, 31, 8, 1, 7, height + fenceOffsetB, get_current_rotation());
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
// Addition: draw only small fence if there is an entrance/exit at the end
imageId = SPR_STATION_LIGHT_BACK_NW_SE | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 23, 31, 8, 1, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 23, 31, 8, 1, 7, height + fenceOffsetB, get_current_rotation());
}
//height -= 7 (height)
@@ -411,15 +416,154 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 3) {
imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 0, 31, 8, 1, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 0, 31, 8, 1, 7, height + fenceOffsetB, get_current_rotation());
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
imageId = SPR_STATION_LIGHT_BACK_NW_SE | gTrackColours[SCHEME_SUPPORTS];
- sub_98196C(imageId, 0, 31, 8, 1, 7, height + 7, get_current_rotation());
+ sub_98196C(imageId, 0, 31, 8, 1, 7, height + fenceOffsetB, get_current_rotation());
+ }
+ }
+}
+
+void track_paint_util_draw_station_inverted(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ rct_xy16 position = {gPaintMapPosition.x, gPaintMapPosition.y};
+ rct_ride * ride = get_ride(rideIndex);
+ const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
+ const bool hasGreenLight = (bool) (mapElement->properties.track.sequence & 0x80);
+
+ bool hasFence;
+ uint32 imageId;
+
+ if (direction == 0 || direction == 2) {
+ //height += 5 (height + 5);
+ hasFence = track_paint_util_has_fence(EDGE_NW, position, mapElement, ride, get_current_rotation());
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 0) {
+ if (hasGreenLight) {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_END_GREEN_LIGHT_SW_NE : SPR_STATION_PLATFORM_END_GREEN_LIGHT_SW_NE) | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_END_RED_LIGHT_SW_NE : SPR_STATION_PLATFORM_END_RED_LIGHT_SW_NE) | gTrackColours[SCHEME_SUPPORTS];
+ }
+ } else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 2) {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_BEGIN_FENCED_SW_NE : SPR_STATION_PLATFORM_BEGIN_SW_NE) | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_SW_NE : SPR_STATION_PLATFORM_SW_NE) | gTrackColours[SCHEME_SUPPORTS];
+ }
+ sub_98196C(imageId, 0, 0, 32, 8, 1, height + 6, get_current_rotation());
+ //height -= 5 (height)
+ track_paint_util_draw_station_covers_2(EDGE_NW, hasFence, entranceStyle, direction, height, true);
+ //height += 5 (height + 5)
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 0) {
+ imageId = (hasGreenLight ? SPR_STATION_PLATFORM_END_GREEN_LIGHT_SW_NE : SPR_STATION_PLATFORM_END_RED_LIGHT_SW_NE) | gTrackColours[SCHEME_SUPPORTS];
+ } else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 2) {
+ imageId = SPR_STATION_PLATFORM_BEGIN_SW_NE | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = SPR_STATION_PLATFORM_SW_NE | gTrackColours[SCHEME_SUPPORTS];
+ }
+ sub_98196C(imageId, 0, 24, 32, 8, 1, height + 6, get_current_rotation());
+ //height += 2 (height + 7)
+
+ hasFence = track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation());
+ if (hasFence) {
+ if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 0) {
+ imageId = SPR_STATION_INVERTED_BEGIN_ANGLE_FENCE_SW_NE | gTrackColours[SCHEME_SUPPORTS];
+ } else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
+ imageId = SPR_STATION_INVERTED_LIGHT_BACK_ANGLE_FENCED_NE_SW | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = SPR_STATION_INVERTED_FENCE_SW_NE | gTrackColours[SCHEME_SUPPORTS];
+ }
+ sub_98196C(imageId, 0, 31, 32, 1, 7, height + 8, get_current_rotation());
+ } else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 0) {
+ // Addition: draw only small fence if there is an entrance/exit at the beginning
+ imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 31, 23, 1, 8, 7, height + 8, get_current_rotation());
+ } else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
+ // Addition: draw only small fence if there is an entrance/exit at the end
+ imageId = SPR_STATION_LIGHT_BACK_NE_SW | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 31, 23, 1, 8, 7, height + 8, get_current_rotation());
+ }
+ //height -= 7 (height)
+ track_paint_util_draw_station_covers_2(EDGE_SE, hasFence, entranceStyle, direction, height, true);
+ //height += 7 (height + 7)
+
+ if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 0) {
+ imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 31, 0, 1, 8, 7, height + 8, get_current_rotation());
+ } else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
+ imageId = SPR_STATION_LIGHT_BACK_NE_SW | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 31, 0, 1, 8, 7, height + 8, get_current_rotation());
+ }
+ } else if (direction == 1 || direction == 3) {
+ //height += 5 (height + 5);
+ hasFence = track_paint_util_has_fence(EDGE_NE, position, mapElement, ride, get_current_rotation());
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 3) {
+ if (hasGreenLight) {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_END_GREEN_LIGHT_NW_SE : SPR_STATION_PLATFORM_END_GREEN_LIGHT_NW_SE) | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_END_RED_LIGHT_NW_SE : SPR_STATION_PLATFORM_END_RED_LIGHT_NW_SE) | gTrackColours[SCHEME_SUPPORTS];
+ }
+ } else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 1) {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_BEGIN_FENCED_NW_SE : SPR_STATION_PLATFORM_BEGIN_NW_SE) | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_NW_SE : SPR_STATION_PLATFORM_NW_SE) | gTrackColours[SCHEME_SUPPORTS];
+ }
+ sub_98196C(imageId, 0, 0, 8, 32, 1, height + 6, get_current_rotation());
+ //height -= 5 (height)
+ track_paint_util_draw_station_covers_2(EDGE_NE, hasFence, entranceStyle, direction, height, true);
+ //height += 5 (height + 5)
+
+ if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 3) {
+ imageId = (hasGreenLight ? SPR_STATION_PLATFORM_END_GREEN_LIGHT_NW_SE : SPR_STATION_PLATFORM_END_RED_LIGHT_NW_SE) | gTrackColours[SCHEME_SUPPORTS];
+ } else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 1) {
+ imageId = SPR_STATION_PLATFORM_BEGIN_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = SPR_STATION_PLATFORM_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ }
+ sub_98196C(imageId, 24, 0, 8, 32, 1, height + 6, get_current_rotation());
+ //height += 2 (height + 7)
+
+ hasFence = track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation());
+ if (hasFence) {
+ if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 3) {
+ imageId = SPR_STATION_INVERTED_BEGIN_ANGLE_FENCE_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ } else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
+ imageId = SPR_STATION_INVERTED_LIGHT_BACK_ANGLE_FENCED_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ } else {
+ imageId = SPR_STATION_INVERTED_FENCE_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ }
+ sub_98196C(imageId, 31, 0, 1, 32, 7, height + 8, get_current_rotation());
+ } else if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 3) {
+ // Addition: draw only small fence if there is an entrance/exit at the beginning
+ imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 23, 31, 8, 1, 7, height + 8, get_current_rotation());
+ } else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
+ // Addition: draw only small fence if there is an entrance/exit at the end
+ imageId = SPR_STATION_LIGHT_BACK_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 23, 31, 8, 1, 7, height + 8, get_current_rotation());
+ }
+
+ //height -= 7 (height)
+ track_paint_util_draw_station_covers_2(EDGE_SW, hasFence, entranceStyle, direction, height, true);
+ //height += 7 (height + 7)
+
+ if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 3) {
+ imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 0, 31, 8, 1, 7, height + 8, get_current_rotation());
+ } else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
+ imageId = SPR_STATION_LIGHT_BACK_NW_SE | gTrackColours[SCHEME_SUPPORTS];
+ sub_98196C(imageId, 0, 31, 8, 1, 7, height + 8, get_current_rotation());
}
}
}
bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const rct_ride_entrance_definition * entranceStyle, uint8 direction, uint16 height)
+{
+ return track_paint_util_draw_station_covers_2(edge, hasFence, entranceStyle, direction, height, false);
+}
+
+bool track_paint_util_draw_station_covers_2(enum edge edge, bool hasFence, const rct_ride_entrance_definition * entranceStyle, uint8 direction, uint16 height, bool tall)
{
if (!(g141E9DB & (G141E9DB_FLAG_1 | G141E9DB_FLAG_2))) {
return false;
@@ -433,22 +577,22 @@ bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const r
offset = (rct_xyz16) {0, 0, height};
switch (edge) {
case EDGE_NE:
- bounds = (rct_xyz16) {1, 30, 0};
+ bounds = (rct_xyz16) {1, 30, (tall ? 46 : 0)};
boundsOffset = (rct_xyz16) {0, 1, height + 1};
imageOffset = hasFence ? SPR_STATION_COVER_OFFSET_SE_NW_BACK_1 : SPR_STATION_COVER_OFFSET_SE_NW_BACK_0;
break;
case EDGE_SE:
bounds = (rct_xyz16) {32, 32, 0};
- boundsOffset = (rct_xyz16) {1, 0, height + 23};
+ boundsOffset = (rct_xyz16) {(tall ? 0 : 1), 0, height + (tall ? 47 : 23)};
imageOffset = SPR_STATION_COVER_OFFSET_NE_SW_FRONT;
break;
case EDGE_SW:
bounds = (rct_xyz16) {32, 32, 0};
- boundsOffset = (rct_xyz16) {0, 0, height + 23};
+ boundsOffset = (rct_xyz16) {0, 0, height + (tall ? 47 : 23)};
imageOffset = SPR_STATION_COVER_OFFSET_SE_NW_FRONT;
break;
case EDGE_NW:
- bounds = (rct_xyz16) {30, 1, 30};
+ bounds = (rct_xyz16) {30, 1, (tall ? 46 : 0)};
boundsOffset = (rct_xyz16) {1, 0, height + 1};
imageOffset = hasFence ? SPR_STATION_COVER_OFFSET_NE_SW_BACK_1 : SPR_STATION_COVER_OFFSET_NE_SW_BACK_0;
break;
@@ -462,6 +606,10 @@ bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const r
return false;
}
+ if (tall) {
+ imageOffset += 6;
+ }
+
if (baseImageId & 0x40000000) {
imageId = (baseImageId & 0xBFFFFFFF) + imageOffset;
sub_98197C(imageId, (sint8)offset.x, (sint8)offset.y, bounds.x, bounds.y, (sint8)bounds.z, offset.z, boundsOffset.x, boundsOffset.y, boundsOffset.z, get_current_rotation());
@@ -555,13 +703,18 @@ void track_paint_util_draw_pier(rct_ride * ride, const rct_ride_entrance_definit
}
void track_paint_util_draw_station_metal_supports(uint8 direction, uint16 height, uint32 colour)
+{
+ track_paint_util_draw_station_metal_supports_2(direction, height, colour, 3);
+}
+
+void track_paint_util_draw_station_metal_supports_2(uint8 direction, uint16 height, uint32 colour, uint8 type)
{
if (direction & 1) {
- metal_a_supports_paint_setup(3, 6, 0, height, colour);
- metal_a_supports_paint_setup(3, 7, 0, height, colour);
+ metal_a_supports_paint_setup(type, 6, 0, height, colour);
+ metal_a_supports_paint_setup(type, 7, 0, height, colour);
} else {
- metal_a_supports_paint_setup(3, 5, 0, height, colour);
- metal_a_supports_paint_setup(3, 8, 0, height, colour);
+ metal_a_supports_paint_setup(type, 5, 0, height, colour);
+ metal_a_supports_paint_setup(type, 8, 0, height, colour);
}
}
diff --git a/src/ride/track_paint.h b/src/ride/track_paint.h
index 8fcf1eee66..fb71e1e9f3 100644
--- a/src/ride/track_paint.h
+++ b/src/ride/track_paint.h
@@ -118,7 +118,18 @@ enum {
SPR_STATION_PLATFORM_END_RED_LIGHT_NW_SE = 22389,
SPR_STATION_PLATFORM_END_GREEN_LIGHT_SW_NE = 22390,
SPR_STATION_PLATFORM_END_GREEN_LIGHT_NW_SE = 22391,
-
+ SPR_STATION_INVERTED_FENCE_SW_NE = 22392,
+ SPR_STATION_INVERTED_FENCE_NW_SE = 22393,
+ SPR_STATION_INVERTED_BEGIN_ANGLE_FENCE_SW_NE = 22394,
+ SPR_STATION_INVERTED_BEGIN_ANGLE_FENCE_NW_SE = 22395,
+ SPR_STATION_INVERTED_LIGHT_BACK_ANGLE_FENCED_NE_SW = 22396,
+ SPR_STATION_INVERTED_LIGHT_BACK_ANGLE_FENCED_NW_SE = 22397,
+ SPR_STATION_INVERTED_BAR_C_SW_NE = 22398,
+ SPR_STATION_INVERTED_BAR_C_NW_SE = 22399,
+ SPR_STATION_INVERTED_BAR_D_SW_NE = 22400,
+ SPR_STATION_INVERTED_BAR_D_NW_SE = 22401,
+ SPR_STATION_INVERTED_BAR_E_SW_NE = 22402,
+ SPR_STATION_INVERTED_BAR_E_NW_SE = 22403,
SPR_STATION_PIER_EDGE_SE = 22404,
SPR_STATION_PIER_EDGE_SW = 22405,
SPR_STATION_PIER_EDGE_NW = 22406,
@@ -133,12 +144,20 @@ enum {
SPR_STATION_NARROW_EDGE_FENCED_NE = 22415,
SPR_STATION_NARROW_EDGE_NW = 22416,
SPR_STATION_NARROW_EDGE_NE = 22417,
-
+ SPR_STATION_INVERTED_BAR_F_SW_NE = 22418,
+ SPR_STATION_INVERTED_BAR_F_NW_SE = 22419,
+ SPR_STATION_INVERTED_BAR_0_SW_NE = 22420,
+ SPR_STATION_INVERTED_BAR_0_NW_SE = 22421,
+ SPR_STATION_INVERTED_BAR_A_SW_NE = 22422,
+ SPR_STATION_INVERTED_BAR_A_NW_SE = 22423,
+ SPR_STATION_INVERTED_BAR_B_SW_NE = 22424,
+ SPR_STATION_INVERTED_BAR_B_NW_SE = 22425,
SPR_STATION_BASE_A_SW_NE = 22426,
SPR_STATION_BASE_A_NW_SE = 22427,
SPR_STATION_BASE_B_SW_NE = 22428,
SPR_STATION_BASE_B_NW_SE = 22429,
-
+ SPR_STATION_BASE_C_SW_NE = 22430,
+ SPR_STATION_BASE_C_NW_SE = 22431,
SPR_STATION_BASE_D = 22432,
SPR_ON_RIDE_PHOTO_CAMERA_N = 25615,
@@ -226,11 +245,15 @@ bool track_paint_util_has_fence(enum edge edge, rct_xy16 position, rct_map_eleme
void track_paint_util_paint_floor(uint8 edges, uint32 colourFlags, uint16 height, const uint32 floorSprites[4], uint8 rotation);
void track_paint_util_paint_fences(uint8 edges, rct_xy16 position, rct_map_element * mapElement, rct_ride * ride, uint32 colourFlags, uint16 height, const uint32 fenceSprites[4], uint8 rotation);
bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const rct_ride_entrance_definition * entranceStyle, uint8 direction, uint16 height);
+bool track_paint_util_draw_station_covers_2(enum edge edge, bool hasFence, const rct_ride_entrance_definition * entranceStyle, uint8 direction, uint16 height, bool tall);
void track_paint_util_draw_station_platform(rct_ride *ride, uint8 direction, int height, int zOffset, rct_map_element * mapElement);
void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement);
+void track_paint_util_draw_station_2(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement, int fenceOffsetA, int fenceOffsetB);
+void track_paint_util_draw_station_inverted(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement);
bool track_paint_util_should_paint_supports(rct_xy16 position);
void track_paint_util_draw_pier(rct_ride * ride, const rct_ride_entrance_definition * entranceStyle, rct_xy16 position, uint8 direction, int height, rct_map_element * mapElement, uint8 rotation);
void track_paint_util_draw_station_metal_supports(uint8 direction, uint16 height, uint32 colour);
+void track_paint_util_draw_station_metal_supports_2(uint8 direction, uint16 height, uint32 colour, uint8 type);
void track_paint_util_right_quarter_turn_5_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5], const rct_xy16 offsets[4][5], const rct_xy16 boundsLengths[4][5], const rct_xyz16 boundsOffsets[4][5], uint8 rotation);
void track_paint_util_right_quarter_turn_5_tiles_paint_2(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[][5]);
diff --git a/src/ride/transport/suspended_monorail.c b/src/ride/transport/suspended_monorail.c
index 6687382e15..c1d81e7a2a 100644
--- a/src/ride/transport/suspended_monorail.c
+++ b/src/ride/transport/suspended_monorail.c
@@ -46,6 +46,25 @@ static void suspended_monorail_track_flat(uint8 rideIndex, uint8 trackSequence,
paint_util_set_general_support_height(height + 48, 0x20);
}
+static void suspended_monorail_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
+{
+ static const uint32 imageIds[4][3] = {
+ { SPR_STATION_BASE_C_SW_NE, 25853, SPR_STATION_INVERTED_BAR_F_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 25854, SPR_STATION_INVERTED_BAR_F_NW_SE },
+ { SPR_STATION_BASE_C_SW_NE, 25853, SPR_STATION_INVERTED_BAR_F_SW_NE },
+ { SPR_STATION_BASE_C_NW_SE, 25854, SPR_STATION_INVERTED_BAR_F_NW_SE },
+ };
+
+ sub_98197C_rotated(direction, imageIds[direction][0] | gTrackColours[SCHEME_MISC], 0, 0, 32, 28, 1, height, 0, 2, height);
+ sub_98197C_rotated(direction, imageIds[direction][1] | gTrackColours[SCHEME_TRACK], 0, 0, 32, 20, 3, height + 32, 0, 6, height + 32);
+ sub_98199C_rotated(direction, imageIds[direction][2] | gTrackColours[SCHEME_SUPPORTS], 0, 6, 32, 20, 3, height + 32, 0, 6, height + 32);
+ track_paint_util_draw_station_metal_supports_2(direction, height, gTrackColours[SCHEME_SUPPORTS], 3);
+ track_paint_util_draw_station_inverted(rideIndex, trackSequence, direction, height, mapElement);
+ paint_util_push_tunnel_rotated(direction, height, TUNNEL_9);
+ paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
+ paint_util_set_general_support_height(height + 48, 0x20);
+}
+
static void suspended_monorail_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
{
switch (direction) {
@@ -1126,6 +1145,10 @@ TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int trackType,
switch (trackType) {
case TRACK_ELEM_FLAT:
return suspended_monorail_track_flat;
+ case TRACK_ELEM_END_STATION:
+ case TRACK_ELEM_BEGIN_STATION:
+ case TRACK_ELEM_MIDDLE_STATION:
+ return suspended_monorail_track_station;
case TRACK_ELEM_25_DEG_UP:
return suspended_monorail_track_25_deg_up;
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
diff --git a/test/testpaint/intercept.c b/test/testpaint/intercept.c
index b2a17a114d..468f1853cc 100644
--- a/test/testpaint/intercept.c
+++ b/test/testpaint/intercept.c
@@ -511,6 +511,7 @@ static bool testTrackElement(uint8 rideType, uint8 trackType, utf8string *error)
unk_140E9A8 = &dpi;
rct_ride ride = { 0 };
+ // ride.entrance_style = RIDE_ENTRANCE_STYLE_CANVAS_TENT;
rct_ride_entry rideEntry = { 0 };
rct_ride_entry_vehicle vehicleEntry = {.base_image_id = 0x70000};
diff --git a/test/testpaint/testpaint.vcxproj b/test/testpaint/testpaint.vcxproj
index 281bccfa48..16162b45f2 100644
--- a/test/testpaint/testpaint.vcxproj
+++ b/test/testpaint/testpaint.vcxproj
@@ -66,6 +66,8 @@
__TESTPAINT__;DEBUG;NO_VEHICLES;OPENGL_NO_LINK;_CRT_SECURE_NO_WARNINGS;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
true
4200
+ true
+ false
@@ -78,6 +80,7 @@
__TESTPAINT__;NO_VEHICLES;OPENGL_NO_LINK;_CRT_SECURE_NO_WARNINGS;_USE_MATH_DEFINES;CURL_STATICLIB;SDL_MAIN_HANDLED;_WINSOCK_DEPRECATED_NO_WARNINGS;%(PreprocessorDefinitions)
true
4200
+ true
true