forked from rosebudai/OpenRCT2-Web
Partially integrate track colours
This commit is contained in:
1 parent
ba453db01f
commit
b80377f5da
40 files changed
+956
-939
No files matched your search
File diff suppressed because it is too large.
Load diff
@@ -238,7 +238,7 @@ static void paint_virginia_reel_track_flat(uint8 rideIndex, uint8 trackSequence,
|
||||
sprites = virginia_reel_track_pieces_flat_lift_hill;
|
||||
}
|
||||
|
||||
uint32 imageId = sprites[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = sprites[direction] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction & 1) {
|
||||
sub_98197C(imageId, 0, 0, 27, 32, 2, height, 2, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
@@ -247,7 +247,7 @@ static void paint_virginia_reel_track_flat(uint8 rideIndex, uint8 trackSequence,
|
||||
paint_util_push_tunnel_left(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -261,7 +261,7 @@ static void paint_virginia_reel_track_25_deg_up(uint8 rideIndex, uint8 trackSequ
|
||||
sprites = virginia_reel_track_pieces_25_deg_up_lift_hill;
|
||||
}
|
||||
|
||||
uint32 imageId = sprites[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = sprites[direction] | gTrackColours[SCHEME_TRACK];
|
||||
paint_struct * ps;
|
||||
|
||||
if (direction & 1) {
|
||||
@@ -276,19 +276,19 @@ static void paint_virginia_reel_track_25_deg_up(uint8 rideIndex, uint8 trackSequ
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(0, 9, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 9, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_7);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(1, 10, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 10, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(0, 11, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 11, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(1, 12, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 12, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_7);
|
||||
break;
|
||||
}
|
||||
@@ -305,38 +305,38 @@ static void paint_virginia_reel_track_flat_to_25_deg_up(uint8 rideIndex, uint8 t
|
||||
sprites = virginia_reel_track_pieces_flat_to_25_deg_up_lift_hill;
|
||||
}
|
||||
|
||||
uint32 imageId = sprites[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = sprites[direction] | gTrackColours[SCHEME_TRACK];
|
||||
paint_struct * ps;
|
||||
switch (direction) {
|
||||
case 0:
|
||||
sub_98197C(imageId, 0, 0, 32, 27, 2, height, 0, 2, height, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 1, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 1, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
ps = sub_98197C(imageId, 0, 0, 27, 32, 2, height, 2, 0, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
wooden_a_supports_paint_setup(1, 2, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 2, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 27, 2, height, 0, 2, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
wooden_a_supports_paint_setup(0, 3, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 3, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
sub_98197C(imageId, 0, 0, 27, 32, 2, height, 2, 0, height, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 4, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 4, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 48, 0x20);
|
||||
@@ -350,7 +350,7 @@ static void paint_virginia_reel_track_25_deg_up_to_flat(uint8 rideIndex, uint8 t
|
||||
sprites = virginia_reel_track_pieces_25_deg_up_to_flat_lift_hill;
|
||||
}
|
||||
|
||||
uint32 imageId = sprites[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = sprites[direction] | gTrackColours[SCHEME_TRACK];
|
||||
paint_struct * ps;
|
||||
|
||||
if (direction & 1) {
|
||||
@@ -365,19 +365,19 @@ static void paint_virginia_reel_track_25_deg_up_to_flat(uint8 rideIndex, uint8 t
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(0, 5, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 5, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(1, 6, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 6, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(0, 7, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 7, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(1, 8, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 8, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -410,24 +410,24 @@ static void paint_virginia_reel_station(uint8 rideIndex, uint8 trackSequence, ui
|
||||
uint32 imageId;
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 2, height - 2, 0, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_VIRGINIA_REEL_FLAT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_VIRGINIA_REEL_FLAT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 27, 32, 2, height, 2, 0, height, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 2, height - 2, 2, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_VIRGINIA_REEL_FLAT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_VIRGINIA_REEL_FLAT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 20, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -439,7 +439,7 @@ static const uint8 virginia_reel_left_quarter_turn_supports[] = {5, 2, 3, 4};
|
||||
/** rct2: 0x00811304 */
|
||||
static void paint_virginia_reel_track_left_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(2, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), virginia_reel_track_pieces_flat_quarter_turn_3_tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(2, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], virginia_reel_track_pieces_flat_quarter_turn_3_tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_tunnel(height - 16, direction, trackSequence);
|
||||
|
||||
switch (trackSequence) {
|
||||
@@ -448,7 +448,7 @@ static void paint_virginia_reel_track_left_quarter_turn_3_tiles(uint8 rideIndex,
|
||||
break;
|
||||
case 0:
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(virginia_reel_left_quarter_turn_supports[direction], 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(virginia_reel_left_quarter_turn_supports[direction], 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENTS_ALL, direction), 0xFFFF, 0);
|
||||
break;
|
||||
}
|
||||
@@ -468,22 +468,22 @@ static void paint_virginia_reel_track_right_quarter_turn_3_tiles(uint8 rideIndex
|
||||
/** rct2: 0x00811324 */
|
||||
static void paint_virginia_reel_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(2, height, 0, direction, RCT2_GLOBAL(0x00F44198, uint32), virginia_reel_track_pieces_flat_quarter_turn_1_tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(2, height, 0, direction, gTrackColours[SCHEME_TRACK], virginia_reel_track_pieces_flat_quarter_turn_1_tile, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(5, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(2, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(2, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(3, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(3, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(4, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
+31
-31
@@ -165,7 +165,7 @@ static const uint32 car_ride_track_pieces_quarter_turn_3_tiles[4][3] = {
|
||||
/** rct2: 0x006F72C8 */
|
||||
static void paint_car_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 1, height, get_current_rotation());
|
||||
@@ -179,7 +179,7 @@ static void paint_car_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uint
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
@@ -187,7 +187,7 @@ static void paint_car_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uint
|
||||
/** rct2: 0x006F72D8 */
|
||||
static void paint_car_ride_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_25_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_25_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 2, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
@@ -210,7 +210,7 @@ static void paint_car_ride_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
break;
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 56, 0x20);
|
||||
}
|
||||
@@ -218,7 +218,7 @@ static void paint_car_ride_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
/** rct2: 0x006F72E8 */
|
||||
static void paint_car_ride_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_flat_to_25_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_flat_to_25_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 2, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
@@ -241,7 +241,7 @@ static void paint_car_ride_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
break;
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 3, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 48, 0x20);
|
||||
}
|
||||
@@ -249,7 +249,7 @@ static void paint_car_ride_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
/** rct2: 0x006F72F8 */
|
||||
static void paint_car_ride_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_25_deg_up_to_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_25_deg_up_to_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 2, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
@@ -272,7 +272,7 @@ static void paint_car_ride_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackS
|
||||
break;
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 40, 0x20);
|
||||
}
|
||||
@@ -301,14 +301,14 @@ static void paint_car_ride_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
uint32 imageId;
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 1, height - 2, 0, 2, height, get_current_rotation());
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 1, height - 2, 2, 0, height, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = car_ride_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = car_ride_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98199C(imageId, 0, 6, 32, 20, 1, height, 0, 0, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -322,11 +322,11 @@ static void paint_car_ride_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
} else {
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
|
||||
@@ -338,13 +338,13 @@ static void paint_car_ride_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
/** rct2: 0x006F7378 */
|
||||
static void paint_car_ride_track_right_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), car_ride_track_pieces_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], car_ride_track_pieces_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(height, direction, trackSequence, TUNNEL_0);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -370,7 +370,7 @@ static void paint_car_ride_track_left_quarter_turn_3_tiles(uint8 rideIndex, uint
|
||||
/** rct2: 0x006F7388 */
|
||||
static void paint_car_ride_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_left_quarter_turn_1_tile[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_left_quarter_turn_1_tile[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
switch(direction) {
|
||||
case 0: sub_98197C(imageId, 6, 0, 26, 24, 1, height, 6, 2, height, get_current_rotation()); break;
|
||||
@@ -379,7 +379,7 @@ static void paint_car_ride_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8
|
||||
case 3: sub_98196C(imageId, 6, 6, 24, 24, 1, height, get_current_rotation()); break;
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
|
||||
track_paint_util_left_quarter_turn_1_tile_tunnel(height, direction, trackSequence);
|
||||
|
||||
@@ -396,7 +396,7 @@ static void paint_car_ride_track_right_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
/** rct2: 0x006F73A8 */
|
||||
static void paint_car_ride_track_spinning_tunnel(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 1, height, get_current_rotation());
|
||||
@@ -412,7 +412,7 @@ static void paint_car_ride_track_spinning_tunnel(uint8 rideIndex, uint8 trackSeq
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -423,7 +423,7 @@ static void paint_car_ride_track_60_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = car_ride_track_pieces_60_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_60_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
@@ -457,7 +457,7 @@ static void paint_car_ride_track_60_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 32, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 32, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -469,7 +469,7 @@ static void paint_car_ride_track_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 t
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = car_ride_track_pieces_25_deg_up_to_60_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_25_deg_up_to_60_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
@@ -478,7 +478,7 @@ static void paint_car_ride_track_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 t
|
||||
}
|
||||
|
||||
if (car_ride_track_pieces_25_deg_up_to_60_deg_up[direction][1] != 0) {
|
||||
imageId = car_ride_track_pieces_25_deg_up_to_60_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = car_ride_track_pieces_25_deg_up_to_60_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 66, height, 0, 27, height, get_current_rotation());
|
||||
@@ -503,7 +503,7 @@ static void paint_car_ride_track_25_deg_up_to_60_deg_up(uint8 rideIndex, uint8 t
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 12, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 12, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -515,7 +515,7 @@ static void paint_car_ride_track_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 t
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = car_ride_track_pieces_60_deg_up_to_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_60_deg_up_to_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
@@ -524,7 +524,7 @@ static void paint_car_ride_track_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 t
|
||||
}
|
||||
|
||||
if (car_ride_track_pieces_60_deg_up_to_25_deg_up[direction][1] != 0) {
|
||||
imageId = car_ride_track_pieces_60_deg_up_to_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = car_ride_track_pieces_60_deg_up_to_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 66, height, 0, 27, height, get_current_rotation());
|
||||
@@ -549,7 +549,7 @@ static void paint_car_ride_track_60_deg_up_to_25_deg_up(uint8 rideIndex, uint8 t
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 20, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 20, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -577,7 +577,7 @@ static void paint_car_ride_track_60_deg_down_to_25_deg_down(uint8 rideIndex, uin
|
||||
/** rct2: 0x006F7418 */
|
||||
static void paint_car_ride_track_log_bumps(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = car_ride_track_pieces_log_bumps[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = car_ride_track_pieces_log_bumps[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 1, height, get_current_rotation());
|
||||
@@ -591,7 +591,7 @@ static void paint_car_ride_track_log_bumps(uint8 rideIndex, uint8 trackSequence,
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
|
||||
@@ -37,7 +37,7 @@ static void paint_circus_show_tent(uint8 rideIndex, uint8 direction, sint8 al, s
|
||||
g_currently_drawn_item = GET_VEHICLE(ride->vehicles[0]);
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
@@ -61,9 +61,9 @@ static void paint_circus_show(uint8 rideIndex, uint8 trackSequence, uint8 direct
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32_t), NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F4419C, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_SUPPORTS], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 1: paint_circus_show_tent(rideIndex, direction, 32, 32, height); break;
|
||||
|
||||
@@ -60,7 +60,7 @@ static void sub_88ABA4(uint8 direction, uint8 x_offset, uint8 y_offset, uint32 s
|
||||
}
|
||||
|
||||
|
||||
uint32 image_id = (direction + ride_type->vehicles[0].base_image_id) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 image_id = (direction + ride_type->vehicles[0].base_image_id) | gTrackColours[SCHEME_MISC];
|
||||
|
||||
rct_crooked_house_bound_box boundBox = crooked_house_data[segment];
|
||||
sub_98197C(image_id, x_offset, y_offset, boundBox.length_x, boundBox.length_y, 127, height + 3, boundBox.offset_x, boundBox.offset_y, height + 3, get_current_rotation());
|
||||
@@ -76,9 +76,9 @@ static void paint_crooked_house(uint8 rideIndex, uint8 trackSequence, uint8 dire
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32_t), NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch(trackSequence) {
|
||||
case 3: sub_88ABA4(direction, 32, 224, 0, height); break;
|
||||
|
||||
@@ -40,7 +40,7 @@ const uint32 dodgems_fence_sprites[] = {
|
||||
|
||||
static void paint_dodgems_roof(int height, int offset)
|
||||
{
|
||||
uint32 image_id = (SPR_DODGEMS_ROOF_FRAME + offset) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 image_id = (SPR_DODGEMS_ROOF_FRAME + offset) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(image_id, 0, 0, 32, 32, 2, height, get_current_rotation());
|
||||
|
||||
image_id = (SPR_DODGEMS_ROOF_GLASS + offset) | (0xF << 19) | (0x1 << 24) | 0x40000000;
|
||||
@@ -55,12 +55,12 @@ static void paint_dodgems(uint8 rideIndex, uint8 trackSequence, uint8 direction,
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
uint32 imageId = SPR_DODGEMS_FLOOR | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = SPR_DODGEMS_FLOOR | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 30, 30, 1, height, 1, 1, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F4419C, uint32), height, dodgems_fence_sprites, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_SUPPORTS], height, dodgems_fence_sprites, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
case 2:
|
||||
|
||||
@@ -85,14 +85,14 @@ static void paint_ferris_wheel_structure(uint8 rideIndex, uint8 direction, sint8
|
||||
imageOffset = vehicle->vehicle_sprite_type % 8;
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
|
||||
ferris_wheel_bound_box boundBox = ferris_wheel_data[direction];
|
||||
|
||||
imageId = (22150 + (direction & 1) * 2) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (22150 + (direction & 1) * 2) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, xOffset, yOffset, boundBox.length_x, boundBox.length_y, 127, height, boundBox.offset_x, boundBox.offset_y, height, get_current_rotation());
|
||||
|
||||
imageId = (baseImageId + direction * 8 + imageOffset) | imageColourFlags;
|
||||
@@ -118,7 +118,7 @@ static void paint_ferris_wheel_structure(uint8 rideIndex, uint8 direction, sint8
|
||||
}
|
||||
}
|
||||
|
||||
imageId = (22150 + (direction & 1) * 2 + 1) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (22150 + (direction & 1) * 2 + 1) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, xOffset, yOffset, boundBox.length_x, boundBox.length_y, 127, height, boundBox.offset_x, boundBox.offset_y, height, get_current_rotation());
|
||||
|
||||
g_currently_drawn_item = savedMapElement;
|
||||
@@ -143,13 +143,13 @@ static void paint_ferris_wheel(uint8 rideIndex, uint8 trackSequence, uint8 direc
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
uint32 imageId;
|
||||
uint8 rotation = get_current_rotation();
|
||||
uint32 colourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 colourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (edges & EDGE_NW && track_paint_util_has_fence(EDGE_NW, position, mapElement, ride, rotation)) {
|
||||
imageId = SPR_FENCE_ROPE_NW | colourFlags;
|
||||
sub_98199C(imageId, 0, 0, 32, 1, 7, height, 0, 2, height + 2, rotation);
|
||||
|
||||
@@ -48,12 +48,12 @@ static void paint_flying_saucers(uint8 rideIndex, uint8 trackSequence, uint8 dir
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
uint32 imageId = SPR_FLYING_SAUCERS_FLOOR | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_FLYING_SAUCERS_FLOOR | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 30, 30, 1, height, 1, 1, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, flying_saucers_fence_sprites, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, flying_saucers_fence_sprites, get_current_rotation());
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 48, 0x20);
|
||||
|
||||
@@ -152,7 +152,7 @@ static void paint_ghost_train_track_flat(uint8 rideIndex, uint8 trackSequence, u
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = ghost_train_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = ghost_train_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
@@ -167,7 +167,7 @@ static void paint_ghost_train_track_flat(uint8 rideIndex, uint8 trackSequence, u
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -179,14 +179,14 @@ static void paint_ghost_train_track_25_deg_up(uint8 rideIndex, uint8 trackSequen
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = ghost_train_track_pieces_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = ghost_train_track_pieces_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
} else {
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = ghost_train_track_pieces_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ghost_train_track_pieces_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 23, height, 0, 27, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -194,7 +194,7 @@ static void paint_ghost_train_track_25_deg_up(uint8 rideIndex, uint8 trackSequen
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
|
||||
@@ -222,14 +222,14 @@ static void paint_ghost_train_track_flat_to_25_deg_up(uint8 rideIndex, uint8 tra
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = ghost_train_track_pieces_flat_to_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = ghost_train_track_pieces_flat_to_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
} else {
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = ghost_train_track_pieces_flat_to_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ghost_train_track_pieces_flat_to_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 15, height, 0, 27, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -237,7 +237,7 @@ static void paint_ghost_train_track_flat_to_25_deg_up(uint8 rideIndex, uint8 tra
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 3, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
switch (direction) {
|
||||
@@ -264,14 +264,14 @@ static void paint_ghost_train_track_25_deg_up_to_flat(uint8 rideIndex, uint8 tra
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = ghost_train_track_pieces_25_deg_up_to_flat[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = ghost_train_track_pieces_25_deg_up_to_flat[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
} else {
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = ghost_train_track_pieces_25_deg_up_to_flat[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ghost_train_track_pieces_25_deg_up_to_flat[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 15, height, 0, 27, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -279,7 +279,7 @@ static void paint_ghost_train_track_25_deg_up_to_flat(uint8 rideIndex, uint8 tra
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
switch (direction) {
|
||||
@@ -325,14 +325,14 @@ static void paint_ghost_train_station(uint8 rideIndex, uint8 trackSequence, uint
|
||||
uint32 imageId;
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 3, height - 2, 0, 2, height, get_current_rotation());
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 3, height - 2, 2, 0, height, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = ghost_train_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ghost_train_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98199C(imageId, 0, 0, 32, 20, 3, height, 0, 0, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -346,11 +346,11 @@ static void paint_ghost_train_station(uint8 rideIndex, uint8 trackSequence, uint
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
} else {
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
|
||||
@@ -362,13 +362,13 @@ static void paint_ghost_train_station(uint8 rideIndex, uint8 trackSequence, uint
|
||||
/** rct2: 0x00770C9C */
|
||||
static void paint_ghost_train_track_right_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), ghost_train_track_pieces_quarter_turn_3_tiles, NULL, defaultRightQuarterTurn3TilesBoundLengths, defaultRightQuarterTurn3TilesBoundOffsets, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], ghost_train_track_pieces_quarter_turn_3_tiles, NULL, defaultRightQuarterTurn3TilesBoundLengths, defaultRightQuarterTurn3TilesBoundOffsets, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(height, direction, trackSequence, TUNNEL_0);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -393,10 +393,10 @@ static void paint_ghost_train_track_left_quarter_turn_3_tiles(uint8 rideIndex, u
|
||||
/** rct2: 0x00770CAC */
|
||||
static void paint_ghost_train_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(3, height, 0, direction, RCT2_GLOBAL(0x00F44198, uint32), ghost_train_track_pieces_quarter_turn_1_tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(3, height, 0, direction, gTrackColours[SCHEME_TRACK], ghost_train_track_pieces_quarter_turn_1_tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_tunnel(height, direction, trackSequence);
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
@@ -410,7 +410,7 @@ static void paint_ghost_train_track_right_quarter_turn_1_tile(uint8 rideIndex, u
|
||||
/** rct2: 0x00770CCC */
|
||||
static void paint_ghost_train_track_spinning_tunnel(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = ghost_train_track_pieces_spinning_tunnel_track[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = ghost_train_track_pieces_spinning_tunnel_track[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 28, 20, 3, height, 2, 6, height, get_current_rotation());
|
||||
@@ -426,7 +426,7 @@ static void paint_ghost_train_track_spinning_tunnel(uint8 rideIndex, uint8 track
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -437,7 +437,7 @@ static void paint_ghost_train_track_brakes(uint8 rideIndex, uint8 trackSequence,
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = ghost_train_track_pieces_brakes[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = ghost_train_track_pieces_brakes[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
@@ -452,7 +452,7 @@ static void paint_ghost_train_track_brakes(uint8 rideIndex, uint8 trackSequence,
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
|
||||
@@ -62,7 +62,7 @@ static void paint_haunted_house_structure(uint8 rideIndex, uint8 direction, sint
|
||||
frameNum = vehicle->vehicle_sprite_type;
|
||||
}
|
||||
|
||||
uint32 imageId = (baseImageId + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageId = (baseImageId + direction) | gTrackColours[SCHEME_MISC];
|
||||
haunted_house_bound_box boundBox = haunted_house_data[part];
|
||||
sub_98197C(imageId, xOffset, yOffset, boundBox.length_x, boundBox.length_y, 127, height, boundBox.offset_x, boundBox.offset_y, height, get_current_rotation());
|
||||
|
||||
@@ -74,7 +74,7 @@ static void paint_haunted_house_structure(uint8 rideIndex, uint8 direction, sint
|
||||
case 2: imageId = baseImageId + 39 + frameNum; break;
|
||||
case 3: imageId = baseImageId + 57 + frameNum; break;
|
||||
}
|
||||
imageId = imageId | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = imageId | gTrackColours[SCHEME_MISC];
|
||||
sub_98199C(imageId, xOffset, yOffset, boundBox.length_x, boundBox.length_y, 127, height, boundBox.offset_x, boundBox.offset_y, height, get_current_rotation());
|
||||
}
|
||||
|
||||
@@ -93,11 +93,11 @@ static void paint_haunted_house(uint8 rideIndex, uint8 trackSequence, uint8 dire
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 3: paint_haunted_house_structure(rideIndex, direction, 32, -32, 0, height + 3); break;
|
||||
|
||||
@@ -56,10 +56,10 @@ static void maze_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 directi
|
||||
|
||||
uint32 rotation = get_current_rotation();
|
||||
// draw ground
|
||||
int image_id = SPR_TERRAIN_DIRT | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
int image_id = SPR_TERRAIN_DIRT | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(image_id, 0, 0, 32, 32, 0, height, rotation);
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A4, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_3], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL & ~SEGMENT_C4, 0xFFFF, 0);
|
||||
|
||||
@@ -71,7 +71,7 @@ static void maze_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 directi
|
||||
case 3: base_image_id = SPR_MAZE_BASE_WOOD; break;
|
||||
}
|
||||
|
||||
base_image_id |= RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
base_image_id |= gTrackColours[SCHEME_MISC];
|
||||
|
||||
|
||||
image_id = base_image_id + SPR_MAZE_OFFSET_WALL_CENTER;
|
||||
|
||||
@@ -66,7 +66,7 @@ static void paint_merry_go_round_structure(uint8 rideIndex, uint8 direction, sin
|
||||
|
||||
uint32 imageOffset = rotationOffset & 0x1F;
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
@@ -112,11 +112,11 @@ static void paint_merry_go_round(uint8 rideIndex, uint8 trackSequence, uint8 dir
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch(trackSequence) {
|
||||
case 1: paint_merry_go_round_structure(rideIndex, direction, 32, 32, height); break;
|
||||
|
||||
+54
-54
@@ -467,30 +467,30 @@ static void paint_mini_golf_track_flat(uint8 rideIndex, uint8 trackSequence, uin
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = SPR_MINI_GOLF_FLAT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 1, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height, TUNNEL_10);
|
||||
} else {
|
||||
imageId = SPR_MINI_GOLF_FLAT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height, TUNNEL_10);
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
|
||||
if (mini_golf_paint_util_should_draw_fence(mapElement)) {
|
||||
if (direction & 1) {
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 7, height, 10, 0, height + 2, get_current_rotation());
|
||||
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 7, height, 22, 0, height + 2, get_current_rotation());
|
||||
} else {
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 7, height, 0, 10, height + 2, get_current_rotation());
|
||||
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 7, height, 0, 22, height + 2, get_current_rotation());
|
||||
}
|
||||
}
|
||||
@@ -503,16 +503,16 @@ static void paint_mini_golf_track_25_deg_up(uint8 rideIndex, uint8 trackSequence
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
imageId = mini_golf_track_sprites_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
|
||||
imageId = mini_golf_track_sprites_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 1, 15, height, 0, 10, height + 2, get_current_rotation());
|
||||
|
||||
imageId = mini_golf_track_sprites_25_deg_up[direction][2] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_25_deg_up[direction][2] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 1, 15, height, 0, 22, height + 2, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
@@ -538,16 +538,16 @@ static void paint_mini_golf_track_flat_to_25_deg_up(uint8 rideIndex, uint8 track
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
imageId = mini_golf_track_sprites_flat_to_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_flat_to_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
|
||||
imageId = mini_golf_track_sprites_flat_to_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_flat_to_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 1, 11, height, 0, 10, height + 2, get_current_rotation());
|
||||
|
||||
imageId = mini_golf_track_sprites_flat_to_25_deg_up[direction][2] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_flat_to_25_deg_up[direction][2] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 1, 11, height, 0, 22, height + 2, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
@@ -573,16 +573,16 @@ static void paint_mini_golf_track_25_deg_up_to_flat(uint8 rideIndex, uint8 track
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
imageId = mini_golf_track_sprites_25_deg_up_to_flat[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_25_deg_up_to_flat[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
|
||||
imageId = mini_golf_track_sprites_25_deg_up_to_flat[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_25_deg_up_to_flat[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 1, 11, height, 0, 10, height + 2, get_current_rotation());
|
||||
|
||||
imageId = mini_golf_track_sprites_25_deg_up_to_flat[direction][2] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_25_deg_up_to_flat[direction][2] | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 1, 11, height, 0, 22, height + 2, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
@@ -630,20 +630,20 @@ static void paint_mini_golf_station(uint8 rideIndex, uint8 trackSequence, uint8
|
||||
uint32 imageId;
|
||||
bool hasFence;
|
||||
|
||||
imageId = SPR_MINI_GOLF_STATION_FLOOR | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_STATION_FLOOR | gTrackColours[SCHEME_TRACK];
|
||||
mini_golf_paint_util_7c(direction, imageId, 0, 0, 32, 28, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
if (direction & 1) {
|
||||
hasFence = track_paint_util_has_fence(EDGE_NE, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, -10, 0, 1, 32, 7, height, 0, 0, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_NE, hasFence, entranceStyle, direction, height);
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 10, 0, 1, 32, 7, height, 31, 0, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SW, hasFence, entranceStyle, direction, height);
|
||||
@@ -653,14 +653,14 @@ static void paint_mini_golf_station(uint8 rideIndex, uint8 trackSequence, uint8
|
||||
} else {
|
||||
hasFence = track_paint_util_has_fence(EDGE_NW, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_BACK_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, -10, 32, 1, 7, height, 0, 0, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_NW, hasFence, entranceStyle, direction, height);
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_MINI_GOLF_FLAT_FENCE_FRONT_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 10, 32, 1, 7, height, 0, 31, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SE, hasFence, entranceStyle, direction, height);
|
||||
@@ -668,7 +668,7 @@ static void paint_mini_golf_station(uint8 rideIndex, uint8 trackSequence, uint8
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -679,9 +679,9 @@ static void paint_mini_golf_track_left_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(1, height, 0, direction, RCT2_GLOBAL(0x00F44198, uint32), mini_golf_track_sprites_quarter_turn_1_tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(1, height, 0, direction, gTrackColours[SCHEME_TRACK], mini_golf_track_sprites_quarter_turn_1_tile, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||
|
||||
@@ -692,7 +692,7 @@ static void paint_mini_golf_track_left_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
paint_util_push_tunnel_left(height, TUNNEL_10);
|
||||
if (!shouldDrawFence) break;
|
||||
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 26, 24, 1, height, 6, 2, height, get_current_rotation());
|
||||
|
||||
break;
|
||||
@@ -700,7 +700,7 @@ static void paint_mini_golf_track_left_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
case 1:
|
||||
if (!shouldDrawFence) break;
|
||||
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 26, 26, 1, height, 0, 0, height, get_current_rotation());
|
||||
break;
|
||||
|
||||
@@ -708,7 +708,7 @@ static void paint_mini_golf_track_left_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
paint_util_push_tunnel_right(height, TUNNEL_10);
|
||||
if (!shouldDrawFence) break;
|
||||
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 24, 26, 1, height, 2, 6, height, get_current_rotation());
|
||||
break;
|
||||
|
||||
@@ -717,22 +717,22 @@ static void paint_mini_golf_track_left_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
paint_util_push_tunnel_right(height, TUNNEL_10);
|
||||
if (!shouldDrawFence) break;
|
||||
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_BACK_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 24, 24, 1, height, 6, 6, height, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
|
||||
if (shouldDrawFence) {
|
||||
// TODO: The back fence uses the same x/y offsets, but uses another paint function. See if this occurs more often.
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(0, height, 24, direction, RCT2_GLOBAL(0x00F44198, uint32), mini_golf_track_sprites_quarter_turn_1_tile_fence_front, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(0, height, 24, direction, gTrackColours[SCHEME_TRACK], mini_golf_track_sprites_quarter_turn_1_tile_fence_front, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_INSIDE_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_INSIDE_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 5, 5, 5, height, 24, 0, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_INSIDE_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MINI_GOLF_QUARTER_TURN_1_TILE_FENCE_INSIDE_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 5, 5, 5, height, 0, 24, height + 2, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
@@ -751,7 +751,7 @@ static void paint_mini_golf_hole_ab(uint8 trackSequence, uint8 direction, int he
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
bool drewSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
bool drewSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -765,17 +765,17 @@ static void paint_mini_golf_hole_ab(uint8 trackSequence, uint8 direction, int he
|
||||
rct_xy16 boundBox = (direction & 1) ? (rct_xy16) {26, 32} : (rct_xy16) {32, 26};
|
||||
rct_xy16 boundBoxOffset = (direction & 1) ? (rct_xy16) {3, 0} : (rct_xy16) {0, 3};
|
||||
|
||||
imageId = sprites[direction][trackSequence][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 0, height, boundBoxOffset.x, boundBoxOffset.y, height + 24, get_current_rotation());
|
||||
|
||||
if (drewSupports) {
|
||||
imageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
} else {
|
||||
imageId = sprites[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
}
|
||||
}
|
||||
@@ -797,7 +797,7 @@ static void paint_mini_golf_hole_c(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
{
|
||||
uint32 imageId;
|
||||
|
||||
bool drewSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
bool drewSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -811,7 +811,7 @@ static void paint_mini_golf_hole_c(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
rct_xy16 boundBox = (direction & 1) ? (rct_xy16) {26, 32} : (rct_xy16) {32, 26};
|
||||
rct_xy16 boundBoxOffset = (direction & 1) ? (rct_xy16) {3, 0} : (rct_xy16) {0, 3};
|
||||
|
||||
imageId = mini_golf_track_sprites_hole_c[direction][trackSequence][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_c[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
switch ((direction << 4) | trackSequence) {
|
||||
case 0x01:
|
||||
@@ -828,13 +828,13 @@ static void paint_mini_golf_hole_c(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
}
|
||||
|
||||
if (drewSupports) {
|
||||
imageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
|
||||
imageId = mini_golf_track_sprites_hole_c[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_c[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
} else {
|
||||
imageId = mini_golf_track_sprites_hole_c[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_c[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
}
|
||||
}
|
||||
@@ -846,7 +846,7 @@ static void paint_mini_golf_hole_d(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
|
||||
int supportType = direction & 1;
|
||||
if (trackSequence == 2) supportType = 1 - supportType;
|
||||
bool drewSupports = wooden_a_supports_paint_setup(supportType, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
bool drewSupports = wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -866,7 +866,7 @@ static void paint_mini_golf_hole_d(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
rct_xy16 boundBox = (supportType & 1) ? (rct_xy16) {26, 32} : (rct_xy16) {32, 26};
|
||||
rct_xy16 boundBoxOffset = (supportType & 1) ? (rct_xy16) {3, 0} : (rct_xy16) {0, 3};
|
||||
|
||||
imageId = mini_golf_track_sprites_hole_d[direction][trackSequence][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_d[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
switch ((direction << 4) | trackSequence) {
|
||||
case 0x01:
|
||||
@@ -894,13 +894,13 @@ static void paint_mini_golf_hole_d(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
}
|
||||
|
||||
if (drewSupports) {
|
||||
imageId = (supportType & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = (supportType & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
|
||||
imageId = mini_golf_track_sprites_hole_d[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_d[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
} else {
|
||||
imageId = mini_golf_track_sprites_hole_d[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_d[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
}
|
||||
}
|
||||
@@ -912,7 +912,7 @@ static void paint_mini_golf_hole_e(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
|
||||
int supportType = direction & 1;
|
||||
if (trackSequence == 2) supportType = 1 - supportType;
|
||||
bool drewSupports = wooden_a_supports_paint_setup(supportType, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
bool drewSupports = wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -932,7 +932,7 @@ static void paint_mini_golf_hole_e(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
rct_xy16 boundBox = (supportType & 1) ? (rct_xy16) {26, 32} : (rct_xy16) {32, 26};
|
||||
rct_xy16 boundBoxOffset = (supportType & 1) ? (rct_xy16) {3, 0} : (rct_xy16) {0, 3};
|
||||
|
||||
imageId = mini_golf_track_sprites_hole_e[direction][trackSequence][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_e[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
switch ((direction << 4) | trackSequence) {
|
||||
case 0x01:
|
||||
@@ -959,13 +959,13 @@ static void paint_mini_golf_hole_e(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
}
|
||||
|
||||
if (drewSupports) {
|
||||
imageId = (supportType & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = (supportType & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
|
||||
imageId = mini_golf_track_sprites_hole_e[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_e[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
} else {
|
||||
imageId = mini_golf_track_sprites_hole_e[direction][trackSequence][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = mini_golf_track_sprites_hole_e[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, boundBox.x, boundBox.y, 1, height, boundBoxOffset.x, boundBoxOffset.y, height, get_current_rotation());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,24 +30,24 @@ static void paint_mini_helicopters_track_station(uint8 rideIndex, uint8 trackSeq
|
||||
uint32 imageId;
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 1, height - 2, 0, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 32, 20, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 1, height - 2, 2, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 20, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
}
|
||||
|
||||
@@ -64,17 +64,17 @@ static void paint_mini_helicopters_track_flat(uint8 rideIndex, uint8 trackSequen
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
} else {
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 4, -1, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 4, -1, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -89,29 +89,29 @@ static void paint_mini_helicopters_track_flat_to_25_deg_up(uint8 rideIndex, uint
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height, TUNNEL_0);
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height, TUNNEL_2);
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height, TUNNEL_2);
|
||||
break;
|
||||
case 3:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_TO_25_DEG_UP_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
break;
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(4, 4, -4, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -4, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -126,29 +126,29 @@ static void paint_mini_helicopters_track_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_1);
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_2);
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_2);
|
||||
break;
|
||||
case 3:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_1);
|
||||
break;
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(4, 4, -9, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -9, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -163,29 +163,29 @@ static void paint_mini_helicopters_track_25_deg_up_to_flat(uint8 rideIndex, uint
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_0);
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_12);
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_12);
|
||||
break;
|
||||
case 3:
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_25_DEG_UP_TO_FLAT_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, height, 6, 0, height, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_0);
|
||||
break;
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(4, 4, -7, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -7, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -213,19 +213,19 @@ static void paint_mini_helicopters_track_25_deg_down_to_flat(uint8 rideIndex, ui
|
||||
/** rct2: 0x0081F3E8 */
|
||||
static void paint_mini_helicopters_track_left_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_tunnel(height, direction, trackSequence);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_B4, direction), 0xFFFF, 0);
|
||||
break;
|
||||
case 2:
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_B8, direction), 0xFFFF, 0);
|
||||
break;
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_C0, direction), 0xFFFF, 0);
|
||||
break;
|
||||
}
|
||||
@@ -245,7 +245,7 @@ static void paint_mini_helicopters_track_right_quarter_turn_3_tiles(uint8 rideIn
|
||||
/** rct2: 0x0081F408 */
|
||||
static void paint_mini_helicopters_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(1, height, 0, direction, RCT2_GLOBAL(0x00F44198, uint32), trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(1, height, 0, direction, gTrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_tunnel(height, direction, trackSequence);
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||
|
||||
@@ -187,7 +187,7 @@ static paint_struct * paint_monorail_cycles_util_7c(
|
||||
/** rct2: 0x0088AD48 */
|
||||
static void paint_monorail_cycles_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
uint32 imageId = monorail_cycles_track_pieces_flat[(direction & 1)] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_cycles_track_pieces_flat[(direction & 1)] | gTrackColours[SCHEME_TRACK];
|
||||
paint_monorail_cycles_util_7c((bool) (direction & 1), imageId, 0, 0, 32, 20, 3, height, 0, 6, height, get_current_rotation());
|
||||
|
||||
if (direction & 1) {
|
||||
@@ -196,7 +196,7 @@ static void paint_monorail_cycles_track_flat(uint8 rideIndex, uint8 trackSequenc
|
||||
paint_util_push_tunnel_left(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 4, -1, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 4, -1, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -208,24 +208,24 @@ static void paint_monorail_cycles_station(uint8 rideIndex, uint8 trackSequence,
|
||||
uint32 imageId;
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 1, height - 2, 0, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_MONORAIL_CYCLES_FLAT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MONORAIL_CYCLES_FLAT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 32, 20, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 1, height - 2, 2, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_MONORAIL_CYCLES_FLAT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_MONORAIL_CYCLES_FLAT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 20, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
}
|
||||
|
||||
@@ -238,19 +238,19 @@ static void paint_monorail_cycles_station(uint8 rideIndex, uint8 trackSequence,
|
||||
/** rct2: 0x0088AD88 */
|
||||
static void paint_monorail_cycles_track_left_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), monorail_cycles_track_pieces_flat_quarter_turn_3_tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], monorail_cycles_track_pieces_flat_quarter_turn_3_tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_tunnel(height, direction, trackSequence);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_B4, direction), 0xFFFF, 0);
|
||||
break;
|
||||
case 2:
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_B8, direction), 0xFFFF, 0);
|
||||
break;
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -1, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_C0, direction), 0xFFFF, 0);
|
||||
break;
|
||||
}
|
||||
@@ -284,28 +284,28 @@ static const sint8 monorail_cycles_track_right_quarter_turn_5_tiles_support_spec
|
||||
/** rct2: 0x0088ADB8 */
|
||||
static void paint_monorail_cycles_track_right_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(1, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), monorail_cycles_track_pieces_flat_quarter_turn_5_tiles, NULL, defaultRightQuarterTurn5TilesBoundLengths, defaultRightQuarterTurn5TilesBoundOffsets, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(1, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], monorail_cycles_track_pieces_flat_quarter_turn_5_tiles, NULL, defaultRightQuarterTurn5TilesBoundLengths, defaultRightQuarterTurn5TilesBoundOffsets, get_current_rotation());
|
||||
|
||||
int supportHeight = height + monorail_cycles_track_right_quarter_turn_5_tiles_support_height_offset[direction][trackSequence];
|
||||
int supportSpecial = monorail_cycles_track_right_quarter_turn_5_tiles_support_special[direction][trackSequence];
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 4, 0, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 4, 0, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 2:
|
||||
if (direction == 0) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 8, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 1) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 7, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 2) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 5, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 3) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 6, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 0) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 8, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 1) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 7, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 2) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 5, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 3) metal_a_supports_paint_setup((direction & 1) ? 5 : 4, 6, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 5:
|
||||
if (direction == 0) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 7, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 1) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 5, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 2) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 6, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 3) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 8, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 0) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 7, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 1) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 5, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 2) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 6, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 3) metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 8, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 6:
|
||||
metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 4, supportSpecial, supportHeight, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 4, supportSpecial, supportHeight, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -350,7 +350,7 @@ static void paint_monorail_cycles_track_s_bend_left(uint8 rideIndex, uint8 track
|
||||
trackSequence = 3 - trackSequence;
|
||||
}
|
||||
|
||||
uint32 imageId = monorail_cycles_track_pieces_s_bend_left[direction&1][trackSequence] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_cycles_track_pieces_s_bend_left[direction&1][trackSequence] | gTrackColours[SCHEME_TRACK];
|
||||
switch (trackSequence) {
|
||||
case 0: paint_monorail_cycles_util_7c(direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation()); break;
|
||||
case 1: paint_monorail_cycles_util_7c(direction, imageId, 0, 0, 32, 26, 1, height, 0, 0, height, get_current_rotation()); break;
|
||||
@@ -364,9 +364,9 @@ static void paint_monorail_cycles_track_s_bend_left(uint8 rideIndex, uint8 track
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(4, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(4, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(4, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(4, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(4, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(4, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
} else {
|
||||
if (trackSequence == 3) {
|
||||
@@ -374,9 +374,9 @@ static void paint_monorail_cycles_track_s_bend_left(uint8 rideIndex, uint8 track
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(5, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(5, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(5, 4, 0, height - 2, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(5, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(5, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(5, 4, 0, height - 2, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -396,7 +396,7 @@ static void paint_monorail_cycles_track_s_bend_right(uint8 rideIndex, uint8 trac
|
||||
trackSequence = 3 - trackSequence;
|
||||
}
|
||||
|
||||
uint32 imageId = monorail_cycles_track_pieces_s_bend_right[direction&1][trackSequence] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_cycles_track_pieces_s_bend_right[direction&1][trackSequence] | gTrackColours[SCHEME_TRACK];
|
||||
switch (trackSequence) {
|
||||
case 0: paint_monorail_cycles_util_7c(direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height, get_current_rotation()); break;
|
||||
case 1: paint_monorail_cycles_util_7c(direction, imageId, 0, 0, 32, 26, 1, height, 0, 6, height, get_current_rotation()); break;
|
||||
@@ -410,9 +410,9 @@ static void paint_monorail_cycles_track_s_bend_right(uint8 rideIndex, uint8 trac
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(4, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(4, 8, 0, height - 2, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(4, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(4, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(4, 8, 0, height - 2, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(4, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
} else {
|
||||
if (trackSequence == 3) {
|
||||
@@ -420,9 +420,9 @@ static void paint_monorail_cycles_track_s_bend_right(uint8 rideIndex, uint8 trac
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(5, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(5, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(5, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(5, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(5, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(5, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -78,23 +78,23 @@ static void paint_observation_tower_base(uint8 rideIndex, uint8 trackSequence, u
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, fenceSpritesMetalB, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, fenceSpritesMetalB, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0) {
|
||||
imageId = SPR_OBSERVATION_TOWER_SEGMENT_BASE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_OBSERVATION_TOWER_SEGMENT_BASE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 8, 8, height + 3, get_current_rotation());
|
||||
|
||||
height += 32;
|
||||
imageId = SPR_OBSERVATION_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_OBSERVATION_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
height += 32;
|
||||
imageId = SPR_OBSERVATION_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_OBSERVATION_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
paint_util_set_vertical_tunnel(height + 32);
|
||||
@@ -124,12 +124,12 @@ static void paint_observation_tower_section(uint8 rideIndex, uint8 trackSequence
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 imageId = SPR_OBSERVATION_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_OBSERVATION_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
rct_map_element * nextMapElement = mapElement + 1;
|
||||
if (map_element_is_last_for_tile(mapElement) || mapElement->clearance_height != nextMapElement->base_height) {
|
||||
uint32 imageId = SPR_OBSERVATION_TOWER_SEGMENT_TOP | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_OBSERVATION_TOWER_SEGMENT_TOP | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
}
|
||||
|
||||
|
||||
@@ -60,7 +60,7 @@ static void paint_space_rings_structure(rct_ride * ride, uint8 direction, uint3
|
||||
frameNum += (sint8) vehicle->vehicle_sprite_type * 4;
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if ((ride->colour_scheme_type & 3) != RIDE_COLOUR_SCHEME_DIFFERENT_PER_TRAIN) {
|
||||
vehicleIndex = 0;
|
||||
}
|
||||
@@ -95,23 +95,23 @@ static void paint_space_rings(uint8 rideIndex, uint8 trackSequence, uint8 direct
|
||||
|
||||
uint32 imageId;
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 7:
|
||||
if (track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation())) {
|
||||
imageId = SPR_SPACE_RINGS_FENCE_SW | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_SPACE_RINGS_FENCE_SW | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 1, 28, 7, height, 29, 0, height + 2, get_current_rotation());
|
||||
}
|
||||
if (track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation())) {
|
||||
imageId = SPR_SPACE_RINGS_FENCE_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_SPACE_RINGS_FENCE_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 1, 7, height, 0, 29, height + 2, get_current_rotation());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, space_rings_fence_sprites, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, space_rings_fence_sprites, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
@@ -55,10 +55,10 @@ enum {
|
||||
static void spiral_slide_paint_tile_right(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement) {
|
||||
uint32 image_id;
|
||||
|
||||
if (direction == 0) image_id = SPIRAL_SLIDE_RIGHT_R0 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 1) image_id = SPIRAL_SLIDE_RIGHT_R1 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 2) image_id = SPIRAL_SLIDE_RIGHT_R2 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 3) image_id = SPIRAL_SLIDE_RIGHT_R3 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 0) image_id = SPIRAL_SLIDE_RIGHT_R0 | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 1) image_id = SPIRAL_SLIDE_RIGHT_R1 | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 2) image_id = SPIRAL_SLIDE_RIGHT_R2 | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 3) image_id = SPIRAL_SLIDE_RIGHT_R3 | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
sub_98197C(image_id, 16, 16, 16, 16, 108, height, 16, 0, height + 3, get_current_rotation());
|
||||
|
||||
@@ -67,10 +67,10 @@ static void spiral_slide_paint_tile_right(uint8 rideIndex, uint8 trackSequence,
|
||||
static void spiral_slide_paint_tile_left(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement) {
|
||||
uint32 image_id;
|
||||
|
||||
if (direction == 0) image_id = SPIRAL_SLIDE_LEFT_R0 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 1) image_id = SPIRAL_SLIDE_LEFT_R1 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 2) image_id = SPIRAL_SLIDE_LEFT_R2 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 3) image_id = SPIRAL_SLIDE_LEFT_R3 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
if (direction == 0) image_id = SPIRAL_SLIDE_LEFT_R0 | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 1) image_id = SPIRAL_SLIDE_LEFT_R1 | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 2) image_id = SPIRAL_SLIDE_LEFT_R2 | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 3) image_id = SPIRAL_SLIDE_LEFT_R3 | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
sub_98197C(image_id, 16, 16, 16, 16, 108, height, 0, 16, height + 3, get_current_rotation());
|
||||
}
|
||||
@@ -83,24 +83,24 @@ static void spiral_slide_paint_tile_front(uint8 rideIndex, uint8 trackSequence,
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
|
||||
if (direction == 1) {
|
||||
image_id = SPIRAL_SLIDE_INSIDE_R1 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
image_id = SPIRAL_SLIDE_INSIDE_R1 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(image_id, 16, 16, 2, 16, 108, height, -12, 0, height + 3, get_current_rotation());
|
||||
} else if (direction == 2) {
|
||||
image_id = SPIRAL_SLIDE_INSIDE_R2 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
image_id = SPIRAL_SLIDE_INSIDE_R2 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(image_id, 16, 16, 16, 2, 108, height, 0, -12, height + 3, get_current_rotation());
|
||||
}
|
||||
|
||||
if (direction == 0) {
|
||||
image_id = SPIRAL_SLIDE_CENTER_R0 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
image_id = SPIRAL_SLIDE_CENTER_R0 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(image_id, 16, 16, 16, 8, 108, height, 0, 8, height + 3, get_current_rotation());
|
||||
} else if (direction == 1) {
|
||||
image_id = SPIRAL_SLIDE_CENTER_R1 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
image_id = SPIRAL_SLIDE_CENTER_R1 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(image_id, 16, 16, 2, 16, 108, height, 14, 0, height + 3, get_current_rotation());
|
||||
} else if (direction == 2) {
|
||||
image_id = SPIRAL_SLIDE_CENTER_R2 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
image_id = SPIRAL_SLIDE_CENTER_R2 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(image_id, 16, 16, 16, 2, 108, height, 0, 14, height + 3, get_current_rotation());
|
||||
} else if (direction == 3) {
|
||||
image_id = SPIRAL_SLIDE_CENTER_R3 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
image_id = SPIRAL_SLIDE_CENTER_R3 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(image_id, 16, 16, 8, 16, 108, height, 8, 0, height + 3, get_current_rotation());
|
||||
}
|
||||
|
||||
@@ -171,13 +171,13 @@ static void paint_spiral_slide(uint8 rideIndex, uint8 trackSequence, uint8 direc
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
// Base
|
||||
uint32 imageId = ((direction & 1) ? SPIRAL_SLIDE_BASE_B : SPIRAL_SLIDE_BASE_A) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = ((direction & 1) ? SPIRAL_SLIDE_BASE_B : SPIRAL_SLIDE_BASE_A) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, spiral_slide_fence_sprites, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, spiral_slide_fence_sprites, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 1: spiral_slide_paint_tile_right(rideIndex, trackSequence, direction, height, mapElement); break;
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
*/
|
||||
static void facility_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element* mapElement)
|
||||
{
|
||||
bool hasSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A4, uint32), NULL);
|
||||
bool hasSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_3], NULL);
|
||||
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
rct_ride_entry *rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_ride_entry_vehicle *firstVehicleEntry = &rideEntry->vehicles[0];
|
||||
|
||||
uint32 imageId = RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = gTrackColours[SCHEME_TRACK];
|
||||
imageId |= firstVehicleEntry->base_image_id;
|
||||
imageId += (direction + 2) & 3;
|
||||
|
||||
@@ -46,7 +46,7 @@ static void facility_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 dir
|
||||
int lengthX = (direction & 1) == 0 ? 28 : 2;
|
||||
int lengthY = (direction & 1) == 0 ? 2 : 28;
|
||||
if (hasSupports) {
|
||||
uint32 foundationImageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | RCT2_GLOBAL(0x00F441A4, uint32);
|
||||
uint32 foundationImageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | gTrackColours[SCHEME_3];
|
||||
sub_98197C(foundationImageId, 0, 0, lengthX, lengthY, 29, height, direction == 3 ? 28 : 2, direction == 0 ? 28 : 2, height, rotation);
|
||||
|
||||
// Door image or base
|
||||
|
||||
@@ -32,13 +32,13 @@
|
||||
*/
|
||||
static void shop_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element* mapElement)
|
||||
{
|
||||
bool hasSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A4, uint32), NULL);
|
||||
bool hasSupports = wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_3], NULL);
|
||||
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
rct_ride_entry *rideEntry = get_ride_entry(ride->subtype);
|
||||
rct_ride_entry_vehicle *firstVehicleEntry = &rideEntry->vehicles[0];
|
||||
|
||||
uint32 imageId = RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = gTrackColours[SCHEME_TRACK];
|
||||
if (imageId & 0x80000000) {
|
||||
imageId &= 0x60FFFFFF;
|
||||
}
|
||||
@@ -46,7 +46,7 @@ static void shop_paint_setup(uint8 rideIndex, uint8 trackSequence, uint8 directi
|
||||
imageId += direction;
|
||||
|
||||
if (hasSupports) {
|
||||
uint32 foundationImageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | RCT2_GLOBAL(0x00F441A4, uint32);
|
||||
uint32 foundationImageId = (direction & 1 ? SPR_FLOOR_PLANKS_90_DEG : SPR_FLOOR_PLANKS) | gTrackColours[SCHEME_3];
|
||||
sub_98197C(foundationImageId, 0, 0, 28, 28, 45, height, 2, 2, height, get_current_rotation());
|
||||
|
||||
sub_98199C(imageId, 0, 0, 28, 28, 45, height, 2, 2, height, get_current_rotation());
|
||||
|
||||
@@ -37,7 +37,7 @@ static void paint_3d_cinema_structure(uint8 rideIndex, uint8 direction, sint8 xO
|
||||
g_currently_drawn_item = GET_VEHICLE(ride->vehicles[0]);
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
@@ -61,11 +61,11 @@ static void paint_3d_cinema(uint8 rideIndex, uint8 trackSequence, uint8 directio
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
|
||||
switch(trackSequence) {
|
||||
|
||||
@@ -45,7 +45,7 @@ static void paint_enterprise_structure(rct_ride * ride, sint8 xOffset, sint8 yOf
|
||||
imageOffset = (vehicle->vehicle_sprite_type << 2) + (((vehicle->sprite_direction >> 3) + get_current_rotation()) % 4);
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
@@ -84,11 +84,11 @@ static void paint_enterprise(uint8 rideIndex, uint8 trackSequence, uint8 directi
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 5: paint_enterprise_structure(ride, 16, 16, height, mapElement); break;
|
||||
|
||||
+46
-46
@@ -136,24 +136,24 @@ static void paint_go_karts_track_flat(uint8 rideIndex, uint8 trackSequence, uint
|
||||
{
|
||||
uint32 imageId;
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_GO_KARTS_FLAT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 1, height, 0, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_FRONT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_FRONT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 3, height, 0, 29, height + 2, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_0);
|
||||
} else {
|
||||
imageId = SPR_GO_KARTS_FLAT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 1, height, 2, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_FRONT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_FRONT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 3, height, 29, 0, height + 2, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_0);
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -165,7 +165,7 @@ static void paint_go_karts_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
uint32 imageId;
|
||||
paint_struct * ps;
|
||||
|
||||
imageId = go_karts_track_pieces_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = go_karts_track_pieces_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 28, 1, height, 0, 2, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -176,7 +176,7 @@ static void paint_go_karts_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
}
|
||||
|
||||
imageId = go_karts_track_pieces_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = go_karts_track_pieces_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 11, height, 0, 29, height + 2, get_current_rotation());
|
||||
} else {
|
||||
@@ -185,19 +185,19 @@ static void paint_go_karts_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(0, 9, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 9, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_7);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(1, 10, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 10, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(0, 11, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 11, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(1, 12, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 12, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_7);
|
||||
break;
|
||||
}
|
||||
@@ -212,7 +212,7 @@ static void paint_go_karts_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
uint32 imageId;
|
||||
paint_struct * ps;
|
||||
|
||||
imageId = go_karts_track_pieces_flat_to_25_deg_up[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = go_karts_track_pieces_flat_to_25_deg_up[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 28, 1, height, 0, 2, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -223,7 +223,7 @@ static void paint_go_karts_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
}
|
||||
|
||||
imageId = go_karts_track_pieces_flat_to_25_deg_up[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = go_karts_track_pieces_flat_to_25_deg_up[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 11, height, 0, 29, height + 2, get_current_rotation());
|
||||
} else {
|
||||
@@ -232,19 +232,19 @@ static void paint_go_karts_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(0, 1, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 1, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(1, 2, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 2, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_8);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(0, 3, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 3, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_8);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(1, 4, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 4, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -259,7 +259,7 @@ static void paint_go_karts_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackS
|
||||
uint32 imageId;
|
||||
paint_struct * ps;
|
||||
|
||||
imageId = go_karts_track_pieces_25_deg_up_to_flat[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = go_karts_track_pieces_25_deg_up_to_flat[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 28, 1, height, 0, 2, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -270,7 +270,7 @@ static void paint_go_karts_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackS
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
}
|
||||
|
||||
imageId = go_karts_track_pieces_25_deg_up_to_flat[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = go_karts_track_pieces_25_deg_up_to_flat[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 11, height, 0, 29, height + 2, get_current_rotation());
|
||||
} else {
|
||||
@@ -279,19 +279,19 @@ static void paint_go_karts_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackS
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
wooden_a_supports_paint_setup(0, 5, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 5, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_6);
|
||||
break;
|
||||
case 1:
|
||||
wooden_a_supports_paint_setup(1, 6, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 6, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 2:
|
||||
wooden_a_supports_paint_setup(0, 7, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 7, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_14);
|
||||
break;
|
||||
case 3:
|
||||
wooden_a_supports_paint_setup(1, 8, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 8, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -333,7 +333,7 @@ static void paint_go_karts_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
sprites = go_karts_track_pieces_starting_grid_end;
|
||||
}
|
||||
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 1, height, 0, 2, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -348,7 +348,7 @@ static void paint_go_karts_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
track_paint_util_draw_station_covers(EDGE_NE, hasFence, entranceStyle, direction, height);
|
||||
}
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 3, height, 0, 29, height + 2, get_current_rotation());
|
||||
|
||||
@@ -372,37 +372,37 @@ static void paint_go_karts_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_POLE_GREEN_SW_NE : SPR_GO_KARTS_START_POLE_RED_SW_NE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_POLE_GREEN_SW_NE : SPR_GO_KARTS_START_POLE_RED_SW_NE) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 1, 1, height + 4, get_current_rotation());
|
||||
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_LIGHTS_GREEN_SW_NE : SPR_GO_KARTS_START_LIGHTS_RED_SW_NE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_LIGHTS_GREEN_SW_NE : SPR_GO_KARTS_START_LIGHTS_RED_SW_NE) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 1, 28, height + 4, get_current_rotation());
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_GO_KARTS_START_POLE_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_START_POLE_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 1, 28, height + 4, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_START_LIGHTS_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_START_LIGHTS_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 28, 28, height + 4, get_current_rotation());
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_GO_KARTS_START_POLE_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_START_POLE_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 28, 1, height + 4, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_START_LIGHTS_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_START_LIGHTS_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 28, 28, height + 4, get_current_rotation());
|
||||
break;
|
||||
case 3:
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_POLE_GREEN_SE_NW : SPR_GO_KARTS_START_POLE_RED_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_POLE_GREEN_SE_NW : SPR_GO_KARTS_START_POLE_RED_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 1, 1, height + 4, get_current_rotation());
|
||||
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_LIGHTS_GREEN_SE_NW : SPR_GO_KARTS_START_LIGHTS_RED_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasGreenLight ? SPR_GO_KARTS_START_LIGHTS_GREEN_SE_NW : SPR_GO_KARTS_START_LIGHTS_RED_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 13, height, 28, 1, height + 4, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
@@ -415,40 +415,40 @@ static void paint_go_karts_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 1, height, 0, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 1, 3, height, 29, 2, height + 2, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 16, 1, 3, height, 14, 29, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 30, 30, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 16, 1, 3, height, 2, 29, height + 2, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 16, 3, height, 29, 2, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 1, height, 2, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 1, 3, height, 2, 2, height + 2, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_B_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 16, 3, height, 29, 14, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 3:
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 30, 30, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_GO_KARTS_FLAT_QUARTER_TURN_1_TILE_EDGE_A_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 1, 3, height, 29, 29, height + 2, get_current_rotation());
|
||||
|
||||
// The empty sprite isn't drawn
|
||||
@@ -468,7 +468,7 @@ static void paint_go_karts_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
|
||||
@@ -93,23 +93,23 @@ static void paint_launched_freefall_base(uint8 rideIndex, uint8 trackSequence, u
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = SPR_FLOOR_METAL | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, launched_freefall_fence_sprites, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, launched_freefall_fence_sprites, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0) {
|
||||
imageId = SPR_LAUNCHED_FREEFALL_TOWER_BASE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_LAUNCHED_FREEFALL_TOWER_BASE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 8, 8, height + 3, get_current_rotation());
|
||||
|
||||
height += 32;
|
||||
imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
height += 32;
|
||||
imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
paint_util_set_vertical_tunnel(height + 32);
|
||||
@@ -141,12 +141,12 @@ static void paint_launched_freefall_tower_section(uint8 rideIndex, uint8 trackSe
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
rct_map_element * nextMapElement = mapElement + 1;
|
||||
if (map_element_is_last_for_tile(mapElement) || mapElement->clearance_height != nextMapElement->base_height) {
|
||||
uint32 imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT_TOP | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_LAUNCHED_FREEFALL_TOWER_SEGMENT_TOP | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
}
|
||||
|
||||
|
||||
@@ -86,7 +86,7 @@ static void paint_magic_carpet_frame(uint8 plane, uint8 direction,
|
||||
imageId = plane == PLANE_BACK ? SPR_MAGIC_CARPET_FRAME_NW :
|
||||
SPR_MAGIC_CARPET_FRAME_SE;
|
||||
}
|
||||
imageId |= RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId |= gTrackColours[SCHEME_TRACK];
|
||||
if (plane == PLANE_BACK) {
|
||||
sub_98197C(imageId, (sint8)offset.x, (sint8)offset.y, bbSize.x, bbSize.y, 127, offset.z, bbOffset.x, bbOffset.y, bbOffset.z, get_current_rotation());
|
||||
} else {
|
||||
@@ -108,7 +108,7 @@ static void paint_magic_carpet_pendulum(uint8 plane, uint32 swingImageId, uint8
|
||||
imageId += plane == PLANE_BACK ? SPR_MAGIC_CARPET_PENDULUM_NW :
|
||||
SPR_MAGIC_CARPET_PENDULUM_SE;
|
||||
}
|
||||
imageId |= RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId |= gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, (sint8)offset.x, (sint8)offset.y, bbSize.x, bbSize.y, 127, offset.z, bbOffset.x, bbOffset.y, bbOffset.z, get_current_rotation());
|
||||
}
|
||||
|
||||
@@ -119,7 +119,7 @@ static void paint_magic_carpet_vehicle(rct_ride *ride, uint8 direction, uint32 s
|
||||
uint32 vehicleImageId = rideEntry->vehicles[0].base_image_id + direction;
|
||||
|
||||
// Vehicle
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = 0xA0000000 |
|
||||
(ride->vehicle_colours[0].trim_colour << 24) |
|
||||
@@ -195,14 +195,14 @@ static void paint_magic_carpet(uint8 rideIndex, uint8 trackSequence, uint8 direc
|
||||
case 0:
|
||||
case 2:
|
||||
if (direction & 1) {
|
||||
metal_a_supports_paint_setup(0, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
} else {
|
||||
metal_a_supports_paint_setup(0, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
uint32 imageId = SPR_STATION_BASE_D | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = SPR_STATION_BASE_D | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -62,7 +62,7 @@ static void paint_motionsimulator_vehicle(sint8 offsetX, sint8 offsetY, uint8 di
|
||||
}
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = (uint32)(IMAGE_TYPE_UNKNOWN | IMAGE_TYPE_USE_PALETTE) << 28;
|
||||
imageColourFlags |= ride->vehicle_colours[0].trim_colour << 19;
|
||||
@@ -79,10 +79,10 @@ static void paint_motionsimulator_vehicle(sint8 offsetX, sint8 offsetY, uint8 di
|
||||
imageId = simulatorImageId;
|
||||
sub_98197C(imageId, offsetX, offsetY, 20, 20, 44, offsetZ, offsetX, offsetY, offsetZ, currentRotation);
|
||||
// Stairs
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98199C(imageId, offsetX, offsetY, 20, 20, 44, offsetZ, offsetX, offsetY, offsetZ, currentRotation);
|
||||
// Stairs (rail)
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, offsetX, offsetY, 20, 2, 44, offsetZ, offsetX, offsetY + 32, offsetZ, currentRotation);
|
||||
break;
|
||||
case 1:
|
||||
@@ -90,18 +90,18 @@ static void paint_motionsimulator_vehicle(sint8 offsetX, sint8 offsetY, uint8 di
|
||||
imageId = simulatorImageId;
|
||||
sub_98197C(imageId, offsetX, offsetY, 20, 20, 44, offsetZ, offsetX, offsetY, offsetZ, currentRotation);
|
||||
// Stairs
|
||||
uint32 imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98199C(imageId, offsetX, offsetY, 20, 20, 44, offsetZ, offsetX, offsetY, offsetZ, currentRotation);
|
||||
// Stairs (rail)
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, offsetX, offsetY, 2, 20, 44, offsetZ, offsetX + 34, offsetY, offsetZ, currentRotation);
|
||||
break;
|
||||
case 2:
|
||||
// Stairs (rail)
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, offsetX, offsetY, 20, 2, 44, offsetZ, offsetX, offsetY - 10, offsetZ, currentRotation);
|
||||
// Stairs
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, offsetX, offsetY, 20, 20, 44, offsetZ, offsetX, offsetY + 5, offsetZ, currentRotation);
|
||||
// Simulator
|
||||
imageId = simulatorImageId;
|
||||
@@ -109,10 +109,10 @@ static void paint_motionsimulator_vehicle(sint8 offsetX, sint8 offsetY, uint8 di
|
||||
break;
|
||||
case 3:
|
||||
// Stairs (rail)
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_RAIL_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, offsetX, offsetY, 2, 20, 44, offsetZ, offsetX - 10, offsetY, offsetZ, currentRotation);
|
||||
// Stairs
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (SPR_MOTION_SIMULATOR_STAIRS_R0 + direction) | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, offsetX, offsetY, 20, 20, 44, offsetZ, offsetX + 5, offsetY, offsetZ, currentRotation);
|
||||
// Simulator
|
||||
imageId = simulatorImageId;
|
||||
@@ -133,9 +133,9 @@ static void paint_motionsimulator(uint8 rideIndex, uint8 trackSequence, uint8 di
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
rct_xy16 position = { RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16) };
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F4419C, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_SUPPORTS], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 1: paint_motionsimulator_vehicle( 16, -16, direction, height, mapElement); break;
|
||||
|
||||
@@ -104,14 +104,14 @@ static void paint_pirate_ship_structure(rct_ride * ride, uint8 direction, sint8
|
||||
}
|
||||
}
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
|
||||
pirate_ship_bound_box bounds = pirate_ship_data[direction];
|
||||
|
||||
imageId = pirate_ship_frame_sprites[(direction & 1)][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = pirate_ship_frame_sprites[(direction & 1)][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, xOffset, yOffset, bounds.length_x, bounds.length_y, 80, height, bounds.offset_x, bounds.offset_y, height, get_current_rotation());
|
||||
|
||||
imageId = baseImageId | imageColourFlags;
|
||||
@@ -151,7 +151,7 @@ static void paint_pirate_ship_structure(rct_ride * ride, uint8 direction, sint8
|
||||
}
|
||||
}
|
||||
|
||||
imageId = pirate_ship_frame_sprites[(direction & 1)][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = pirate_ship_frame_sprites[(direction & 1)][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, xOffset, yOffset, bounds.length_x, bounds.length_y, 80, height, bounds.offset_x, bounds.offset_y, height, get_current_rotation());
|
||||
|
||||
g_currently_drawn_item = savedMapElement;
|
||||
@@ -169,18 +169,18 @@ static void paint_pirate_ship(uint8 rideIndex, uint8 trackSequence, uint8 direct
|
||||
bool hasFence;
|
||||
|
||||
if (relativeTrackSequence == 1 || relativeTrackSequence == 4) {
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
} else if (direction & 1) {
|
||||
metal_a_supports_paint_setup(0, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
|
||||
imageId = SPR_STATION_BASE_A_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_BASE_A_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||
} else {
|
||||
metal_a_supports_paint_setup(0, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
|
||||
imageId = SPR_STATION_BASE_A_SW_NE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_BASE_A_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||
}
|
||||
|
||||
@@ -190,29 +190,29 @@ static void paint_pirate_ship(uint8 rideIndex, uint8 trackSequence, uint8 direct
|
||||
if (relativeTrackSequence != 1 && relativeTrackSequence != 4) {
|
||||
hasFence = track_paint_util_has_fence(EDGE_NE, position, mapElement, ride, get_current_rotation());
|
||||
if (relativeTrackSequence == 2) {
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_BEGIN_FENCED_NW_SE : SPR_STATION_PLATFORM_BEGIN_NW_SE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_BEGIN_FENCED_NW_SE : SPR_STATION_PLATFORM_BEGIN_NW_SE) | gTrackColours[SCHEME_TRACK];
|
||||
} else {
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_NW_SE : SPR_STATION_PLATFORM_NW_SE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_NW_SE : SPR_STATION_PLATFORM_NW_SE) | gTrackColours[SCHEME_TRACK];
|
||||
}
|
||||
sub_98199C(imageId, 0, 0, 8, 32, 1, height + 9, 0, -2, height + 9, get_current_rotation());
|
||||
|
||||
imageId = (relativeTrackSequence == 2 ? SPR_STATION_PLATFORM_BEGIN_NW_SE : SPR_STATION_PLATFORM_NW_SE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (relativeTrackSequence == 2 ? SPR_STATION_PLATFORM_BEGIN_NW_SE : SPR_STATION_PLATFORM_NW_SE) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 24, 0, 8, 32, 1, height + 9, get_current_rotation());
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation());
|
||||
if (relativeTrackSequence == 3) {
|
||||
if (hasFence) {
|
||||
imageId = SPR_STATION_BEGIN_ANGLE_FENCE_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_BEGIN_ANGLE_FENCE_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 31, 0, 1, 32, 7, height + 11, get_current_rotation());
|
||||
} else {
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 23, 31, 8, 1, 7, height + 11, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 0, 31, 8, 1, 7, height + 11, get_current_rotation());
|
||||
} else if (hasFence) {
|
||||
imageId = SPR_STATION_FENCE_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_FENCE_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 31, 0, 1, 32, 7, height + 11, get_current_rotation());
|
||||
}
|
||||
}
|
||||
@@ -220,29 +220,29 @@ static void paint_pirate_ship(uint8 rideIndex, uint8 trackSequence, uint8 direct
|
||||
if (relativeTrackSequence != 1 && relativeTrackSequence != 4) {
|
||||
hasFence = track_paint_util_has_fence(EDGE_NW, position, mapElement, ride, get_current_rotation());
|
||||
if (relativeTrackSequence == 2) {
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_BEGIN_FENCED_SW_NE : SPR_STATION_PLATFORM_BEGIN_SW_NE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_BEGIN_FENCED_SW_NE : SPR_STATION_PLATFORM_BEGIN_SW_NE) | gTrackColours[SCHEME_TRACK];
|
||||
} else {
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_SW_NE : SPR_STATION_PLATFORM_SW_NE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (hasFence ? SPR_STATION_PLATFORM_FENCED_SW_NE : SPR_STATION_PLATFORM_SW_NE) | gTrackColours[SCHEME_TRACK];
|
||||
}
|
||||
sub_98199C(imageId, 0, 0, 32, 8, 1, height + 9, -2, 0, height + 9, get_current_rotation());
|
||||
|
||||
imageId = (relativeTrackSequence == 2 ? SPR_STATION_PLATFORM_BEGIN_SW_NE : SPR_STATION_PLATFORM_SW_NE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (relativeTrackSequence == 2 ? SPR_STATION_PLATFORM_BEGIN_SW_NE : SPR_STATION_PLATFORM_SW_NE) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 0, 24, 32, 8, 1, height + 9, get_current_rotation());
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation());
|
||||
if (relativeTrackSequence == 3) {
|
||||
if (hasFence) {
|
||||
imageId = SPR_STATION_BEGIN_ANGLE_FENCE_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_BEGIN_ANGLE_FENCE_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 0, 31, 32, 1, 7, height + 11, get_current_rotation());
|
||||
} else {
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 31, 23, 1, 8, 7, height + 11, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 31, 0, 1, 8, 7, height + 11, get_current_rotation());
|
||||
} else if (hasFence) {
|
||||
imageId = SPR_STATION_FENCE_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_FENCE_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 0, 31, 32, 1, 7, height + 11, get_current_rotation());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -93,23 +93,23 @@ static void paint_roto_drop_base(uint8 rideIndex, uint8 trackSequence, uint8 dir
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, fenceSpritesMetalB, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, fenceSpritesMetalB, get_current_rotation());
|
||||
|
||||
if (trackSequence == 0) {
|
||||
imageId = (direction & 1 ? SPR_ROTO_DROP_TOWER_BASE_90_DEG : SPR_ROTO_DROP_TOWER_BASE) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction & 1 ? SPR_ROTO_DROP_TOWER_BASE_90_DEG : SPR_ROTO_DROP_TOWER_BASE) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 8, 8, height + 3, get_current_rotation());
|
||||
|
||||
height += 32;
|
||||
imageId = (direction & 1 ? SPR_ROTO_DROP_TOWER_BASE_SEGMENT_90_DEG : SPR_ROTO_DROP_TOWER_BASE_SEGMENT) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction & 1 ? SPR_ROTO_DROP_TOWER_BASE_SEGMENT_90_DEG : SPR_ROTO_DROP_TOWER_BASE_SEGMENT) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
height += 32;
|
||||
imageId = (direction & 1 ? SPR_ROTO_DROP_TOWER_BASE_SEGMENT_90_DEG : SPR_ROTO_DROP_TOWER_BASE_SEGMENT) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction & 1 ? SPR_ROTO_DROP_TOWER_BASE_SEGMENT_90_DEG : SPR_ROTO_DROP_TOWER_BASE_SEGMENT) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
paint_util_set_vertical_tunnel(height + 32);
|
||||
@@ -139,12 +139,12 @@ static void paint_roto_drop_tower_section(uint8 rideIndex, uint8 trackSequence,
|
||||
return;
|
||||
}
|
||||
|
||||
uint32 imageId = SPR_ROTO_DROP_TOWER_SEGMENT | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_ROTO_DROP_TOWER_SEGMENT | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
|
||||
rct_map_element * nextMapElement = mapElement + 1;
|
||||
if (map_element_is_last_for_tile(mapElement) || mapElement->clearance_height != nextMapElement->base_height) {
|
||||
uint32 imageId = SPR_ROTO_DROP_TOWER_SEGMENT_TOP | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = SPR_ROTO_DROP_TOWER_SEGMENT_TOP | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 2, 2, 30, height, 8, 8, height, get_current_rotation());
|
||||
}
|
||||
|
||||
|
||||
@@ -96,14 +96,14 @@ static void paint_swinging_inverter_ship_structure(rct_ride * ride, uint8 direct
|
||||
}
|
||||
}
|
||||
|
||||
uint32 colourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 colourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (colourFlags == 0x20000000) {
|
||||
colourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
|
||||
swinging_inverter_ship_bound_box boundBox = swinging_inverter_ship_bounds[direction];
|
||||
vehicleImageId = vehicleImageId | colourFlags;
|
||||
uint32 frameImageId = swinging_inverter_ship_frame_sprites[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 frameImageId = swinging_inverter_ship_frame_sprites[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction & 2) {
|
||||
sub_98197C(vehicleImageId, xOffset, yOffset, boundBox.length_x, boundBox.length_y, 127, height, boundBox.offset_x, boundBox.offset_y, height, get_current_rotation());
|
||||
@@ -128,31 +128,31 @@ static void paint_swinging_inverter_ship(uint8 rideIndex, uint8 trackSequence, u
|
||||
|
||||
if (relativeTrackSequence != 1 && relativeTrackSequence != 3) {
|
||||
if (direction & 1) {
|
||||
metal_a_supports_paint_setup(0, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(0, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
} else {
|
||||
metal_a_supports_paint_setup(0, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(0, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(0, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
imageId = SPR_STATION_BASE_D | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_BASE_D | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_STATION_PLATFORM_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 0, 24, 32, 8, 1, height + 9, get_current_rotation());
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_STATION_PLATFORM_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98196C(imageId, 24, 0, 8, 32, 1, height + 9, get_current_rotation());
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_STATION_PLATFORM_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 32, 8, 1, height + 9, -2, 0, height, get_current_rotation());
|
||||
break;
|
||||
case 3:
|
||||
imageId = SPR_STATION_PLATFORM_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 8, 32, 1, height + 9, 0, -2, height, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -84,7 +84,7 @@ static void top_spin_paint_vehicle(sint8 al, sint8 cl, uint8 rideIndex, uint8 di
|
||||
//si
|
||||
uint8 lengthY = 24;
|
||||
|
||||
uint32 image_id = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 image_id = gTrackColours[SCHEME_MISC];
|
||||
if (image_id == 0x20000000) {
|
||||
image_id =
|
||||
0xA0000000 |
|
||||
@@ -99,7 +99,7 @@ static void top_spin_paint_vehicle(sint8 al, sint8 cl, uint8 rideIndex, uint8 di
|
||||
image_id += 572;
|
||||
sub_98197C(image_id, al, cl, lengthX, lengthY, 90, height, boundBoxOffsetX, boundBoxOffsetY, boundBoxOffsetZ, rotation);
|
||||
|
||||
image_id = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
image_id = gTrackColours[SCHEME_MISC];
|
||||
if (image_id == 0x20000000) {
|
||||
image_id =
|
||||
0xA0000000 |
|
||||
@@ -139,7 +139,7 @@ static void top_spin_paint_vehicle(sint8 al, sint8 cl, uint8 rideIndex, uint8 di
|
||||
seatImageId = image_id;
|
||||
}
|
||||
|
||||
image_id = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
image_id = gTrackColours[SCHEME_MISC];
|
||||
if (image_id == 0x20000000) {
|
||||
image_id =
|
||||
0xA0000000 |
|
||||
@@ -219,7 +219,7 @@ static void top_spin_paint_vehicle(sint8 al, sint8 cl, uint8 rideIndex, uint8 di
|
||||
}
|
||||
}
|
||||
|
||||
image_id = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
image_id = gTrackColours[SCHEME_MISC];
|
||||
if (image_id == 0x20000000) {
|
||||
image_id =
|
||||
0xA0000000 |
|
||||
@@ -235,7 +235,7 @@ static void top_spin_paint_vehicle(sint8 al, sint8 cl, uint8 rideIndex, uint8 di
|
||||
|
||||
sub_98199C(image_id, al, cl, lengthX, lengthY, 90, height, boundBoxOffsetX, boundBoxOffsetY, boundBoxOffsetZ, rotation);
|
||||
|
||||
image_id = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
image_id = gTrackColours[SCHEME_MISC];
|
||||
if (image_id == 0x20000000) {
|
||||
image_id =
|
||||
0xA0000000 |
|
||||
@@ -264,11 +264,11 @@ static void paint_top_spin(uint8 rideIndex, uint8 trackSequence, uint8 direction
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(direction & 1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F44198, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_TRACK], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, fenceSpritesRope, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 1: top_spin_paint_vehicle(32, 32, rideIndex, direction, height, mapElement); break;
|
||||
|
||||
@@ -49,7 +49,7 @@ static void paint_twist_structure(rct_ride * ride, uint8 direction, sint8 xOffse
|
||||
}
|
||||
|
||||
|
||||
uint32 imageColourFlags = RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
uint32 imageColourFlags = gTrackColours[SCHEME_MISC];
|
||||
if (imageColourFlags == 0x20000000) {
|
||||
imageColourFlags = ride->vehicle_colours[0].body_colour << 19 | ride->vehicle_colours[0].trim_colour << 24 | 0xA0000000;
|
||||
}
|
||||
@@ -89,23 +89,23 @@ static void paint_twist(uint8 rideIndex, uint8 trackSequence, uint8 direction, i
|
||||
|
||||
uint32 imageId;
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
track_paint_util_paint_floor(edges, RCT2_GLOBAL(0x00F441A0, uint32), height, floorSpritesCork, get_current_rotation());
|
||||
track_paint_util_paint_floor(edges, gTrackColours[SCHEME_MISC], height, floorSpritesCork, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 7:
|
||||
if (track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation())) {
|
||||
imageId = SPR_FENCE_ROPE_SW | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_FENCE_ROPE_SW | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 1, 28, 7, height, 29, 0, height + 3, get_current_rotation());
|
||||
}
|
||||
if (track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation())) {
|
||||
imageId = SPR_FENCE_ROPE_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_FENCE_ROPE_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 1, 7, height, 0, 29, height + 3, get_current_rotation());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F441A0, uint32), height, fenceSpritesRope, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_MISC], height, fenceSpritesRope, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
|
||||
|
||||
+61
-57
@@ -202,6 +202,10 @@ enum
|
||||
SPR_STATION_COVER_OFFSET_HIGH
|
||||
};
|
||||
|
||||
#ifdef NO_RCT2
|
||||
uint32 gTrackColours[4];
|
||||
#endif
|
||||
|
||||
bool gUseOriginalRidePaint = false;
|
||||
|
||||
bool track_paint_util_has_fence(enum edge edge, rct_xy16 position, rct_map_element * mapElement, rct_ride * ride, uint8 rotation)
|
||||
@@ -298,14 +302,14 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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());
|
||||
//height -= 5 (height)
|
||||
@@ -313,11 +317,11 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
//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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_BEGIN_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
} else {
|
||||
imageId = SPR_STATION_PLATFORM_SW_NE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
}
|
||||
sub_98196C(imageId, 0, 24, 32, 8, 1, height + 5, get_current_rotation());
|
||||
//height += 2 (height + 7)
|
||||
@@ -325,20 +329,20 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
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_BEGIN_ANGLE_FENCE_SW_NE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_BEGIN_ANGLE_FENCE_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
|
||||
imageId = SPR_STATION_LIGHT_BACK_ANGLE_FENCED_NE_SW | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_LIGHT_BACK_ANGLE_FENCED_NE_SW | gTrackColours[SCHEME_SUPPORTS];
|
||||
} else {
|
||||
imageId = SPR_STATION_FENCE_SW_NE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
}
|
||||
sub_98196C(imageId, 0, 31, 32, 1, 7, height + 7, 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 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 31, 23, 1, 8, 7, height + 7, 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 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_LIGHT_BACK_NE_SW | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 31, 23, 1, 8, 7, height + 7, get_current_rotation());
|
||||
}
|
||||
//height -= 7 (height)
|
||||
@@ -346,10 +350,10 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
//height += 7 (height + 7)
|
||||
|
||||
if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 0) {
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 31, 0, 1, 8, 7, height + 7, get_current_rotation());
|
||||
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 2) {
|
||||
imageId = SPR_STATION_LIGHT_BACK_NE_SW | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_LIGHT_BACK_NE_SW | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 31, 0, 1, 8, 7, height + 7, get_current_rotation());
|
||||
}
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
@@ -358,14 +362,14 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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());
|
||||
//height -= 5 (height)
|
||||
@@ -373,11 +377,11 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
//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) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
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 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_BEGIN_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
} else {
|
||||
imageId = SPR_STATION_PLATFORM_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PLATFORM_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
}
|
||||
sub_98196C(imageId, 24, 0, 8, 32, 1, height + 5, get_current_rotation());
|
||||
//height += 2 (height + 7)
|
||||
@@ -385,20 +389,20 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
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_BEGIN_ANGLE_FENCE_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_BEGIN_ANGLE_FENCE_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
|
||||
imageId = SPR_STATION_LIGHT_BACK_ANGLE_FENCED_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_LIGHT_BACK_ANGLE_FENCED_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
} else {
|
||||
imageId = SPR_STATION_FENCE_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
}
|
||||
sub_98196C(imageId, 31, 0, 1, 32, 7, height + 7, 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 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 23, 31, 8, 1, 7, height + 7, 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 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_LIGHT_BACK_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 23, 31, 8, 1, 7, height + 7, get_current_rotation());
|
||||
}
|
||||
|
||||
@@ -407,10 +411,10 @@ void track_paint_util_draw_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
//height += 7 (height + 7)
|
||||
|
||||
if (mapElement->properties.track.type == TRACK_ELEM_BEGIN_STATION && direction == 3) {
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_SMALL_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 31, 8, 1, 7, height + 7, get_current_rotation());
|
||||
} else if (mapElement->properties.track.type == TRACK_ELEM_END_STATION && direction == 1) {
|
||||
imageId = SPR_STATION_LIGHT_BACK_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_LIGHT_BACK_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 31, 8, 1, 7, height + 7, get_current_rotation());
|
||||
}
|
||||
}
|
||||
@@ -451,7 +455,7 @@ bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const r
|
||||
break;
|
||||
}
|
||||
|
||||
if (RCT2_GLOBAL(0x00F441A0, uint32) != 0x20000000) {
|
||||
if (gTrackColours[SCHEME_MISC] != 0x20000000) {
|
||||
baseImageId &= 0x7FFFF;
|
||||
}
|
||||
|
||||
@@ -463,7 +467,7 @@ bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const r
|
||||
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());
|
||||
|
||||
uint32 edi = RCT2_GLOBAL(0x00F44198, uint32) & (0b11111 << 19);
|
||||
uint32 edi = gTrackColours[SCHEME_TRACK] & (0b11111 << 19);
|
||||
|
||||
// weird jump
|
||||
imageId = (baseImageId | edi) + 0x3800000 + imageOffset + 12;
|
||||
@@ -471,7 +475,7 @@ bool track_paint_util_draw_station_covers(enum edge edge, bool hasFence, const r
|
||||
return true;
|
||||
}
|
||||
|
||||
imageId = (baseImageId + imageOffset) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (baseImageId + imageOffset) | gTrackColours[SCHEME_TRACK];
|
||||
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());
|
||||
return true;
|
||||
}
|
||||
@@ -482,31 +486,31 @@ void track_paint_util_draw_station_platform(rct_ride *ride, uint8 direction, int
|
||||
const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
|
||||
if (direction & 1) {
|
||||
bool hasFence = track_paint_util_has_fence(EDGE_NE, position, mapElement, ride, get_current_rotation());
|
||||
uint32 imageId = (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NE : SPR_STATION_NARROW_EDGE_NE) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NE : SPR_STATION_NARROW_EDGE_NE) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 0, 8, 32, 1, height + zOffset, get_current_rotation());
|
||||
track_paint_util_draw_station_covers(EDGE_NE, hasFence, entranceStyle, direction, height);
|
||||
|
||||
imageId = SPR_STATION_NARROW_EDGE_SW | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_NARROW_EDGE_SW | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 24, 0, 8, 32, 1, height + zOffset, get_current_rotation());
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_STATION_FENCE_NW_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_NW_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 31, 0, 1, 32, 7, height + zOffset + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SW, hasFence, entranceStyle, direction, height);
|
||||
} else {
|
||||
bool hasFence = track_paint_util_has_fence(EDGE_NW, position, mapElement, ride, get_current_rotation());
|
||||
uint32 imageId = (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NW : SPR_STATION_NARROW_EDGE_NW) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = (hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NW : SPR_STATION_NARROW_EDGE_NW) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 0, 32, 8, 1, height + zOffset, get_current_rotation());
|
||||
track_paint_util_draw_station_covers(EDGE_NW, hasFence, entranceStyle, direction, height);
|
||||
|
||||
imageId = SPR_STATION_NARROW_EDGE_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_NARROW_EDGE_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 24, 32, 8, 1, height + zOffset, get_current_rotation());
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_STATION_FENCE_SW_NE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_FENCE_SW_NE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 31, 32, 1, 7, height + zOffset + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SE, hasFence, entranceStyle, direction, height);
|
||||
@@ -520,31 +524,31 @@ void track_paint_util_draw_pier(rct_ride * ride, const rct_ride_entrance_definit
|
||||
|
||||
if (direction & 1) {
|
||||
hasFence = track_paint_util_has_fence(EDGE_NE, position, mapElement, ride, get_current_rotation());
|
||||
imageId = (hasFence ? SPR_STATION_PIER_EDGE_NE_FENCED : SPR_STATION_PIER_EDGE_NE) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = (hasFence ? SPR_STATION_PIER_EDGE_NE_FENCED : SPR_STATION_PIER_EDGE_NE) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 1, height, 2, 0, height, get_current_rotation());
|
||||
track_paint_util_draw_station_covers(EDGE_NE, hasFence, entranceStyle, direction, height);
|
||||
|
||||
imageId = SPR_STATION_PIER_EDGE_SW | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PIER_EDGE_SW | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 24, 0, 8, 32, 1, height, get_current_rotation());
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SW, position, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_STATION_PIER_FENCE_SW | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PIER_FENCE_SW | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 31, 0, 1, 32, 7, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SW, hasFence, entranceStyle, direction, height);
|
||||
} else {
|
||||
hasFence = track_paint_util_has_fence(EDGE_NW, position, mapElement, ride, rotation);
|
||||
imageId = (hasFence ? SPR_STATION_PIER_EDGE_NW_FENCED : SPR_STATION_PIER_EDGE_NW) | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = (hasFence ? SPR_STATION_PIER_EDGE_NW_FENCED : SPR_STATION_PIER_EDGE_NW) | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 1, height, 0, 2, height, rotation);
|
||||
track_paint_util_draw_station_covers(EDGE_NW, hasFence, entranceStyle, direction, height);
|
||||
|
||||
imageId = SPR_STATION_PIER_EDGE_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PIER_EDGE_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 24, 32, 8, 1, height, rotation);
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SE, position, mapElement, ride, rotation);
|
||||
if (hasFence) {
|
||||
imageId = SPR_STATION_PIER_FENCE_SE | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_STATION_PIER_FENCE_SE | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98196C(imageId, 0, 31, 32, 1, 7, height + 2, rotation);
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SE, hasFence, entranceStyle, direction, height);
|
||||
@@ -1235,9 +1239,9 @@ void track_paint_util_spinning_tunnel_paint(sint8 thickness, sint16 height, uint
|
||||
{
|
||||
|
||||
int frame = gScenarioTicks >> 2 & 3;
|
||||
uint32 colourFlags = RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 colourFlags = gTrackColours[SCHEME_SUPPORTS];
|
||||
|
||||
uint32 colourFlags2 = RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 colourFlags2 = gTrackColours[SCHEME_TRACK];
|
||||
if (colourFlags2 & ((uint32)IMAGE_TYPE_UNKNOWN << 28)) {
|
||||
colourFlags |= colourFlags2 & ((uint32)IMAGE_TYPE_UNKNOWN << 28 | 0x1F << 24);
|
||||
}
|
||||
@@ -1298,23 +1302,23 @@ void track_paint(uint8 direction, int height, rct_map_element *mapElement)
|
||||
}
|
||||
|
||||
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_RIDE;
|
||||
RCT2_GLOBAL(0x00F44198, uint32) = (ride->track_colour_main[trackColourScheme] << 19) | (ride->track_colour_additional[trackColourScheme] << 24) | 0xA0000000;
|
||||
RCT2_GLOBAL(0x00F441A0, uint32) = 0x20000000;
|
||||
RCT2_GLOBAL(0x00F441A4, uint32) = 0x20C00000;
|
||||
RCT2_GLOBAL(0x00F4419C, uint32) = (ride->track_colour_supports[trackColourScheme] << 19) | 0x20000000;
|
||||
gTrackColours[SCHEME_TRACK] = (ride->track_colour_main[trackColourScheme] << 19) | (ride->track_colour_additional[trackColourScheme] << 24) | 0xA0000000;
|
||||
gTrackColours[SCHEME_SUPPORTS] = (ride->track_colour_supports[trackColourScheme] << 19) | 0x20000000;
|
||||
gTrackColours[SCHEME_MISC] = 0x20000000;
|
||||
gTrackColours[SCHEME_3] = 0x20C00000;
|
||||
if (mapElement->type & MAP_ELEMENT_TYPE_FLAG_HIGHLIGHT) {
|
||||
RCT2_GLOBAL(0x00F44198, uint32) = 0x21600000;
|
||||
RCT2_GLOBAL(0x00F4419C, uint32) = 0x21600000;
|
||||
RCT2_GLOBAL(0x00F441A0, uint32) = 0x21600000;
|
||||
RCT2_GLOBAL(0x00F441A4, uint32) = 0x21600000;
|
||||
gTrackColours[SCHEME_TRACK] = 0x21600000;
|
||||
gTrackColours[SCHEME_SUPPORTS] = 0x21600000;
|
||||
gTrackColours[SCHEME_MISC] = 0x21600000;
|
||||
gTrackColours[SCHEME_3] = 0x21600000;
|
||||
}
|
||||
if (mapElement->flags & MAP_ELEMENT_FLAG_GHOST) {
|
||||
uint32 ghost_id = construction_markers[gConfigGeneral.construction_marker_colour];
|
||||
gPaintInteractionType = VIEWPORT_INTERACTION_ITEM_NONE;
|
||||
RCT2_GLOBAL(0x00F44198, uint32) = ghost_id;
|
||||
RCT2_GLOBAL(0x00F4419C, uint32) = ghost_id;
|
||||
RCT2_GLOBAL(0x00F441A0, uint32) = ghost_id;
|
||||
RCT2_GLOBAL(0x00F441A4, uint32) = ghost_id;
|
||||
gTrackColours[SCHEME_TRACK] = ghost_id;
|
||||
gTrackColours[SCHEME_SUPPORTS] = ghost_id;
|
||||
gTrackColours[SCHEME_MISC] = ghost_id;
|
||||
gTrackColours[SCHEME_3] = ghost_id;
|
||||
}
|
||||
|
||||
int rideType = ride->type;
|
||||
|
||||
@@ -171,6 +171,19 @@ enum {
|
||||
SPR_GHOST_TRAIN_SPINNING_TUNNEL_FRONT_NW_SE_FRAME_3 = 28880,
|
||||
};
|
||||
|
||||
enum {
|
||||
SCHEME_TRACK = 0,
|
||||
SCHEME_SUPPORTS = 1,
|
||||
SCHEME_MISC = 2,
|
||||
SCHEME_3 = 3,
|
||||
};
|
||||
|
||||
#ifdef NO_RCT2
|
||||
extern uint32 gTrackColours[4];
|
||||
#else
|
||||
#define gTrackColours RCT2_ADDRESS(0x00F44198, uint32)
|
||||
#endif
|
||||
|
||||
extern const uint32 floorSpritesCork[];
|
||||
|
||||
extern const uint32 fenceSpritesRope[];
|
||||
|
||||
@@ -92,7 +92,7 @@ static void chairlift_paint_util_draw_supports(int segments, uint16 height)
|
||||
continue;
|
||||
}
|
||||
|
||||
if (metal_a_supports_paint_setup(10, s, 0, height, RCT2_GLOBAL(0x00F4419C, uint32))) {
|
||||
if (metal_a_supports_paint_setup(10, s, 0, height, gTrackColours[SCHEME_SUPPORTS])) {
|
||||
success = true;
|
||||
}
|
||||
}
|
||||
@@ -107,7 +107,7 @@ static void chairlift_paint_util_draw_supports(int segments, uint16 height)
|
||||
}
|
||||
uint16 temp = gSupportSegments[s].height;
|
||||
gSupportSegments[s].height = gSupport.height;
|
||||
metal_a_supports_paint_setup(10, s, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(10, s, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
gSupportSegments[s].height = temp;
|
||||
}
|
||||
}
|
||||
@@ -176,31 +176,31 @@ static void chairlift_paint_station_ne_sw(uint8 rideIndex, uint8 trackSequence,
|
||||
|
||||
const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
|
||||
|
||||
wooden_a_supports_paint_setup(0, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
if (!isStart && !isEnd) {
|
||||
imageId = ((direction == 0) ? SPR_20502 : SPR_20504) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ((direction == 0) ? SPR_20502 : SPR_20504) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = SPR_FLOOR_METAL | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_FLOOR_METAL | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
bool hasFence = track_paint_util_has_fence(EDGE_NW, pos, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_FENCE_METAL_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 32, 1, 7, height, 0, 2, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_NW, hasFence, entranceStyle, direction, height);
|
||||
|
||||
if ((direction == 2 && isStart) || (direction == 0 && isEnd)) {
|
||||
imageId = SPR_FENCE_METAL_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 1, 28, 7, height, 2, 2, height + 4, get_current_rotation());
|
||||
}
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SE, pos, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_FENCE_METAL_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 27, height, 0, 30, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SE, hasFence, entranceStyle, direction, height);
|
||||
@@ -208,33 +208,33 @@ static void chairlift_paint_station_ne_sw(uint8 rideIndex, uint8 trackSequence,
|
||||
bool drawFrontColumn = true;
|
||||
bool drawBackColumn = true;
|
||||
if ((direction == 0 && isStart) || (direction == 2 && isEnd)) {
|
||||
imageId = SPR_FENCE_METAL_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 28, 27, height, 30, 2, height + 4, get_current_rotation());
|
||||
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
drawFrontColumn = false;
|
||||
} else if ((direction == 2 && isStart) || (direction == 0 && isEnd)) {
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
drawBackColumn = false;
|
||||
}
|
||||
|
||||
if (drawBackColumn) {
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 16, 1, 1, 7, height + 2, 1, 16, height + 2, get_current_rotation());
|
||||
}
|
||||
|
||||
if (drawFrontColumn) {
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 30, 16, 1, 1, 7, height + 2, 1, 16, height + 2, get_current_rotation()); // bound offset x is wrong?
|
||||
}
|
||||
|
||||
@@ -255,31 +255,31 @@ static void chairlift_paint_station_se_nw(uint8 rideIndex, uint8 trackSequence,
|
||||
|
||||
const rct_ride_entrance_definition * entranceStyle = &RideEntranceDefinitions[ride->entrance_style];
|
||||
|
||||
wooden_a_supports_paint_setup(1, 0, height, RCT2_GLOBAL(0x00F441A0, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 0, height, gTrackColours[SCHEME_MISC], NULL);
|
||||
|
||||
if (!isStart && !isEnd) {
|
||||
imageId = ((direction == 1) ? SPR_20503 : SPR_20505) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ((direction == 1) ? SPR_20503 : SPR_20505) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = SPR_FLOOR_METAL | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_FLOOR_METAL | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
bool hasFence = track_paint_util_has_fence(EDGE_NE, pos, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_FENCE_METAL_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 1, 32, 7, height, 2, 0, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_NE, hasFence, entranceStyle, direction, height);
|
||||
|
||||
if ((direction == 1 && isStart) || (direction == 3 && isEnd)) {
|
||||
imageId = SPR_FENCE_METAL_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 28, 1, 7, height, 2, 2, height + 4, get_current_rotation());
|
||||
}
|
||||
|
||||
hasFence = track_paint_util_has_fence(EDGE_SW, pos, mapElement, ride, get_current_rotation());
|
||||
if (hasFence) {
|
||||
imageId = SPR_FENCE_METAL_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 27, height, 30, 0, height + 2, get_current_rotation());
|
||||
}
|
||||
track_paint_util_draw_station_covers(EDGE_SW, hasFence, entranceStyle, direction, height);
|
||||
@@ -287,33 +287,33 @@ static void chairlift_paint_station_se_nw(uint8 rideIndex, uint8 trackSequence,
|
||||
bool drawRightColumn = true;
|
||||
bool drawLeftColumn = true;
|
||||
if ((direction == 1 && isStart) || (direction == 3 && isEnd)) {
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
drawLeftColumn = false;
|
||||
} else if ((direction == 3 && isStart) || (direction == 1 && isEnd)) {
|
||||
imageId = SPR_FENCE_METAL_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_FENCE_METAL_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 1, 27, height, 2, 30, height + 4, get_current_rotation());
|
||||
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = chairlift_bullwheel_frames[ride->chairlift_bullwheel_rotation / 16384] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_END_CAP_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 4, 4, 26, height, 14, 14, height + 4, get_current_rotation());
|
||||
|
||||
drawRightColumn = false;
|
||||
}
|
||||
|
||||
if (drawLeftColumn) {
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 16, 0, 1, 1, 7, height + 2, 16, 1, height + 2, get_current_rotation());
|
||||
}
|
||||
|
||||
if (drawRightColumn) {
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_STATION_COLUMN_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 16, 30, 1, 1, 7, height + 2, 16, 1, height + 2, get_current_rotation()); // bound offset x is wrong?
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -337,11 +337,11 @@ static void chairlift_paint_flat(uint8 rideIndex, uint8 trackSequence, uint8 dir
|
||||
{
|
||||
uint32 imageId;
|
||||
if (direction & 1) {
|
||||
imageId = SPR_CHAIRLIFT_CABLE_FLAT_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CABLE_FLAT_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
} else {
|
||||
imageId = SPR_CHAIRLIFT_CABLE_FLAT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CABLE_FLAT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
}
|
||||
@@ -357,25 +357,25 @@ static void chairlift_paint_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_7);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CABLE_UP_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_7);
|
||||
break;
|
||||
@@ -392,40 +392,40 @@ static void chairlift_paint_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequen
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_20508 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20508 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20520 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20520 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_20509 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20509 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20521 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20521 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_20510 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20510 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20522 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20522 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_20511 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20511 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20523 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20523 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -444,40 +444,40 @@ static void chairlift_paint_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequen
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_20512 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20512 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20524 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20524 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_20513 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20513 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20525 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20525 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_14);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_20514 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20514 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 6, 2, height, 0, 13, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20526 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20526 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_14);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_20515 | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_20515 | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 6, 32, 2, height, 13, 0, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20527 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20527 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 4, 4, 25, height, 14, 14, height + 1, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_6);
|
||||
@@ -515,50 +515,50 @@ static void chairlift_paint_left_quarter_turn_1_tile(uint8 rideIndex, uint8 trac
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_CHAIRLIFT_CORNER_NW_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CORNER_NW_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 16, 16, 2, height, 16, 0, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20532 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20532 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 16, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_20536 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20536 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 28, 4, height, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_CHAIRLIFT_CORNER_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CORNER_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 16, 16, 2, height, 0, 0, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20533 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20533 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 16, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_20537 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20537 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 4, 16, height, get_current_rotation());
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_CHAIRLIFT_CORNER_SE_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CORNER_SE_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 16, 16, 2, height, 0, 16, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20534 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20534 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 4, 16, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_20538 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20538 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 16, 28, height, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_CHAIRLIFT_CORNER_SW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_CHAIRLIFT_CORNER_SW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 16, 16, 2, height, 16, 16, height + 28, get_current_rotation());
|
||||
|
||||
imageId = SPR_20535 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20535 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 28, 16, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_20539 | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
imageId = SPR_20539 | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 2, 2, 27, height, 16, 28, height, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
|
||||
@@ -60,11 +60,11 @@ static void paint_lift_base(uint8 rideIndex, uint8 trackSequence, uint8 directio
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
|
||||
if (trackSequence == 0) {
|
||||
paint_lift_cage(direction, RCT2_GLOBAL(0x00F44198, uint32), height, get_current_rotation());
|
||||
paint_lift_cage(direction, gTrackColours[SCHEME_TRACK], height, get_current_rotation());
|
||||
|
||||
paint_lift_cage(-1, RCT2_GLOBAL(0x00F44198, uint32), height + 32, get_current_rotation());
|
||||
paint_lift_cage(-1, gTrackColours[SCHEME_TRACK], height + 32, get_current_rotation());
|
||||
|
||||
paint_lift_cage(-1, RCT2_GLOBAL(0x00F44198, uint32), height + 64, get_current_rotation());
|
||||
paint_lift_cage(-1, gTrackColours[SCHEME_TRACK], height + 64, get_current_rotation());
|
||||
|
||||
paint_util_set_vertical_tunnel(height + 96);
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
@@ -79,10 +79,10 @@ static void paint_lift_base(uint8 rideIndex, uint8 trackSequence, uint8 directio
|
||||
rct_ride * ride = get_ride(rideIndex);
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | RCT2_GLOBAL(0x00F4419C, uint32);
|
||||
uint32 imageId = SPR_FLOOR_METAL_B | gTrackColours[SCHEME_SUPPORTS];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 1, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, RCT2_GLOBAL(0x00F44198, uint32), height, fenceSpritesMetalB, get_current_rotation());
|
||||
track_paint_util_paint_fences(edges, position, mapElement, ride, gTrackColours[SCHEME_TRACK], height, fenceSpritesMetalB, get_current_rotation());
|
||||
|
||||
int blockedSegments = 0;
|
||||
switch (trackSequence) {
|
||||
@@ -107,7 +107,7 @@ static void paint_lift_tower_section(uint8 rideIndex, uint8 trackSequence, uint8
|
||||
return;
|
||||
}
|
||||
|
||||
paint_lift_cage(-1, RCT2_GLOBAL(0x00F44198, uint32), height, get_current_rotation());
|
||||
paint_lift_cage(-1, gTrackColours[SCHEME_TRACK], height, get_current_rotation());
|
||||
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
|
||||
|
||||
@@ -446,7 +446,7 @@ static void paint_monorail_track_flat(uint8 rideIndex, uint8 trackSequence, uint
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 3, height, get_current_rotation());
|
||||
@@ -461,7 +461,7 @@ static void paint_monorail_track_flat(uint8 rideIndex, uint8 trackSequence, uint
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -474,14 +474,14 @@ static void paint_monorail_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
uint32 imageId;
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 32, 28, 2, height - 2, 0, 2, height, get_current_rotation());
|
||||
} else if (direction == 1 || direction == 3) {
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98197C(imageId, 0, 0, 28, 32, 2, height - 2, 2, 0, height, get_current_rotation());
|
||||
}
|
||||
|
||||
imageId = monorail_track_pieces_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = monorail_track_pieces_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98199C(imageId, 0, 6, 32, 20, 2, height, 0, 0, height, get_current_rotation());
|
||||
} else {
|
||||
@@ -495,11 +495,11 @@ static void paint_monorail_station(uint8 rideIndex, uint8 trackSequence, uint8 d
|
||||
}
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
} else {
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
track_paint_util_draw_station(rideIndex, trackSequence, direction, height, mapElement);
|
||||
@@ -513,7 +513,7 @@ static void paint_monorail_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_25_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_25_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 3, height, get_current_rotation());
|
||||
@@ -529,7 +529,7 @@ static void paint_monorail_track_25_deg_up(uint8 rideIndex, uint8 trackSequence,
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -541,7 +541,7 @@ static void paint_monorail_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_flat_to_25_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_flat_to_25_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 3, height, get_current_rotation());
|
||||
@@ -557,7 +557,7 @@ static void paint_monorail_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackS
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 3, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -569,7 +569,7 @@ static void paint_monorail_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackS
|
||||
{
|
||||
rct_xy16 position = {RCT2_GLOBAL(0x009DE56A, sint16), RCT2_GLOBAL(0x009DE56E, sint16)};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_25_deg_up_to_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_25_deg_up_to_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
|
||||
if (direction == 0 || direction == 2) {
|
||||
sub_98196C(imageId, 0, 6, 32, 20, 3, height, get_current_rotation());
|
||||
@@ -585,7 +585,7 @@ static void paint_monorail_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackS
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -613,12 +613,12 @@ static void paint_monorail_track_25_deg_down_to_flat(uint8 rideIndex, uint8 trac
|
||||
/** rct2: 0x008AE22C */
|
||||
static void paint_monorail_track_right_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(3, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), monorail_track_pieces_flat_quarter_turn_5_tiles, defaultRightQuarterTurn5TilesOffsets, defaultRightQuarterTurn5TilesBoundLengths, NULL, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint(3, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], monorail_track_pieces_flat_quarter_turn_5_tiles, defaultRightQuarterTurn5TilesOffsets, defaultRightQuarterTurn5TilesBoundLengths, NULL, get_current_rotation());
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
case 6:
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -681,7 +681,7 @@ static void paint_monorail_track_s_bend_left(uint8 rideIndex, uint8 trackSequenc
|
||||
{32, 20},
|
||||
};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_s_bend_left[direction & 1][trackSequence] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_s_bend_left[direction & 1][trackSequence] | gTrackColours[SCHEME_TRACK];
|
||||
rct_xy16 offset = offsetList[trackSequence];
|
||||
rct_xy16 bounds = boundsList[trackSequence];
|
||||
if (direction == 0 || direction == 2) {
|
||||
@@ -696,9 +696,9 @@ static void paint_monorail_track_s_bend_left(uint8 rideIndex, uint8 trackSequenc
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 5, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
} else {
|
||||
if (trackSequence == 3) {
|
||||
@@ -706,9 +706,9 @@ static void paint_monorail_track_s_bend_left(uint8 rideIndex, uint8 trackSequenc
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 6, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height - 2, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height - 2, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -745,7 +745,7 @@ static void paint_monorail_track_s_bend_right(uint8 rideIndex, uint8 trackSequen
|
||||
{32, 20},
|
||||
};
|
||||
|
||||
uint32 imageId = monorail_track_pieces_s_bend_right[direction&1][trackSequence] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_s_bend_right[direction&1][trackSequence] | gTrackColours[SCHEME_TRACK];
|
||||
rct_xy16 offset = offsetList[trackSequence];
|
||||
rct_xy16 bounds = boundsList[trackSequence];
|
||||
if (direction == 0 || direction == 2) {
|
||||
@@ -760,9 +760,9 @@ static void paint_monorail_track_s_bend_right(uint8 rideIndex, uint8 trackSequen
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 8, 0, height - 2, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 8, 0, height - 2, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
} else {
|
||||
if (trackSequence == 3) {
|
||||
@@ -770,9 +770,9 @@ static void paint_monorail_track_s_bend_right(uint8 rideIndex, uint8 trackSequen
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 7, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32)); break;
|
||||
case 0: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 1: metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
case 3: metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]); break;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -791,13 +791,13 @@ static void paint_monorail_track_s_bend_right(uint8 rideIndex, uint8 trackSequen
|
||||
/** rct2: 0x008AE29C */
|
||||
static void paint_monorail_track_right_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), monorail_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint(3, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], monorail_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, NULL, get_current_rotation());
|
||||
track_paint_util_right_quarter_turn_3_tiles_tunnel(height, direction, trackSequence, TUNNEL_6);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -826,7 +826,7 @@ static void paint_monorail_track_left_eighth_to_diag(uint8 rideIndex, uint8 trac
|
||||
uint32 imageId;
|
||||
sint8 index = paint_monorail_eighth_to_diag_index[trackSequence];
|
||||
if (index >= 0) {
|
||||
imageId = ghost_train_track_pieces_left_eight_to_diag[direction][index] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ghost_train_track_pieces_left_eight_to_diag[direction][index] | gTrackColours[SCHEME_TRACK];
|
||||
const rct_xy16 offset = ghost_train_track_pieces_left_eight_to_diag_offset[direction][index];
|
||||
const rct_xy16 bounds = ghost_train_track_pieces_left_eight_to_diag_bounds[direction][index];
|
||||
sub_98197C(imageId, 0, 0, bounds.x, bounds.y, 2, height, offset.x, offset.y, height, get_current_rotation());
|
||||
@@ -834,13 +834,13 @@ static void paint_monorail_track_left_eighth_to_diag(uint8 rideIndex, uint8 trac
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 4:
|
||||
if (direction == 0) metal_a_supports_paint_setup(3, 3, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 1) metal_a_supports_paint_setup(3, 1, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 2) metal_a_supports_paint_setup(3, 0, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 3) metal_a_supports_paint_setup(3, 2, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 0) metal_a_supports_paint_setup(3, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 1) metal_a_supports_paint_setup(3, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 2) metal_a_supports_paint_setup(3, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 3) metal_a_supports_paint_setup(3, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -870,7 +870,7 @@ static void paint_monorail_track_right_eighth_to_diag(uint8 rideIndex, uint8 tra
|
||||
uint32 imageId;
|
||||
sint8 index = paint_monorail_eighth_to_diag_index[trackSequence];
|
||||
if (index >= 0) {
|
||||
imageId = ghost_train_track_pieces_right_eight_to_diag[direction][index] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = ghost_train_track_pieces_right_eight_to_diag[direction][index] | gTrackColours[SCHEME_TRACK];
|
||||
const rct_xy16 offset = ghost_train_track_pieces_right_eight_to_diag_offset[direction][index];
|
||||
const rct_xy16 bounds = ghost_train_track_pieces_right_eight_to_diag_bounds[direction][index];
|
||||
sub_98197C(imageId, 0, 0, bounds.x, bounds.y, 2, height, offset.x, offset.y, height, get_current_rotation());
|
||||
@@ -878,13 +878,13 @@ static void paint_monorail_track_right_eighth_to_diag(uint8 rideIndex, uint8 tra
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 4:
|
||||
if (direction == 0) metal_a_supports_paint_setup(3, 1, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 1) metal_a_supports_paint_setup(3, 0, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 2) metal_a_supports_paint_setup(3, 2, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 3) metal_a_supports_paint_setup(3, 3, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
if (direction == 0) metal_a_supports_paint_setup(3, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 1) metal_a_supports_paint_setup(3, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 2) metal_a_supports_paint_setup(3, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
if (direction == 3) metal_a_supports_paint_setup(3, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -928,16 +928,16 @@ static void paint_monorail_util_diag_supports(uint8 direction, int height)
|
||||
{
|
||||
switch (direction) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup(3, 1, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 1, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 1:
|
||||
metal_a_supports_paint_setup(3, 0, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 0, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 2:
|
||||
metal_a_supports_paint_setup(3, 2, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 2, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(3, 3, 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, 3, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@@ -962,12 +962,12 @@ static const int monorail_diag_blocked_segments[] = {
|
||||
static void paint_monorail_track_diag_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_a_supports_paint_setup(3, monorail_diag_support_segment[direction], 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(3, monorail_diag_support_segment[direction], 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
@@ -979,12 +979,12 @@ static void paint_monorail_track_diag_flat(uint8 rideIndex, uint8 trackSequence,
|
||||
static void paint_monorail_track_diag_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
@@ -996,12 +996,12 @@ static void paint_monorail_track_diag_25_deg_up(uint8 rideIndex, uint8 trackSequ
|
||||
static void paint_monorail_track_diag_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_flat_to_25_deg_up[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_flat_to_25_deg_up[direction] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
@@ -1013,12 +1013,12 @@ static void paint_monorail_track_diag_flat_to_25_deg_up(uint8 rideIndex, uint8 t
|
||||
static void paint_monorail_track_diag_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up_to_flat[direction] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up_to_flat[direction] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 4, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 4, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
@@ -1030,12 +1030,12 @@ static void paint_monorail_track_diag_25_deg_up_to_flat(uint8 rideIndex, uint8 t
|
||||
static void paint_monorail_track_diag_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up[(direction + 2) % 4] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up[(direction + 2) % 4] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 8, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
@@ -1047,12 +1047,12 @@ static void paint_monorail_track_diag_25_deg_down(uint8 rideIndex, uint8 trackSe
|
||||
static void paint_monorail_track_diag_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up_to_flat[(direction + 2) % 4] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_25_deg_up_to_flat[(direction + 2) % 4] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 4, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 4, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
@@ -1064,12 +1064,12 @@ static void paint_monorail_track_diag_flat_to_25_deg_down(uint8 rideIndex, uint8
|
||||
static void paint_monorail_track_diag_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
if (monorail_diag_image_segment[direction][trackSequence]) {
|
||||
uint32 imageId = monorail_track_pieces_diag_flat_to_25_deg_up[(direction + 2) % 4] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = monorail_track_pieces_diag_flat_to_25_deg_up[(direction + 2) % 4] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, -16, -16, 32, 32, 2, height, -16, -16, height, get_current_rotation());
|
||||
}
|
||||
|
||||
if (trackSequence == 3) {
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 0, height, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_b_supports_paint_setup(3, monorail_diag_support_segment[direction], 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
int blockedSegments = monorail_diag_blocked_segments[trackSequence];
|
||||
|
||||
+12
-12
@@ -43,16 +43,16 @@ static void paint_boat_ride_track_flat(uint8 rideIndex, uint8 trackSequence, uin
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = SPR_BOAT_RIDE_FLAT_BACK_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_BACK_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 3, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_BOAT_RIDE_FLAT_FRONT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_FRONT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 3, height, 28, 0, height, get_current_rotation());
|
||||
} else {
|
||||
imageId = SPR_BOAT_RIDE_FLAT_BACK_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_BACK_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 3, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_BOAT_RIDE_FLAT_FRONT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_FRONT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 3, height, 0, 28, height, get_current_rotation());
|
||||
}
|
||||
|
||||
@@ -85,31 +85,31 @@ static void paint_boat_ride_track_left_quarter_turn_1_tile(uint8 rideIndex, uint
|
||||
uint32 imageId;
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 0, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 1:
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 0, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 2:
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 0, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2, get_current_rotation());
|
||||
break;
|
||||
case 3:
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_FRONT_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 3, 3, 3, height, 28, 28, height + 2, get_current_rotation());
|
||||
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_BOAT_RIDE_FLAT_QUARTER_TURN_1_TILE_BACK_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 32, 0, height, 0, 0, height, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -299,20 +299,20 @@ static void paint_river_rafts_track_flat(uint8 rideIndex, uint8 trackSequence, u
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_TOP_NW_SE : SPR_RIVER_RAFTS_FLAT_TOP_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_TOP_NW_SE : SPR_RIVER_RAFTS_FLAT_TOP_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 2, height, 6, 0, height, get_current_rotation());
|
||||
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_SIDE_NW_SE : SPR_RIVER_RAFTS_FLAT_SIDE_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_SIDE_NW_SE : SPR_RIVER_RAFTS_FLAT_SIDE_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 26, height, 27, 0, height, get_current_rotation());
|
||||
} else {
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_TOP_SW_NE : SPR_RIVER_RAFTS_FLAT_TOP_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_TOP_SW_NE : SPR_RIVER_RAFTS_FLAT_TOP_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 2, height, 0, 6, height, get_current_rotation());
|
||||
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_SIDE_SW_NE : SPR_RIVER_RAFTS_FLAT_SIDE_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_SIDE_SW_NE : SPR_RIVER_RAFTS_FLAT_SIDE_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 26, height, 0, 27, height, get_current_rotation());
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
if (direction & 1) {
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -330,22 +330,22 @@ static void paint_river_rafts_station(uint8 rideIndex, uint8 trackSequence, uint
|
||||
rct_ride *ride = get_ride(rideIndex);
|
||||
|
||||
if (direction & 1) {
|
||||
uint32 imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_TOP_NW_SE : SPR_RIVER_RAFTS_FLAT_TOP_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = (direction == 1 ? SPR_RIVER_RAFTS_FLAT_TOP_NW_SE : SPR_RIVER_RAFTS_FLAT_TOP_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 1, height, 6, 0, height + 3, get_current_rotation());
|
||||
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||
} else {
|
||||
uint32 imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_TOP_SW_NE : SPR_RIVER_RAFTS_FLAT_TOP_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
uint32 imageId = (direction == 0 ? SPR_RIVER_RAFTS_FLAT_TOP_SW_NE : SPR_RIVER_RAFTS_FLAT_TOP_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 1, height, 0, 6, height + 3, get_current_rotation());
|
||||
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||
}
|
||||
|
||||
track_paint_util_draw_station_platform(ride, direction, height, 7, mapElement);
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
if (direction & 1) {
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -360,8 +360,8 @@ static void paint_river_rafts_station(uint8 rideIndex, uint8 trackSequence, uint
|
||||
/** rct2: 0x0089B1D0 */
|
||||
static void paint_river_rafts_track_left_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, RCT2_GLOBAL(0x00F44198, uint32), RiverRaftsLeftQuarterTurn5_Top);
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, RCT2_GLOBAL(0x00F44198, uint32), RiverRaftsLeftQuarterTurn5_Side);
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Top);
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsLeftQuarterTurn5_Side);
|
||||
|
||||
if (trackSequence != 1 && trackSequence != 4) {
|
||||
static const uint8 supportTypes[][7] = {
|
||||
@@ -371,7 +371,7 @@ static void paint_river_rafts_track_left_quarter_turn_5_tiles(uint8 rideIndex, u
|
||||
{ 1, 0xFF, 4, 2, 0xFF, 4, 0 },
|
||||
};
|
||||
uint8 supportType = supportTypes[direction][trackSequence];
|
||||
wooden_a_supports_paint_setup(supportType, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
@@ -390,8 +390,8 @@ static void paint_river_rafts_track_left_quarter_turn_5_tiles(uint8 rideIndex, u
|
||||
/** rct2: 0x0089B1D0 */
|
||||
static void paint_river_rafts_track_right_quarter_turn_5_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, RCT2_GLOBAL(0x00F44198, uint32), RiverRaftsRightQuarterTurn5_Top);
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, RCT2_GLOBAL(0x00F44198, uint32), RiverRaftsRightQuarterTurn5_Side);
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Top);
|
||||
track_paint_util_right_quarter_turn_5_tiles_paint_2(height, direction, get_current_rotation(), trackSequence, gTrackColours[SCHEME_TRACK], RiverRaftsRightQuarterTurn5_Side);
|
||||
|
||||
if (trackSequence != 1 && trackSequence != 4) {
|
||||
static const uint8 supportTypes[][7] = {
|
||||
@@ -401,7 +401,7 @@ static void paint_river_rafts_track_right_quarter_turn_5_tiles(uint8 rideIndex,
|
||||
{ 1, 0xFF, 3, 5, 0xFF, 3, 0 },
|
||||
};
|
||||
uint8 supportType = supportTypes[direction][trackSequence];
|
||||
wooden_a_supports_paint_setup(supportType, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
}
|
||||
|
||||
switch (trackSequence) {
|
||||
@@ -423,7 +423,7 @@ static void paint_river_rafts_track_s_bend(uint32 baseImageId, uint8 trackSequen
|
||||
imageId += (direction & 1) * 4;
|
||||
imageId += (direction & 2) ? 35 : 0;
|
||||
imageId += (direction & 2) ? -trackSequence : trackSequence;
|
||||
imageId |= RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId |= gTrackColours[SCHEME_TRACK];
|
||||
|
||||
uint32 sideImageId = imageId;
|
||||
sideImageId += (direction & 2) ? -16 : 16;
|
||||
@@ -454,7 +454,7 @@ static void paint_river_rafts_track_s_bend(uint32 baseImageId, uint8 trackSequen
|
||||
}
|
||||
|
||||
uint8 supportType = supportTypes[direction][trackSequence];
|
||||
wooden_a_supports_paint_setup(supportType, 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(supportType, 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
|
||||
@@ -255,20 +255,20 @@ static void paint_river_rapids_track_flat(uint8 rideIndex, uint8 trackSequence,
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_NW_SE : SPR_RIVER_RAPIDS_FLAT_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_NW_SE : SPR_RIVER_RAPIDS_FLAT_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_FRONT_NW_SE : SPR_RIVER_RAPIDS_FLAT_FRONT_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_FRONT_NW_SE : SPR_RIVER_RAPIDS_FLAT_FRONT_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 3, height, 27, 0, height + 17, get_current_rotation());
|
||||
} else {
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_SW_NE : SPR_RIVER_RAPIDS_FLAT_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_SW_NE : SPR_RIVER_RAPIDS_FLAT_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_FRONT_SW_NE : SPR_RIVER_RAPIDS_FLAT_FRONT_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_FRONT_SW_NE : SPR_RIVER_RAPIDS_FLAT_FRONT_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 3, height, 0, 27, height + 17, get_current_rotation());
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
if (direction & 1) {
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -297,48 +297,48 @@ static void paint_river_rapids_track_25_deg(uint8 direction, int height, const u
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 4, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 34, height, 0, 27, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 9, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 9, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_7);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
ps = sub_98197C(imageId, 0, 0, 24, 32, 4, height, 4, 0, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 34, height, 27, 0, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 10, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 10, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 24, 4, height, 0, 4, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 34, height, 0, 27, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 11, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 11, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 4, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 34, height, 27, 0, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 12, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 12, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_7);
|
||||
break;
|
||||
}
|
||||
@@ -354,48 +354,48 @@ static void paint_river_rapids_track_25_deg_to_flat_a(uint8 direction, int heigh
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 4, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 18, height, 0, 27, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 5, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 5, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height - 8, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
ps = sub_98197C(imageId, 0, 0, 24, 32, 4, height, 4, 0, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 18, height, 27, 0, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 6, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 6, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height + 8, TUNNEL_14);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 24, 4, height, 0, 4, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 18, height, 0, 27, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 7, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 7, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height + 8, TUNNEL_14);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 4, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 18, height, 27, 0, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 8, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 8, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height - 8, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -411,48 +411,48 @@ static void paint_river_rapids_track_25_deg_to_flat_b(uint8 direction, int heigh
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 26, height, 0, 27, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 1, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 1, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
ps = sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 26, height, 27, 0, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 2, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 2, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
ps = sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
RCT2_GLOBAL(0x009DEA58, paint_struct*) = ps;
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 26, height, 0, 27, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(0, 3, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(0, 3, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_left(height, TUNNEL_8);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = sprites[direction][0] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = sprites[direction][1] | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = sprites[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 26, height, 27, 0, height + 16, get_current_rotation());
|
||||
|
||||
wooden_a_supports_paint_setup(1, 4, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1, 4, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
@@ -503,41 +503,41 @@ static void paint_river_rapids_track_left_quarter_turn_1_tile(uint8 rideIndex, u
|
||||
uint32 imageId;
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 26, 11, height, 4, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SW_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SW_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 1, 7, height, 28, 27, height + 13, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 28, 11, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_LEFT_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_LEFT_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 30, 7, height, 27, 1, height + 13, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_RIGHT_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_RIGHT_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 30, 1, 7, height, 1, 27, height + 13, get_current_rotation());
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 26, 28, 11, height, 2, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_NE_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_NE_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 2, 7, height, 27, 28, height + 13, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 28, 11, height, 4, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_LEFT_QUARTER_TURN_1_TILE_FRONT_SE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 1, 7, height, 28, 28, height + 13, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
@@ -545,7 +545,7 @@ static void paint_river_rapids_track_left_quarter_turn_1_tile(uint8 rideIndex, u
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
@@ -557,10 +557,10 @@ static void paint_river_rapids_track_right_quarter_turn_1_tile(uint8 rideIndex,
|
||||
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_SW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_SW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 28, 11, height, 4, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 1, 7, height, 28, 28, height + 13, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
@@ -568,38 +568,38 @@ static void paint_river_rapids_track_right_quarter_turn_1_tile(uint8 rideIndex,
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_SE_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_SE_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 26, 11, height, 4, 2, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SE_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_SE_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 2, 1, 7, height, 28, 27, height + 13, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_NE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_NE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 28, 28, 11, height, 0, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_LEFT_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_LEFT_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 30, 7, height, 27, 1, height + 13, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_RIGHT_NW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_QUARTER_TURN_1_TILE_FRONT_RIGHT_NW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 30, 1, 7, height, 1, 27, height + 13, get_current_rotation());
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_NW_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_NW_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 26, 28, 11, height, 2, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_NW_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RIGHT_QUARTER_TURN_1_TILE_FRONT_NW_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 28, 7, height, 27, 2, height + 13, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
break;
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup(1 - (direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup(1 - (direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||
paint_util_set_general_support_height(height + 32, 0x20);
|
||||
}
|
||||
@@ -612,38 +612,38 @@ static void paint_river_rapids_track_waterfall(uint8 rideIndex, uint8 trackSeque
|
||||
uint16 frameNum = (gScenarioTicks / 2) & 7;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_WATERFALL_NW_SE : SPR_RIVER_RAPIDS_WATERFALL_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_WATERFALL_NW_SE : SPR_RIVER_RAPIDS_WATERFALL_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_BASE_NE_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_BASE_NE_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_TOP_NE_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_TOP_NE_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 27, height, 4, 0, height + 17, get_current_rotation());
|
||||
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_WATERFALL_FRONT_NW_SE : SPR_RIVER_RAPIDS_WATERFALL_FRONT_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_WATERFALL_FRONT_NW_SE : SPR_RIVER_RAPIDS_WATERFALL_FRONT_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 27, height, 27, 0, height + 17, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_SIDE_SW_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_SIDE_SW_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 1, 32, 27, height, 27, 0, height + 17, get_current_rotation());
|
||||
} else {
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_WATERFALL_SW_NE : SPR_RIVER_RAPIDS_WATERFALL_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_WATERFALL_SW_NE : SPR_RIVER_RAPIDS_WATERFALL_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_BASE_NW_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_BASE_NW_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_TOP_NW_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_TOP_NW_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 27, height, 0, 4, height + 17, get_current_rotation());
|
||||
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_WATERFALL_FRONT_SW_NE : SPR_RIVER_RAPIDS_WATERFALL_FRONT_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_WATERFALL_FRONT_SW_NE : SPR_RIVER_RAPIDS_WATERFALL_FRONT_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 27, height, 0, 27, height + 17, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_SIDE_SE_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_WATERFALL_SIDE_SE_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98199C(imageId, 0, 0, 32, 1, 27, height, 0, 27, height + 17, get_current_rotation());
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
if (direction & 1) {
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -663,20 +663,20 @@ static void paint_river_rapids_track_rapids(uint8 rideIndex, uint8 trackSequence
|
||||
uint16 frameNum = (gScenarioTicks / 2) & 7;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_NW_SE_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_NW_SE_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_RAPIDS_FRONT_NW_SE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RAPIDS_FRONT_NW_SE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 11, height, 27, 0, height + 17, get_current_rotation());
|
||||
} else {
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_SW_NE_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_SW_NE_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = SPR_RIVER_RAPIDS_RAPIDS_FRONT_SW_NE | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_RIVER_RAPIDS_RAPIDS_FRONT_SW_NE | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 11, height, 0, 27, height + 17, get_current_rotation());
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
if (direction & 1) {
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
@@ -698,46 +698,46 @@ static void paint_river_rapids_track_on_ride_photo(uint8 rideIndex, uint8 trackS
|
||||
const bool takingPhoto = (bool) (mapElement->properties.track.sequence & 0xF0);
|
||||
switch (direction) {
|
||||
case 0:
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 26, 0, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SW_NE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SW_NE | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 26, 31, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S : SPR_ON_RIDE_PHOTO_CAMERA_S) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S : SPR_ON_RIDE_PHOTO_CAMERA_S) | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 6, 0, 1, 1, 19, height + 13, get_current_rotation());
|
||||
break;
|
||||
|
||||
case 1:
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 0, 6, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NW_SE | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NW_SE | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 31, 6, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_W : SPR_ON_RIDE_PHOTO_CAMERA_W) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_W : SPR_ON_RIDE_PHOTO_CAMERA_W) | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 0, 26, 1, 1, 19, height + 13, get_current_rotation());
|
||||
break;
|
||||
|
||||
case 2:
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NE_SW | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NE_SW | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 6, 0, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NE_SW | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_NE_SW | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 6, 31, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_N : SPR_ON_RIDE_PHOTO_CAMERA_N) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_N : SPR_ON_RIDE_PHOTO_CAMERA_N) | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 26, 31, 1, 1, 19, height + 13, get_current_rotation());
|
||||
break;
|
||||
|
||||
case 3:
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SE_NW | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SE_NW | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 0, 26, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SE_NW | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = SPR_ON_RIDE_PHOTO_SIGN_SE_NW | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 31, 26, 1, 1, 19, height + 13, get_current_rotation());
|
||||
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_E : SPR_ON_RIDE_PHOTO_CAMERA_E) | RCT2_GLOBAL(0x00F441A0, uint32);
|
||||
imageId = (takingPhoto ? SPR_ON_RIDE_PHOTO_CAMERA_FLASH_E : SPR_ON_RIDE_PHOTO_CAMERA_E) | gTrackColours[SCHEME_MISC];
|
||||
sub_98196C(imageId, 31, 6, 1, 1, 19, height + 13, get_current_rotation());
|
||||
break;
|
||||
}
|
||||
@@ -753,26 +753,26 @@ static void paint_river_rapids_track_whirlpool(uint8 rideIndex, uint8 trackSeque
|
||||
uint8 frameNum = (gScenarioTicks / 4) % 16;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_NW_SE : SPR_RIVER_RAPIDS_FLAT_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_NW_SE : SPR_RIVER_RAPIDS_FLAT_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 24, 32, 11, height, 4, 0, height, get_current_rotation());
|
||||
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_FRONT_NW_SE : SPR_RIVER_RAPIDS_FLAT_FRONT_SE_NW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 1 ? SPR_RIVER_RAPIDS_FLAT_FRONT_NW_SE : SPR_RIVER_RAPIDS_FLAT_FRONT_SE_NW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 1, 32, 3, height, 27, 0, height + 17, get_current_rotation());
|
||||
} else {
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_SW_NE : SPR_RIVER_RAPIDS_FLAT_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_SW_NE : SPR_RIVER_RAPIDS_FLAT_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 + frameNum) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (SPR_RIVER_RAPIDS_RAPIDS_WHIRLPOOL_FRAME_0 + frameNum) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 24, 11, height, 0, 4, height, get_current_rotation());
|
||||
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_FRONT_SW_NE : SPR_RIVER_RAPIDS_FLAT_FRONT_NE_SW) | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = (direction == 0 ? SPR_RIVER_RAPIDS_FLAT_FRONT_SW_NE : SPR_RIVER_RAPIDS_FLAT_FRONT_NE_SW) | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 1, 3, height, 0, 27, height + 17, get_current_rotation());
|
||||
}
|
||||
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, RCT2_GLOBAL(0x00F4419C, uint32), NULL);
|
||||
wooden_a_supports_paint_setup((direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS], NULL);
|
||||
|
||||
if (direction & 1) {
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
|
||||
@@ -76,13 +76,13 @@ static void submarine_ride_paint_track_station(uint8 rideIndex, uint8 trackSeque
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, heightLower, 6, 0, heightLower, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_right(height, TUNNEL_6);
|
||||
track_paint_util_draw_pier(ride, entranceStyle, position, direction, height, mapElement, get_current_rotation());
|
||||
} else {
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, heightLower, 0, 6, heightLower, get_current_rotation());
|
||||
|
||||
paint_util_push_tunnel_left(height, TUNNEL_6);
|
||||
@@ -100,17 +100,17 @@ static void submarine_ride_paint_track_flat(uint8 rideIndex, uint8 trackSequence
|
||||
uint32 imageId;
|
||||
|
||||
if (direction & 1) {
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_SE_NW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 20, 32, 3, heightLower, 6, 0, heightLower, get_current_rotation());
|
||||
paint_util_push_tunnel_right(heightLower, TUNNEL_0);
|
||||
} else {
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | RCT2_GLOBAL(0x00F44198, uint32);
|
||||
imageId = SPR_TRACK_SUBMARINE_RIDE_MINI_HELICOPTERS_FLAT_NE_SW | gTrackColours[SCHEME_TRACK];
|
||||
sub_98197C(imageId, 0, 0, 32, 20, 3, heightLower, 0, 6, heightLower, get_current_rotation());
|
||||
paint_util_push_tunnel_left(heightLower, TUNNEL_0);
|
||||
}
|
||||
|
||||
if (track_paint_util_should_paint_supports(position)) {
|
||||
metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 4, -1, heightLower, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup((direction & 1) ? 4 : 5, 4, -1, heightLower, gTrackColours[SCHEME_SUPPORTS]);
|
||||
}
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC, direction), 0xFFFF, 0);
|
||||
@@ -119,19 +119,19 @@ static void submarine_ride_paint_track_flat(uint8 rideIndex, uint8 trackSequence
|
||||
|
||||
static void submarine_ride_paint_track_left_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(3, height - 16, direction, trackSequence, RCT2_GLOBAL(0x00F44198, uint32), trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint(3, height - 16, direction, trackSequence, gTrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_3_tiles_tunnel(height - 16, direction, trackSequence);
|
||||
|
||||
switch (trackSequence) {
|
||||
case 0:
|
||||
metal_a_supports_paint_setup(4, 4, -1, height - 16, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -1, height - 16, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_D0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_B4, direction), 0xFFFF, 0);
|
||||
break;
|
||||
case 2:
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_B8, direction), 0xFFFF, 0);
|
||||
break;
|
||||
case 3:
|
||||
metal_a_supports_paint_setup(4, 4, -1, height - 16, RCT2_GLOBAL(0x00F4419C, uint32));
|
||||
metal_a_supports_paint_setup(4, 4, -1, height - 16, gTrackColours[SCHEME_SUPPORTS]);
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D4 | SEGMENT_C0, direction), 0xFFFF, 0);
|
||||
break;
|
||||
}
|
||||
@@ -148,7 +148,7 @@ static void submarine_ride_paint_track_right_quarter_turn_3_tiles(uint8 rideInde
|
||||
|
||||
static void submarine_ride_paint_track_left_quarter_turn_1_tile(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(1, height - 16, 0, direction, RCT2_GLOBAL(0x00F44198, uint32), trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_paint(1, height - 16, 0, direction, gTrackColours[SCHEME_TRACK], trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile, get_current_rotation());
|
||||
track_paint_util_left_quarter_turn_1_tile_tunnel(height - 16, direction, trackSequence);
|
||||
|
||||
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||
|
||||
Reference in new issue
Block a user