mirror of https://github.com/OpenRCT2/OpenRCT2.git
Merge pull request #4487 from IntelOrca/paint/log-flume
Paint Setup: Log Flume
This commit is contained in:
commit
b940002dd7
|
@ -158,9 +158,12 @@ paint_struct * sub_98197C(uint32 image_id, sint8 x_offset, sint8 y_offset, sint1
|
||||||
paint_struct * sub_98198C(uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z, uint32 rotation);
|
paint_struct * sub_98198C(uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z, uint32 rotation);
|
||||||
paint_struct * sub_98199C(uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z, uint32 rotation);
|
paint_struct * sub_98199C(uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z, uint32 rotation);
|
||||||
|
|
||||||
|
paint_struct * sub_98196C_rotated(uint8 direction, uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset);
|
||||||
paint_struct * sub_98197C_rotated(uint8 direction, uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z);
|
paint_struct * sub_98197C_rotated(uint8 direction, uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z);
|
||||||
paint_struct * sub_98199C_rotated(uint8 direction, uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z);
|
paint_struct * sub_98199C_rotated(uint8 direction, uint32 image_id, sint8 x_offset, sint8 y_offset, sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z, sint16 z_offset, sint16 bound_box_offset_x, sint16 bound_box_offset_y, sint16 bound_box_offset_z);
|
||||||
|
|
||||||
|
void paint_util_push_tunnel_rotated(uint8 direction, uint16 height, uint8 type);
|
||||||
|
|
||||||
bool paint_attach_to_previous_attach(uint32 image_id, uint16 x, uint16 y);
|
bool paint_attach_to_previous_attach(uint32 image_id, uint16 x, uint16 y);
|
||||||
bool paint_attach_to_previous_ps(uint32 image_id, uint16 x, uint16 y);
|
bool paint_attach_to_previous_ps(uint32 image_id, uint16 x, uint16 y);
|
||||||
void sub_685EBC(money32 amount, rct_string_id string_id, sint16 y, sint16 z, sint8 y_offsets[], sint16 offset_x, uint32 rotation);
|
void sub_685EBC(money32 amount, rct_string_id string_id, sint16 y, sint16 z, sint8 y_offsets[], sint16 offset_x, uint32 rotation);
|
||||||
|
|
|
@ -15,8 +15,23 @@
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
#include "../interface/viewport.h"
|
#include "../interface/viewport.h"
|
||||||
|
#include "../ride/track_paint.h"
|
||||||
#include "paint.h"
|
#include "paint.h"
|
||||||
|
|
||||||
|
paint_struct * sub_98196C_rotated(
|
||||||
|
uint8 direction,
|
||||||
|
uint32 image_id,
|
||||||
|
sint8 x_offset, sint8 y_offset,
|
||||||
|
sint16 bound_box_length_x, sint16 bound_box_length_y, sint8 bound_box_length_z,
|
||||||
|
sint16 z_offset)
|
||||||
|
{
|
||||||
|
if (direction & 1) {
|
||||||
|
return sub_98196C(image_id, x_offset, y_offset, bound_box_length_y, bound_box_length_x, bound_box_length_z, z_offset, get_current_rotation());
|
||||||
|
} else {
|
||||||
|
return sub_98196C(image_id, x_offset, y_offset, bound_box_length_x, bound_box_length_y, bound_box_length_z, z_offset, get_current_rotation());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
paint_struct * sub_98197C_rotated(
|
paint_struct * sub_98197C_rotated(
|
||||||
uint8 direction,
|
uint8 direction,
|
||||||
uint32 image_id,
|
uint32 image_id,
|
||||||
|
@ -46,3 +61,12 @@ paint_struct * sub_98199C_rotated(
|
||||||
return sub_98199C(image_id, x_offset, y_offset, bound_box_length_x, bound_box_length_y, bound_box_length_z, z_offset, bound_box_offset_x, bound_box_offset_y, bound_box_offset_z, get_current_rotation());
|
return sub_98199C(image_id, x_offset, y_offset, bound_box_length_x, bound_box_length_y, bound_box_length_z, z_offset, bound_box_offset_x, bound_box_offset_y, bound_box_offset_z, get_current_rotation());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void paint_util_push_tunnel_rotated(uint8 direction, uint16 height, uint8 type)
|
||||||
|
{
|
||||||
|
if (direction & 1) {
|
||||||
|
paint_util_push_tunnel_right(height, type);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_left(height, type);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -6264,7 +6264,7 @@ const TRACK_PAINT_FUNCTION_GETTER RideTypeTrackPaintFunctions[91] = {
|
||||||
get_track_paint_function_maze, // RIDE_TYPE_MAZE
|
get_track_paint_function_maze, // RIDE_TYPE_MAZE
|
||||||
get_track_paint_function_spiral_slide, // RIDE_TYPE_SPIRAL_SLIDE
|
get_track_paint_function_spiral_slide, // RIDE_TYPE_SPIRAL_SLIDE
|
||||||
get_track_paint_function_go_karts, // RIDE_TYPE_GO_KARTS
|
get_track_paint_function_go_karts, // RIDE_TYPE_GO_KARTS
|
||||||
0, // RIDE_TYPE_LOG_FLUME
|
get_track_paint_function_log_flume, // RIDE_TYPE_LOG_FLUME
|
||||||
get_track_paint_function_river_rapids, // RIDE_TYPE_RIVER_RAPIDS
|
get_track_paint_function_river_rapids, // RIDE_TYPE_RIVER_RAPIDS
|
||||||
get_track_paint_function_dodgems, // RIDE_TYPE_DODGEMS
|
get_track_paint_function_dodgems, // RIDE_TYPE_DODGEMS
|
||||||
get_track_paint_function_pirate_ship, // RIDE_TYPE_PIRATE_SHIP
|
get_track_paint_function_pirate_ship, // RIDE_TYPE_PIRATE_SHIP
|
||||||
|
|
|
@ -1117,6 +1117,55 @@ void track_paint_util_right_quarter_turn_3_tiles_paint(sint8 thickness, sint16 h
|
||||||
sub_98197C(imageId, (sint8) offset.x, (sint8) offset.y, boundsLength.x, boundsLength.y, thickness, height, boundsOffset.x, boundsOffset.y, height + boundsOffset.z, rotation);
|
sub_98197C(imageId, (sint8) offset.x, (sint8) offset.y, boundsLength.x, boundsLength.y, thickness, height, boundsOffset.x, boundsOffset.y, height + boundsOffset.z, rotation);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void track_paint_util_right_quarter_turn_3_tiles_paint_2(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation)
|
||||||
|
{
|
||||||
|
track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(thickness, height, direction, trackSequence, colourFlags, sprites, rotation, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation, sint32 heightOffset)
|
||||||
|
{
|
||||||
|
sint8 sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||||
|
if (sprite < 0) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
uint32 imageId = sprites[(direction + 1) % 4][sprite] | colourFlags;
|
||||||
|
|
||||||
|
switch (direction) {
|
||||||
|
case 0:
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 16, 16, height + heightOffset, rotation); break;
|
||||||
|
case 3: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 1:
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 16, 0, height + heightOffset, rotation); break;
|
||||||
|
case 3: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 2:
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 0, 0, height + heightOffset, rotation); break;
|
||||||
|
case 3: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
case 3:
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 0, 16, height + heightOffset, rotation); break;
|
||||||
|
case 3: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void track_paint_util_right_quarter_turn_3_tiles_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType)
|
void track_paint_util_right_quarter_turn_3_tiles_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType)
|
||||||
{
|
{
|
||||||
if (direction == 0 && trackSequence == 0) {
|
if (direction == 0 && trackSequence == 0) {
|
||||||
|
@ -1141,6 +1190,11 @@ void track_paint_util_right_quarter_turn_3_tiles_tunnel(sint16 height, uint8 dir
|
||||||
|
|
||||||
static const sint8 left_quarter_turn_3_tiles_sprite_map[] = {2, -1, 1, 0};
|
static const sint8 left_quarter_turn_3_tiles_sprite_map[] = {2, -1, 1, 0};
|
||||||
void track_paint_util_left_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation)
|
void track_paint_util_left_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation)
|
||||||
|
{
|
||||||
|
track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(thickness, height, direction, trackSequence, colourFlags, sprites, rotation, 0);
|
||||||
|
}
|
||||||
|
|
||||||
|
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation, sint32 heightOffset)
|
||||||
{
|
{
|
||||||
sint8 sprite = left_quarter_turn_3_tiles_sprite_map[trackSequence];
|
sint8 sprite = left_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||||
if (sprite < 0) {
|
if (sprite < 0) {
|
||||||
|
@ -1152,38 +1206,55 @@ void track_paint_util_left_quarter_turn_3_tiles_paint(sint8 thickness, sint16 he
|
||||||
switch (direction) {
|
switch (direction) {
|
||||||
case 0:
|
case 0:
|
||||||
switch (trackSequence) {
|
switch (trackSequence) {
|
||||||
case 0: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height, rotation); break;
|
case 0: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 16, 0, height, rotation); break;
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 16, 0, height + heightOffset, rotation); break;
|
||||||
case 3: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height, rotation); break;
|
case 3: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 1:
|
case 1:
|
||||||
switch (trackSequence) {
|
switch (trackSequence) {
|
||||||
case 0: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height, rotation); break;
|
case 0: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 0, 0, height, rotation); break;
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 0, 0, height + heightOffset, rotation); break;
|
||||||
case 3: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height, rotation); break;
|
case 3: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 2:
|
case 2:
|
||||||
switch (trackSequence) {
|
switch (trackSequence) {
|
||||||
case 0: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height, rotation); break;
|
case 0: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 0, 16, height, rotation); break;
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 0, 16, height + heightOffset, rotation); break;
|
||||||
case 3: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height, rotation); break;
|
case 3: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case 3:
|
case 3:
|
||||||
switch (trackSequence) {
|
switch (trackSequence) {
|
||||||
case 0: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height, rotation); break;
|
case 0: sub_98197C(imageId, 0, 0, 20, 32, thickness, height, 6, 0, height + heightOffset, rotation); break;
|
||||||
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 16, 16, height, rotation); break;
|
case 2: sub_98197C(imageId, 0, 0, 16, 16, thickness, height, 16, 16, height + heightOffset, rotation); break;
|
||||||
case 3: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height, rotation); break;
|
case 3: sub_98197C(imageId, 0, 0, 32, 20, thickness, height, 0, 6, height + heightOffset, rotation); break;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// void track_paint_util_left_quarter_turn_3_tiles_paint_2(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[][5])
|
||||||
|
// {
|
||||||
|
// sint8 sprite = right_quarter_turn_5_tiles_sprite_map[trackSequence];
|
||||||
|
// if (sprite < 0) {
|
||||||
|
// return;
|
||||||
|
// }
|
||||||
|
//
|
||||||
|
// const sprite_bb *spriteBB = &sprites[direction][sprite];
|
||||||
|
// uint32 imageId = spriteBB->sprite_id | colourFlags;
|
||||||
|
// sub_98197C(imageId,
|
||||||
|
// (sint8)spriteBB->offset.x, (sint8)spriteBB->offset.y,
|
||||||
|
// spriteBB->bb_size.x, spriteBB->bb_size.y, (sint8)spriteBB->bb_size.z,
|
||||||
|
// height + spriteBB->offset.z,
|
||||||
|
// spriteBB->bb_offset.x, spriteBB->bb_offset.y, height + spriteBB->bb_offset.z,
|
||||||
|
// rotation);
|
||||||
|
// }
|
||||||
|
|
||||||
void track_paint_util_left_quarter_turn_3_tiles_tunnel(sint16 height, uint8 tunnelType, uint8 direction, uint8 trackSequence)
|
void track_paint_util_left_quarter_turn_3_tiles_tunnel(sint16 height, uint8 tunnelType, uint8 direction, uint8 trackSequence)
|
||||||
{
|
{
|
||||||
if (direction == 0 && trackSequence == 0) {
|
if (direction == 0 && trackSequence == 0) {
|
||||||
|
@ -1260,6 +1331,43 @@ void track_paint_util_spinning_tunnel_paint(sint8 thickness, sint16 height, uint
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void track_paint_util_onride_photo_paint(uint8 direction, sint32 height, rct_map_element *mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][3] =
|
||||||
|
{
|
||||||
|
{ SPR_ON_RIDE_PHOTO_SIGN_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S },
|
||||||
|
{ SPR_ON_RIDE_PHOTO_SIGN_NW_SE, SPR_ON_RIDE_PHOTO_CAMERA_W, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_W },
|
||||||
|
{ SPR_ON_RIDE_PHOTO_SIGN_NE_SW, SPR_ON_RIDE_PHOTO_CAMERA_N, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_N },
|
||||||
|
{ SPR_ON_RIDE_PHOTO_SIGN_SE_NW, SPR_ON_RIDE_PHOTO_CAMERA_E, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_E },
|
||||||
|
};
|
||||||
|
|
||||||
|
bool takingPhoto = (mapElement->properties.track.sequence & 0xF0) != 0;
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_MISC];
|
||||||
|
uint32 flashImageId = imageIds[direction][takingPhoto ? 2 : 1] | gTrackColours[SCHEME_MISC];
|
||||||
|
switch (direction) {
|
||||||
|
case 0:
|
||||||
|
sub_98196C(imageId, 26, 0, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(imageId, 26, 31, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(flashImageId, 6, 0, 1, 1, 19, height, get_current_rotation());
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
sub_98196C(imageId, 0, 6, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(imageId, 31, 6, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(flashImageId, 0, 26, 1, 1, 19, height, get_current_rotation());
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
sub_98196C(imageId, 6, 0, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(imageId, 6, 31, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(flashImageId, 26, 31, 1, 1, 19, height, get_current_rotation());
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
sub_98196C(imageId, 0, 26, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(imageId, 31, 26, 1, 1, 19, height, get_current_rotation());
|
||||||
|
sub_98196C(flashImageId, 31, 6, 1, 1, 19, height, get_current_rotation());
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
static int pick_ride_type_for_drawing(int rideType, int trackType)
|
static int pick_ride_type_for_drawing(int rideType, int trackType)
|
||||||
{
|
{
|
||||||
if (rideType == RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER) {
|
if (rideType == RIDE_TYPE_VERTICAL_DROP_ROLLER_COASTER) {
|
||||||
|
|
|
@ -232,12 +232,16 @@ void track_paint_util_draw_pier(rct_ride * ride, const rct_ride_entrance_definit
|
||||||
void track_paint_util_right_quarter_turn_5_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5], const rct_xy16 offsets[4][5], const rct_xy16 boundsLengths[4][5], const rct_xyz16 boundsOffsets[4][5], uint8 rotation);
|
void track_paint_util_right_quarter_turn_5_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5], const rct_xy16 offsets[4][5], const rct_xy16 boundsLengths[4][5], const rct_xyz16 boundsOffsets[4][5], uint8 rotation);
|
||||||
void track_paint_util_right_quarter_turn_5_tiles_paint_2(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[][5]);
|
void track_paint_util_right_quarter_turn_5_tiles_paint_2(sint16 height, int direction, uint8 rotation, uint8 trackSequence, uint32 colourFlags, const sprite_bb sprites[][5]);
|
||||||
void track_paint_util_right_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], const rct_xy16 offsets[4][3], const rct_xy16 boundsLengths[4][3], const rct_xyz16 boundsOffsets[4][3], uint8 rotation);
|
void track_paint_util_right_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], const rct_xy16 offsets[4][3], const rct_xy16 boundsLengths[4][3], const rct_xyz16 boundsOffsets[4][3], uint8 rotation);
|
||||||
|
void track_paint_util_right_quarter_turn_3_tiles_paint_2(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation);
|
||||||
|
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation, sint32 heightOffset);
|
||||||
void track_paint_util_right_quarter_turn_3_tiles_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType);
|
void track_paint_util_right_quarter_turn_3_tiles_tunnel(sint16 height, uint8 direction, uint8 trackSequence, uint8 tunnelType);
|
||||||
void track_paint_util_left_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation);
|
void track_paint_util_left_quarter_turn_3_tiles_paint(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation);
|
||||||
|
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(sint8 thickness, sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3], uint8 rotation, sint32 heightOffset);
|
||||||
void track_paint_util_left_quarter_turn_3_tiles_tunnel(sint16 height, uint8 tunnelType, uint8 direction, uint8 trackSequence);
|
void track_paint_util_left_quarter_turn_3_tiles_tunnel(sint16 height, uint8 tunnelType, uint8 direction, uint8 trackSequence);
|
||||||
void track_paint_util_left_quarter_turn_1_tile_paint(sint8 thickness, sint16 height, sint16 boundBoxZOffset, int direction, uint32 colourFlags, const uint32 * sprites, uint8 rotation);
|
void track_paint_util_left_quarter_turn_1_tile_paint(sint8 thickness, sint16 height, sint16 boundBoxZOffset, int direction, uint32 colourFlags, const uint32 * sprites, uint8 rotation);
|
||||||
void track_paint_util_left_quarter_turn_1_tile_tunnel(sint16 height, uint8 direction, uint8 trackSequence);
|
void track_paint_util_left_quarter_turn_1_tile_tunnel(sint16 height, uint8 direction, uint8 trackSequence);
|
||||||
void track_paint_util_spinning_tunnel_paint(sint8 thickness, sint16 height, uint8 direction, uint8 rotation);
|
void track_paint_util_spinning_tunnel_paint(sint8 thickness, sint16 height, uint8 direction, uint8 rotation);
|
||||||
|
void track_paint_util_onride_photo_paint(uint8 direction, sint32 height, rct_map_element *mapElement);
|
||||||
void track_paint_util_right_helix_up_small_quarter_tiles_paint(const sint8 thickness[2], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3][2], const rct_xy16 offsets[4][3][2], const rct_xy16 boundsLengths[4][3][2], const rct_xyz16 boundsOffsets[4][3][2], uint8 rotation);
|
void track_paint_util_right_helix_up_small_quarter_tiles_paint(const sint8 thickness[2], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][3][2], const rct_xy16 offsets[4][3][2], const rct_xy16 boundsLengths[4][3][2], const rct_xyz16 boundsOffsets[4][3][2], uint8 rotation);
|
||||||
void track_paint_util_right_helix_up_large_quarter_tiles_paint(const sint8 thickness[2], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5][2], const rct_xy16 offsets[4][5][2], const rct_xy16 boundsLengths[4][5][2], const rct_xyz16 boundsOffsets[4][5][2], uint8 rotation);
|
void track_paint_util_right_helix_up_large_quarter_tiles_paint(const sint8 thickness[2], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][5][2], const rct_xy16 offsets[4][5][2], const rct_xy16 boundsLengths[4][5][2], const rct_xyz16 boundsOffsets[4][5][2], uint8 rotation);
|
||||||
void track_paint_util_eighth_to_diag_tiles_paint(const sint8 thickness[4][4], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][4], const rct_xy16 offsets[4][4], const rct_xy16 boundsLengths[4][4], const rct_xyz16 boundsOffsets[4][4], uint8 rotation);
|
void track_paint_util_eighth_to_diag_tiles_paint(const sint8 thickness[4][4], sint16 height, int direction, uint8 trackSequence, uint32 colourFlags, const uint32 sprites[4][4], const rct_xy16 offsets[4][4], const rct_xy16 boundsLengths[4][4], const rct_xyz16 boundsOffsets[4][4], uint8 rotation);
|
||||||
|
@ -256,6 +260,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int trackType, int direc
|
||||||
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int trackType, int direction);
|
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int trackType, int direction);
|
||||||
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int trackType, int direction);
|
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int trackType, int direction);
|
||||||
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int trackType, int direction);
|
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int trackType, int direction);
|
||||||
|
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int trackType, int direction);
|
||||||
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int trackType, int direction);
|
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int trackType, int direction);
|
||||||
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int trackType, int direction);
|
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int trackType, int direction);
|
||||||
TRACK_PAINT_FUNCTION get_track_paint_function_pirate_ship(int trackType, int direction);
|
TRACK_PAINT_FUNCTION get_track_paint_function_pirate_ship(int trackType, int direction);
|
||||||
|
|
|
@ -13,3 +13,704 @@
|
||||||
* A full copy of the GNU General Public License can be found in licence.txt
|
* A full copy of the GNU General Public License can be found in licence.txt
|
||||||
*****************************************************************************/
|
*****************************************************************************/
|
||||||
#pragma endregion
|
#pragma endregion
|
||||||
|
|
||||||
|
#include "../../interface/viewport.h"
|
||||||
|
#include "../../paint/paint.h"
|
||||||
|
#include "../../paint/supports.h"
|
||||||
|
#include "../../world/sprite.h"
|
||||||
|
#include "../track.h"
|
||||||
|
#include "../track_paint.h"
|
||||||
|
|
||||||
|
enum {
|
||||||
|
SPR_LOG_FLUME_FLAT_SW_NE = 20996,
|
||||||
|
SPR_LOG_FLUME_FLAT_NW_SE = 20997,
|
||||||
|
SPR_LOG_FLUME_FLAT_NE_SW = 20998,
|
||||||
|
SPR_LOG_FLUME_FLAT_SE_NW = 20999,
|
||||||
|
SPR_LOG_FLUME_FLAT_FRONT_SW_NE = 21000,
|
||||||
|
SPR_LOG_FLUME_FLAT_FRONT_NW_SE = 21001,
|
||||||
|
SPR_LOG_FLUME_FLAT_FRONT_NE_SW = 21002,
|
||||||
|
SPR_LOG_FLUME_FLAT_FRONT_SE_NW = 21003,
|
||||||
|
SPR_LOG_FLUME_REVERSER_SW_NE = 21004,
|
||||||
|
SPR_LOG_FLUME_REVERSER_NW_SE = 21005,
|
||||||
|
SPR_LOG_FLUME_REVERSER_NE_SW = 21006,
|
||||||
|
SPR_LOG_FLUME_REVERSER_SE_NW = 21007,
|
||||||
|
SPR_LOG_FLUME_REVERSER_FRONT_SW_NE = 21008,
|
||||||
|
SPR_LOG_FLUME_REVERSER_FRONT_NW_SE = 21009,
|
||||||
|
SPR_LOG_FLUME_REVERSER_FRONT_NE_SW = 21010,
|
||||||
|
SPR_LOG_FLUME_REVERSER_FRONT_SE_NW = 21011,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_SW_NE = 21012,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_NW_SE = 21013,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_NE_SW = 21014,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_SE_NW = 21015,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SW_NE = 21016,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NW_SE = 21017,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NE_SW = 21018,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SE_NW = 21019,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_SW_NE = 21020,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_NW_SE = 21021,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_NE_SW = 21022,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_SE_NW = 21023,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SW_NE = 21024,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NW_SE = 21025,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NE_SW = 21026,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SE_NW = 21027,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_SW_NE = 21028,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_NW_SE = 21029,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_NE_SW = 21030,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_SE_NW = 21031,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_FRONT_SW_NE = 21032,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_FRONT_NW_SE = 21033,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_FRONT_NE_SW = 21034,
|
||||||
|
SPR_LOG_FLUME_25_DEG_UP_FRONT_SE_NW = 21035,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_NE_SW = 21036,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_SE_NW = 21037,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_SW_NE = 21038,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_NW_SE = 21039,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_NE_SW = 21040,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_SE_NW = 21041,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_SW_NE = 21042,
|
||||||
|
SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_NW_SE = 21043,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_NE_SW = 21044,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_SE_NW = 21045,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_SW_NE = 21046,
|
||||||
|
SPR_LOG_FLUME_25_DEG_DOWN_NW_SE = 21047,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_0 = 21048,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_2 = 21049,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_3 = 21050,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_0 = 21051,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_2 = 21052,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_3 = 21053,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_0 = 21054,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_2 = 21055,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_3 = 21056,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_0 = 21057,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_2 = 21058,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_3 = 21059,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_0 = 21060,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_2 = 21061,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_3 = 21062,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_0 = 21063,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_2 = 21064,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_3 = 21065,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_0 = 21066,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_2 = 21067,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_3 = 21068,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_0 = 21069,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_2 = 21070,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_3 = 21071,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_0 = 21072,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_2 = 21073,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_3 = 21074,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_0 = 21075,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_2 = 21076,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_3 = 21077,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_0 = 21078,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_2 = 21079,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_3 = 21080,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_0 = 21081,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_2 = 21082,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_3 = 21083,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_3 = 21084,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_2 = 21085,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_1 = 21086,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_0 = 21087,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_0 = 21088,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_1 = 21089,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_2 = 21090,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_3 = 21091,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_3 = 21092,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_2 = 21093,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_1 = 21094,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_0 = 21095,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_0 = 21096,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_1 = 21097,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_2 = 21098,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_3 = 21099,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_0 = 21100,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_1 = 21101,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_2 = 21102,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_3 = 21103,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_0 = 21104,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_1 = 21105,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_2 = 21106,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_3 = 21107,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_0 = 21108,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_1 = 21109,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_2 = 21110,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_3 = 21111,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_0 = 21112,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_1 = 21113,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_2 = 21114,
|
||||||
|
SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_3 = 21115,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_0 = 21116,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_1 = 21117,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_2 = 21118,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_3 = 21119,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_3 = 21120,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_2 = 21121,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_1 = 21122,
|
||||||
|
SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_0 = 21123,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_0 = 21124,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_1 = 21125,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_2 = 21126,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_3 = 21127,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_3 = 21128,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_2 = 21129,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_1 = 21130,
|
||||||
|
SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_0 = 21131,
|
||||||
|
};
|
||||||
|
|
||||||
|
static const uint32 LogFlumeTrackFlatImageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_FLAT_SW_NE, SPR_LOG_FLUME_FLAT_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_NW_SE, SPR_LOG_FLUME_FLAT_FRONT_NW_SE },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_NE_SW, SPR_LOG_FLUME_FLAT_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_SE_NW, SPR_LOG_FLUME_FLAT_FRONT_SE_NW },
|
||||||
|
};
|
||||||
|
|
||||||
|
static void paint_log_flume_track_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
uint32 imageId = LogFlumeTrackFlatImageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = LogFlumeTrackFlatImageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 26, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_station(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
rct_ride *ride = get_ride(rideIndex);
|
||||||
|
|
||||||
|
uint32 imageId = LogFlumeTrackFlatImageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 1, height, 0, 6, height + 3);
|
||||||
|
|
||||||
|
if (direction & 1) {
|
||||||
|
imageId = SPR_STATION_BASE_B_NW_SE | gTrackColours[SCHEME_MISC];
|
||||||
|
} else {
|
||||||
|
imageId = SPR_STATION_BASE_B_SW_NE | gTrackColours[SCHEME_MISC];
|
||||||
|
}
|
||||||
|
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||||
|
|
||||||
|
if (direction & 1) {
|
||||||
|
metal_a_supports_paint_setup(3, 6, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
metal_a_supports_paint_setup(3, 7, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
} else {
|
||||||
|
metal_a_supports_paint_setup(3, 5, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
metal_a_supports_paint_setup(3, 8, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
track_paint_util_draw_station(rideIndex, trackSequence, direction, height + 2, mapElement);
|
||||||
|
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
|
||||||
|
|
||||||
|
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_SW_NE, SPR_LOG_FLUME_25_DEG_UP_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_NW_SE, SPR_LOG_FLUME_25_DEG_UP_FRONT_NW_SE },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_NE_SW, SPR_LOG_FLUME_25_DEG_UP_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_SE_NW, SPR_LOG_FLUME_25_DEG_UP_FRONT_SE_NW },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 50, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 56, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_flat_to_25_deg_up(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_SW_NE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_NW_SE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NW_SE },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_NE_SW, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_SE_NW, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SE_NW },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 42, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 48, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_25_deg_up_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_SW_NE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_NW_SE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NW_SE },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_NE_SW, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_SE_NW, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SE_NW },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 34, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 40, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_SW_NE, SPR_LOG_FLUME_25_DEG_UP_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_NW_SE, SPR_LOG_FLUME_25_DEG_UP_FRONT_SE_NW },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_NE_SW, SPR_LOG_FLUME_25_DEG_UP_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_SE_NW, SPR_LOG_FLUME_25_DEG_UP_FRONT_NW_SE },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 50, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 8, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_2);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_1);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 56, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_flat_to_25_deg_down(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_SW_NE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_NW_SE, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SE_NW },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_NE_SW, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_FLAT_TO_25_DEG_DOWN_SE_NW, SPR_LOG_FLUME_25_DEG_UP_TO_FLAT_FRONT_NW_SE },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 34, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height + 8, TUNNEL_12);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height - 8, TUNNEL_0);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 40, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_25_deg_down_to_flat(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_SW_NE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_NW_SE, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SE_NW },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_NE_SW, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_25_DEG_DOWN_TO_FLAT_SE_NW, SPR_LOG_FLUME_FLAT_TO_25_DEG_UP_FRONT_NW_SE },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 42, height, 0, 27, height);
|
||||||
|
|
||||||
|
if (track_paint_util_should_paint_supports(gPaintMapPosition)) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 3, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_2);
|
||||||
|
} else {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 48, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_s_bend_left(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][4][2] =
|
||||||
|
{
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_0 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_NW_NE_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_3 } },
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_0 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_SW_NW_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_3 } },
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_SE_SW_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_NE_NW_NE_SEQ_0 } },
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_NE_SE_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_NW_SW_NW_SEQ_0 } },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
sint16 bboy;
|
||||||
|
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0:
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27);
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
bboy = (direction == 0 || direction == 1) ? 0 : 6;
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27);
|
||||||
|
if (direction == 0 || direction == 1) {
|
||||||
|
metal_a_supports_paint_setup(3, 5 + (direction & 1), (direction & 1), height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
bboy = (direction == 2 || direction == 3) ? 0 : 6;
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27);
|
||||||
|
if (direction == 2 || direction == 3) {
|
||||||
|
metal_a_supports_paint_setup(3, 5 + (direction & 1), (direction & 1), height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27);
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (trackSequence == 0) {
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
} else if (trackSequence == 3) {
|
||||||
|
if (direction == 1 || direction == 2) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_s_bend_right(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][4][2] =
|
||||||
|
{
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_0 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_SE_NE_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_3 } },
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_0 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_SW_SE_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_3 } },
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_NW_SW_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_NE_SE_NE_SEQ_0 } },
|
||||||
|
{ { SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_1, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_2 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_1 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_NE_NW_SEQ_3, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SE_SEQ_0 } },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][trackSequence][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][trackSequence][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
sint16 bboy;
|
||||||
|
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0:
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27);
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
bboy = (direction == 2 || direction == 3) ? 0 : 6;
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27);
|
||||||
|
if (direction == 0 || direction == 1) {
|
||||||
|
metal_a_supports_paint_setup(3, 8 - (direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
bboy = (direction == 0 || direction == 1) ? 0 : 6;
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 26, 2, height, 0, bboy, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 26, 0, height, 0, bboy, height + 27);
|
||||||
|
if (direction == 2 || direction == 3) {
|
||||||
|
metal_a_supports_paint_setup(3, 8 - (direction & 1), 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 27, 2, height, 0, 2, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 27, 0, height, 0, 2, height + 27);
|
||||||
|
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_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
if (trackSequence == 0) {
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
} else if (trackSequence == 3) {
|
||||||
|
if (direction == 1 || direction == 2) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_left_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][3] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_NW_SW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_NE_NW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_SE_NE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_SW_SE_SEQ_3 },
|
||||||
|
};
|
||||||
|
|
||||||
|
static const uint32 imageIdsFront[4][3] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_3 },
|
||||||
|
};
|
||||||
|
|
||||||
|
track_paint_util_left_quarter_turn_3_tiles_paint(2, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], imageIds, get_current_rotation());
|
||||||
|
track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(0, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], imageIdsFront, get_current_rotation(), 27);
|
||||||
|
|
||||||
|
if (trackSequence != 1 && trackSequence != 2) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0:
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
if (direction == 2 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction ^ 1, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B4 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); break;
|
||||||
|
case 2: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0); break;
|
||||||
|
case 3: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_right_quarter_turn_3_tiles(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][3] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_NW_NE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_NE_SE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_SE_SW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_SW_NW_SEQ_3 }
|
||||||
|
};
|
||||||
|
|
||||||
|
static const uint32 imageIdsFront[4][3] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_NW_NE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SW_SE_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SE_SW_SEQ_3 },
|
||||||
|
{ SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_0, SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_2, SPR_LOG_FLUME_3_TURN_FRONT_SW_NW_SEQ_3 },
|
||||||
|
};
|
||||||
|
|
||||||
|
track_paint_util_right_quarter_turn_3_tiles_paint_2(2, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], imageIds, get_current_rotation());
|
||||||
|
track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(0, height, direction, trackSequence, gTrackColours[SCHEME_TRACK], imageIdsFront, get_current_rotation(), 27);
|
||||||
|
|
||||||
|
if (trackSequence != 1 && trackSequence != 2) {
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0:
|
||||||
|
if (direction == 0 || direction == 3) {
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
if (direction == 0 || direction == 1) {
|
||||||
|
paint_util_push_tunnel_rotated(direction ^ 1, height, TUNNEL_0);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
switch (trackSequence) {
|
||||||
|
case 0: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_BC | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0); break;
|
||||||
|
case 2: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C0 | SEGMENT_C4 | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF, 0); break;
|
||||||
|
case 3: paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D4, direction), 0xFFFF, 0); break;
|
||||||
|
}
|
||||||
|
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
uint32 imageId = SPR_STATION_BASE_D | 0x20000000;
|
||||||
|
sub_98196C(imageId, 0, 0, 32, 32, 1, height, get_current_rotation());
|
||||||
|
|
||||||
|
if (direction & 1) {
|
||||||
|
metal_a_supports_paint_setup(2, 6, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
metal_a_supports_paint_setup(2, 7, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
} else {
|
||||||
|
metal_a_supports_paint_setup(1, 5, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
metal_a_supports_paint_setup(1, 8, 6, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
}
|
||||||
|
|
||||||
|
imageId = LogFlumeTrackFlatImageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 0, height, 0, 6, height + 3);
|
||||||
|
|
||||||
|
imageId = LogFlumeTrackFlatImageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 1, 21, height, 0, 27, height + 5);
|
||||||
|
|
||||||
|
track_paint_util_onride_photo_paint(direction, height + 3, mapElement);
|
||||||
|
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_6);
|
||||||
|
paint_util_set_segment_support_height(SEGMENTS_ALL, 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 48, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
static void paint_log_flume_track_reverser(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
|
{
|
||||||
|
static const uint32 imageIds[4][2] =
|
||||||
|
{
|
||||||
|
{ SPR_LOG_FLUME_REVERSER_SW_NE, SPR_LOG_FLUME_REVERSER_FRONT_SW_NE },
|
||||||
|
{ SPR_LOG_FLUME_REVERSER_NW_SE, SPR_LOG_FLUME_REVERSER_FRONT_NW_SE },
|
||||||
|
{ SPR_LOG_FLUME_REVERSER_NE_SW, SPR_LOG_FLUME_REVERSER_FRONT_NE_SW },
|
||||||
|
{ SPR_LOG_FLUME_REVERSER_SE_NW, SPR_LOG_FLUME_REVERSER_FRONT_SE_NW },
|
||||||
|
};
|
||||||
|
|
||||||
|
uint32 imageId = imageIds[direction][0] | gTrackColours[SCHEME_TRACK];
|
||||||
|
uint32 frontImageId = imageIds[direction][1] | gTrackColours[SCHEME_TRACK];
|
||||||
|
|
||||||
|
sub_98197C_rotated(direction, imageId, 0, 0, 32, 20, 2, height, 0, 6, height);
|
||||||
|
sub_98197C_rotated(direction, frontImageId, 0, 0, 32, 1, 26, height, 0, 27, height);
|
||||||
|
|
||||||
|
metal_a_supports_paint_setup(3, 4, 0, height, gTrackColours[SCHEME_SUPPORTS]);
|
||||||
|
|
||||||
|
paint_util_push_tunnel_rotated(direction, height, TUNNEL_0);
|
||||||
|
paint_util_set_segment_support_height(paint_util_rotate_segments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
|
||||||
|
paint_util_set_general_support_height(height + 32, 0x20);
|
||||||
|
}
|
||||||
|
|
||||||
|
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int trackType, int direction)
|
||||||
|
{
|
||||||
|
switch (trackType) {
|
||||||
|
case TRACK_ELEM_FLAT:
|
||||||
|
return paint_log_flume_track_flat;
|
||||||
|
|
||||||
|
case TRACK_ELEM_END_STATION:
|
||||||
|
case TRACK_ELEM_BEGIN_STATION:
|
||||||
|
case TRACK_ELEM_MIDDLE_STATION:
|
||||||
|
return paint_log_flume_track_station;
|
||||||
|
case TRACK_ELEM_25_DEG_UP:
|
||||||
|
return paint_log_flume_track_25_deg_up;
|
||||||
|
case TRACK_ELEM_FLAT_TO_25_DEG_UP:
|
||||||
|
return paint_log_flume_track_flat_to_25_deg_up;
|
||||||
|
case TRACK_ELEM_25_DEG_UP_TO_FLAT:
|
||||||
|
return paint_log_flume_track_25_deg_up_to_flat;
|
||||||
|
case TRACK_ELEM_25_DEG_DOWN:
|
||||||
|
return paint_log_flume_track_25_deg_down;
|
||||||
|
case TRACK_ELEM_FLAT_TO_25_DEG_DOWN:
|
||||||
|
return paint_log_flume_track_flat_to_25_deg_down;
|
||||||
|
case TRACK_ELEM_25_DEG_DOWN_TO_FLAT:
|
||||||
|
return paint_log_flume_track_25_deg_down_to_flat;
|
||||||
|
case TRACK_ELEM_S_BEND_LEFT:
|
||||||
|
return paint_log_flume_track_s_bend_left;
|
||||||
|
case TRACK_ELEM_S_BEND_RIGHT:
|
||||||
|
return paint_log_flume_track_s_bend_right;
|
||||||
|
case TRACK_ELEM_LEFT_QUARTER_TURN_3_TILES:
|
||||||
|
return paint_log_flume_track_left_quarter_turn_3_tiles;
|
||||||
|
case TRACK_ELEM_RIGHT_QUARTER_TURN_3_TILES:
|
||||||
|
return paint_log_flume_track_right_quarter_turn_3_tiles;
|
||||||
|
case TRACK_ELEM_ON_RIDE_PHOTO:
|
||||||
|
return paint_log_flume_track_on_ride_photo;
|
||||||
|
case TRACK_ELEM_LOG_FLUME_REVERSER:
|
||||||
|
return paint_log_flume_track_reverser;
|
||||||
|
}
|
||||||
|
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
|
|
|
@ -693,56 +693,7 @@ static void paint_river_rapids_track_rapids(uint8 rideIndex, uint8 trackSequence
|
||||||
static void paint_river_rapids_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
static void paint_river_rapids_track_on_ride_photo(uint8 rideIndex, uint8 trackSequence, uint8 direction, int height, rct_map_element * mapElement)
|
||||||
{
|
{
|
||||||
paint_river_rapids_track_flat(rideIndex, trackSequence, direction, height, mapElement);
|
paint_river_rapids_track_flat(rideIndex, trackSequence, direction, height, mapElement);
|
||||||
|
track_paint_util_onride_photo_paint(direction, height + 13, mapElement);
|
||||||
uint32 imageId;
|
|
||||||
|
|
||||||
const bool takingPhoto = (bool) (mapElement->properties.track.sequence & 0xF0);
|
|
||||||
switch (direction) {
|
|
||||||
case 0:
|
|
||||||
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 | 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) | 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 | gTrackColours[SCHEME_MISC];
|
|
||||||
sub_98196C(imageId, 0, 6, 1, 1, 19, height + 13, get_current_rotation());
|
|
||||||
|
|
||||||
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) | 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 | gTrackColours[SCHEME_MISC];
|
|
||||||
sub_98196C(imageId, 6, 0, 1, 1, 19, height + 13, get_current_rotation());
|
|
||||||
|
|
||||||
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) | 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 | gTrackColours[SCHEME_MISC];
|
|
||||||
sub_98196C(imageId, 0, 26, 1, 1, 19, height + 13, get_current_rotation());
|
|
||||||
|
|
||||||
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) | gTrackColours[SCHEME_MISC];
|
|
||||||
sub_98196C(imageId, 31, 6, 1, 1, 19, height + 13, get_current_rotation());
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
paint_util_set_general_support_height(height + 48, 0x20);
|
paint_util_set_general_support_height(height + 48, 0x20);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue