forked from rosebudai/OpenRCT2-Web
Merge pull request #12880 from richard-fine/directions
Further clean up of direction-handling code
This commit is contained in:
79 files changed
+258
-253
No files matched your search
@@ -296,31 +296,31 @@ bool track_paint_util_should_paint_supports(const CoordsXY& position)
|
||||
}
|
||||
|
||||
static void track_paint_util_draw_station_impl(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, uint16_t coverHeight,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
const TileElement* tileElement, int32_t fenceOffsetA, int32_t fenceOffsetB);
|
||||
|
||||
void track_paint_util_draw_station(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, const TileElement* tileElement)
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, const TileElement* tileElement)
|
||||
{
|
||||
track_paint_util_draw_station_impl(session, rideIndex, direction, height, height, tileElement, 5, 7);
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_2(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, const TileElement* tileElement,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, const TileElement* tileElement,
|
||||
int32_t fenceOffsetA, int32_t fenceOffsetB)
|
||||
{
|
||||
track_paint_util_draw_station_impl(session, rideIndex, direction, height, height, tileElement, fenceOffsetA, fenceOffsetB);
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_3(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, uint16_t coverHeight,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
const TileElement* tileElement)
|
||||
{
|
||||
track_paint_util_draw_station_impl(session, rideIndex, direction, height, coverHeight, tileElement, 5, 7);
|
||||
}
|
||||
|
||||
static void track_paint_util_draw_station_impl(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, uint16_t coverHeight,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
const TileElement* tileElement, int32_t fenceOffsetA, int32_t fenceOffsetB)
|
||||
{
|
||||
auto ride = get_ride(rideIndex);
|
||||
@@ -528,7 +528,7 @@ static void track_paint_util_draw_station_impl(
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_inverted(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, int32_t height, const TileElement* tileElement,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, int32_t height, const TileElement* tileElement,
|
||||
uint8_t stationVariant)
|
||||
{
|
||||
auto ride = get_ride(rideIndex);
|
||||
@@ -839,7 +839,7 @@ bool track_paint_util_draw_station_covers_2(
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_platform(
|
||||
paint_session* session, Ride* ride, uint8_t direction, int32_t height, int32_t zOffset, const TileElement* tileElement)
|
||||
paint_session* session, Ride* ride, Direction direction, int32_t height, int32_t zOffset, const TileElement* tileElement)
|
||||
{
|
||||
CoordsXY position = session->MapPosition;
|
||||
auto stationObj = ride_get_station_object(ride);
|
||||
@@ -884,7 +884,7 @@ void track_paint_util_draw_station_platform(
|
||||
}
|
||||
|
||||
void track_paint_util_draw_pier(
|
||||
paint_session* session, Ride* ride, const StationObject* stationObj, const CoordsXY& position, uint8_t direction,
|
||||
paint_session* session, Ride* ride, const StationObject* stationObj, const CoordsXY& position, Direction direction,
|
||||
int32_t height, const TileElement* tileElement, uint8_t rotation)
|
||||
{
|
||||
bool hasFence;
|
||||
@@ -930,13 +930,13 @@ void track_paint_util_draw_pier(
|
||||
}
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_metal_supports(paint_session* session, uint8_t direction, uint16_t height, uint32_t colour)
|
||||
void track_paint_util_draw_station_metal_supports(paint_session* session, Direction direction, uint16_t height, uint32_t colour)
|
||||
{
|
||||
track_paint_util_draw_station_metal_supports_2(session, direction, height, colour, 3);
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_metal_supports_2(
|
||||
paint_session* session, uint8_t direction, uint16_t height, uint32_t colour, uint8_t type)
|
||||
paint_session* session, Direction direction, uint16_t height, uint32_t colour, uint8_t type)
|
||||
{
|
||||
if (direction & 1)
|
||||
{
|
||||
@@ -999,7 +999,7 @@ constexpr CoordsXYZ defaultRightHelixUpSmallQuarterBoundOffsets[4][3][2] = {
|
||||
static constexpr const int8_t right_helix_up_small_quarter_tiles_sprite_map[] = { 0, -1, 1, 2 };
|
||||
|
||||
void track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, int32_t direction, uint8_t trackSequence,
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
uint32_t colourFlags, const uint32_t sprites[4][3][2], const CoordsXY offsets[4][3][2],
|
||||
const CoordsXY boundsLengths[4][3][2], const CoordsXYZ boundsOffsets[4][3][2])
|
||||
{
|
||||
@@ -1097,7 +1097,7 @@ constexpr CoordsXY defaultRightHelixUpLargeQuarterBoundLengths[4][5][2] = {
|
||||
|
||||
static constexpr const int8_t right_helix_up_large_quarter_sprite_map[] = { 0, -1, 1, 2, -1, 3, 4 };
|
||||
void track_paint_util_right_helix_up_large_quarter_tiles_paint(
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, int32_t direction, uint8_t trackSequence,
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
uint32_t colourFlags, const uint32_t sprites[4][5][2], const CoordsXY offsets[4][5][2],
|
||||
const CoordsXY boundsLengths[4][5][2], const CoordsXYZ boundsOffsets[4][5][2])
|
||||
{
|
||||
@@ -1270,7 +1270,7 @@ const uint8_t mapLeftEighthTurnToOrthogonal[] = { 4, 2, 3, 1, 0 };
|
||||
|
||||
static constexpr const int8_t eighth_to_diag_sprite_map[] = { 0, 1, 2, -1, 3 };
|
||||
void track_paint_util_eighth_to_diag_tiles_paint(
|
||||
paint_session* session, const int8_t thickness[4][4], int16_t height, int32_t direction, uint8_t trackSequence,
|
||||
paint_session* session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
uint32_t colourFlags, const uint32_t sprites[4][4], const CoordsXY offsets[4][4], const CoordsXY boundsLengths[4][4],
|
||||
const CoordsXYZ boundsOffsets[4][4])
|
||||
{
|
||||
@@ -1312,7 +1312,7 @@ static constexpr const int8_t diag_sprite_map[4][4] = {
|
||||
};
|
||||
|
||||
void track_paint_util_diag_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4], const CoordsXY offsets[4], const CoordsXY boundsLengths[4], const CoordsXYZ boundsOffsets[4])
|
||||
{
|
||||
int32_t index = diag_sprite_map[direction][trackSequence];
|
||||
@@ -1433,7 +1433,7 @@ static constexpr const int8_t right_quarter_turn_5_tiles_sprite_map[] = {
|
||||
};
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][5], const CoordsXY offsets[4][5], const CoordsXY boundsLengths[4][5],
|
||||
const CoordsXYZ boundsOffsets[4][5])
|
||||
{
|
||||
@@ -1454,7 +1454,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[][5])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_5_tiles_sprite_map[trackSequence];
|
||||
@@ -1472,7 +1472,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[][5])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_5_tiles_sprite_map[trackSequence];
|
||||
@@ -1489,7 +1489,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1510,7 +1510,7 @@ void track_paint_util_right_quarter_turn_5_tiles_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence)
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (trackSequence != 1 && trackSequence != 4)
|
||||
{
|
||||
@@ -1609,7 +1609,7 @@ static constexpr const int8_t right_quarter_turn_3_tiles_sprite_map[] = {
|
||||
};
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3], const CoordsXY offsets[4][3], const CoordsXY boundsLengths[4][3],
|
||||
const CoordsXYZ boundsOffsets[4][3])
|
||||
{
|
||||
@@ -1630,7 +1630,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_2(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3])
|
||||
{
|
||||
track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
|
||||
@@ -1638,7 +1638,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3], int32_t heightOffset)
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
@@ -1714,7 +1714,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_3(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[4][3])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
@@ -1731,7 +1731,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_3(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_4(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[4][3])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
@@ -1748,7 +1748,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_4(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1772,7 +1772,8 @@ void track_paint_util_right_quarter_turn_3_tiles_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1793,7 +1794,8 @@ void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1821,7 +1823,7 @@ static constexpr const int8_t left_quarter_turn_3_tiles_sprite_map[] = {
|
||||
};
|
||||
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3])
|
||||
{
|
||||
track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
|
||||
@@ -1829,7 +1831,7 @@ void track_paint_util_left_quarter_turn_3_tiles_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3], int32_t heightOffset)
|
||||
{
|
||||
int8_t sprite = left_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
@@ -1905,7 +1907,7 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_3_tiles_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t tunnelType, uint8_t direction, uint8_t trackSequence)
|
||||
paint_session* session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1929,8 +1931,8 @@ void track_paint_util_left_quarter_turn_3_tiles_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_1_tile_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, int32_t direction, uint32_t colourFlags,
|
||||
const uint32_t* sprites)
|
||||
paint_session* session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
uint32_t colourFlags, const uint32_t* sprites)
|
||||
{
|
||||
uint32_t imageId = sprites[direction] | colourFlags;
|
||||
|
||||
@@ -1952,7 +1954,7 @@ void track_paint_util_left_quarter_turn_1_tile_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_1_tile_tunnel(
|
||||
paint_session* session, uint8_t direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
paint_session* session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel)
|
||||
{
|
||||
track_paint_util_left_quarter_turn_1_tile_tunnel(
|
||||
@@ -1960,7 +1962,7 @@ void track_paint_util_right_quarter_turn_1_tile_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_1_tile_tunnel(
|
||||
paint_session* session, uint8_t direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
paint_session* session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1978,7 +1980,7 @@ void track_paint_util_left_quarter_turn_1_tile_tunnel(
|
||||
}
|
||||
}
|
||||
|
||||
void track_paint_util_spinning_tunnel_paint(paint_session* session, int8_t thickness, int16_t height, uint8_t direction)
|
||||
void track_paint_util_spinning_tunnel_paint(paint_session* session, int8_t thickness, int16_t height, Direction direction)
|
||||
{
|
||||
int32_t frame = gScenarioTicks >> 2 & 3;
|
||||
uint32_t colourFlags = session->TrackColours[SCHEME_SUPPORTS];
|
||||
@@ -2011,7 +2013,7 @@ void track_paint_util_spinning_tunnel_paint(paint_session* session, int8_t thick
|
||||
}
|
||||
|
||||
void track_paint_util_onride_photo_small_paint(
|
||||
paint_session* session, uint8_t direction, int32_t height, const TileElement* tileElement)
|
||||
paint_session* session, Direction direction, int32_t height, const TileElement* tileElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
{ SPR_ON_RIDE_PHOTO_SIGN_SMALL_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_SMALL_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_S },
|
||||
@@ -2049,7 +2051,7 @@ void track_paint_util_onride_photo_small_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_onride_photo_paint(
|
||||
paint_session* session, uint8_t direction, int32_t height, const TileElement* tileElement)
|
||||
paint_session* session, Direction direction, int32_t height, const TileElement* tileElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
{ SPR_ON_RIDE_PHOTO_SIGN_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S },
|
||||
@@ -2099,7 +2101,7 @@ static constexpr const uint16_t RightVerticalLoopSegments[] = {
|
||||
SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0,
|
||||
};
|
||||
|
||||
void track_paint_util_right_vertical_loop_segments(paint_session* session, uint8_t direction, uint8_t trackSequence)
|
||||
void track_paint_util_right_vertical_loop_segments(paint_session* session, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (trackSequence > 9)
|
||||
{
|
||||
@@ -2111,7 +2113,7 @@ void track_paint_util_right_vertical_loop_segments(paint_session* session, uint8
|
||||
session, paint_util_rotate_segments(RightVerticalLoopSegments[trackSequence], direction), 0xFFFF, 0);
|
||||
}
|
||||
|
||||
void track_paint_util_left_corkscrew_up_supports(paint_session* session, uint8_t direction, uint16_t height)
|
||||
void track_paint_util_left_corkscrew_up_supports(paint_session* session, Direction direction, uint16_t height)
|
||||
{
|
||||
// TODO: Figure out which of these looks best, and use one to keep a consistent world
|
||||
if (direction == 2)
|
||||
@@ -2133,7 +2135,7 @@ void track_paint_util_left_corkscrew_up_supports(paint_session* session, uint8_t
|
||||
*
|
||||
* rct2: 0x006C4794
|
||||
*/
|
||||
void track_paint(paint_session* session, uint8_t direction, int32_t height, const TileElement* tileElement)
|
||||
void track_paint(paint_session* session, Direction direction, int32_t height, const TileElement* tileElement)
|
||||
{
|
||||
ride_id_t rideIndex = tileElement->AsTrack()->GetRideIndex();
|
||||
auto ride = get_ride(rideIndex);
|
||||
@@ -2191,7 +2193,7 @@ void track_paint(paint_session* session, uint8_t direction, int32_t height, cons
|
||||
TRACK_PAINT_FUNCTION_GETTER paintFunctionGetter = RideTypeDescriptors[ride->type].TrackPaintFunction;
|
||||
if (paintFunctionGetter != nullptr)
|
||||
{
|
||||
TRACK_PAINT_FUNCTION paintFunction = paintFunctionGetter(trackType, direction);
|
||||
TRACK_PAINT_FUNCTION paintFunction = paintFunctionGetter(trackType);
|
||||
if (paintFunction != nullptr)
|
||||
{
|
||||
paintFunction(session, rideIndex, trackSequence, direction, height, tileElement);
|
||||
|
||||
+114
-111
@@ -290,181 +290,184 @@ bool track_paint_util_draw_station_covers_2(
|
||||
paint_session* session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height,
|
||||
uint8_t stationVariant);
|
||||
void track_paint_util_draw_station_platform(
|
||||
paint_session* session, Ride* ride, uint8_t direction, int32_t height, int32_t zOffset, const TileElement* tileElement);
|
||||
paint_session* session, Ride* ride, Direction direction, int32_t height, int32_t zOffset, const TileElement* tileElement);
|
||||
void track_paint_util_draw_station(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, const TileElement* tileElement);
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, const TileElement* tileElement);
|
||||
void track_paint_util_draw_station_2(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, const TileElement* tileElement,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, const TileElement* tileElement,
|
||||
int32_t fenceOffsetA, int32_t fenceOffsetB);
|
||||
void track_paint_util_draw_station_3(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, uint16_t height, uint16_t coverHeight,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
const TileElement* tileElement);
|
||||
void track_paint_util_draw_station_inverted(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t direction, int32_t height, const TileElement* tileElement,
|
||||
paint_session* session, ride_id_t rideIndex, Direction direction, int32_t height, const TileElement* tileElement,
|
||||
uint8_t stationVariant);
|
||||
bool track_paint_util_should_paint_supports(const CoordsXY& position);
|
||||
void track_paint_util_draw_pier(
|
||||
paint_session* session, Ride* ride, const StationObject* stationObject, const CoordsXY& position, uint8_t direction,
|
||||
paint_session* session, Ride* ride, const StationObject* stationObject, const CoordsXY& position, Direction direction,
|
||||
int32_t height, const TileElement* tileElement, uint8_t rotation);
|
||||
void track_paint_util_draw_station_metal_supports(paint_session* session, uint8_t direction, uint16_t height, uint32_t colour);
|
||||
void track_paint_util_draw_station_metal_supports(
|
||||
paint_session* session, Direction direction, uint16_t height, uint32_t colour);
|
||||
void track_paint_util_draw_station_metal_supports_2(
|
||||
paint_session* session, uint8_t direction, uint16_t height, uint32_t colour, uint8_t type);
|
||||
paint_session* session, Direction direction, uint16_t height, uint32_t colour, uint8_t type);
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][5], const CoordsXY offsets[4][5], const CoordsXY boundsLengths[4][5],
|
||||
const CoordsXYZ boundsOffsets[4][5]);
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[][5]);
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[][5]);
|
||||
void track_paint_util_right_quarter_turn_5_tiles_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence);
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3);
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3);
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3], const CoordsXY offsets[4][3], const CoordsXY boundsLengths[4][3],
|
||||
const CoordsXYZ boundsOffsets[4][3]);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_2(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3]);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3], int32_t heightOffset);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_3(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[4][3]);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_4(
|
||||
paint_session* session, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const sprite_bb sprites[4][3]);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
paint_session* session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3]);
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4][3], int32_t heightOffset);
|
||||
void track_paint_util_left_quarter_turn_3_tiles_tunnel(
|
||||
paint_session* session, int16_t height, uint8_t tunnelType, uint8_t direction, uint8_t trackSequence);
|
||||
paint_session* session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence);
|
||||
void track_paint_util_left_quarter_turn_1_tile_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, int32_t direction, uint32_t colourFlags,
|
||||
const uint32_t* sprites);
|
||||
void track_paint_util_spinning_tunnel_paint(paint_session* session, int8_t thickness, int16_t height, uint8_t direction);
|
||||
paint_session* session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
uint32_t colourFlags, const uint32_t* sprites);
|
||||
void track_paint_util_spinning_tunnel_paint(paint_session* session, int8_t thickness, int16_t height, Direction direction);
|
||||
void track_paint_util_onride_photo_small_paint(
|
||||
paint_session* session, uint8_t direction, int32_t height, const TileElement* tileElement);
|
||||
paint_session* session, Direction direction, int32_t height, const TileElement* tileElement);
|
||||
void track_paint_util_onride_photo_paint(
|
||||
paint_session* session, uint8_t direction, int32_t height, const TileElement* tileElement);
|
||||
paint_session* session, Direction direction, int32_t height, const TileElement* tileElement);
|
||||
void track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, int32_t direction, uint8_t trackSequence,
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
uint32_t colourFlags, const uint32_t sprites[4][3][2], const CoordsXY offsets[4][3][2],
|
||||
const CoordsXY boundsLengths[4][3][2], const CoordsXYZ boundsOffsets[4][3][2]);
|
||||
void track_paint_util_right_helix_up_large_quarter_tiles_paint(
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, int32_t direction, uint8_t trackSequence,
|
||||
paint_session* session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
uint32_t colourFlags, const uint32_t sprites[4][5][2], const CoordsXY offsets[4][5][2],
|
||||
const CoordsXY boundsLengths[4][5][2], const CoordsXYZ boundsOffsets[4][5][2]);
|
||||
void track_paint_util_eighth_to_diag_tiles_paint(
|
||||
paint_session* session, const int8_t thickness[4][4], int16_t height, int32_t direction, uint8_t trackSequence,
|
||||
paint_session* session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
uint32_t colourFlags, const uint32_t sprites[4][4], const CoordsXY offsets[4][4], const CoordsXY boundsLengths[4][4],
|
||||
const CoordsXYZ boundsOffsets[4][4]);
|
||||
void track_paint_util_diag_tiles_paint(
|
||||
paint_session* session, int8_t thickness, int16_t height, int32_t direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
paint_session* session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence, uint32_t colourFlags,
|
||||
const uint32_t sprites[4], const CoordsXY offsets[4], const CoordsXY boundsLengths[4], const CoordsXYZ boundsOffsets[4]);
|
||||
|
||||
void track_paint_util_left_quarter_turn_1_tile_tunnel(
|
||||
paint_session* session, uint8_t direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
paint_session* session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel);
|
||||
void track_paint_util_right_quarter_turn_1_tile_tunnel(
|
||||
paint_session* session, uint8_t direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
paint_session* session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel);
|
||||
|
||||
void track_paint_util_right_vertical_loop_segments(paint_session* session, uint8_t direction, uint8_t trackSequence);
|
||||
void track_paint_util_right_vertical_loop_segments(paint_session* session, Direction direction, uint8_t trackSequence);
|
||||
|
||||
void track_paint_util_left_corkscrew_up_supports(paint_session* session, uint8_t direction, uint16_t height);
|
||||
void track_paint_util_left_corkscrew_up_supports(paint_session* session, Direction direction, uint16_t height);
|
||||
|
||||
using TRACK_PAINT_FUNCTION = void (*)(
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
paint_session* session, ride_id_t rideIndex, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TileElement* tileElement);
|
||||
using TRACK_PAINT_FUNCTION_GETTER = TRACK_PAINT_FUNCTION (*)(int32_t trackType, int32_t direction);
|
||||
using TRACK_PAINT_FUNCTION_GETTER = TRACK_PAINT_FUNCTION (*)(int32_t trackType);
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_car_ride(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_observation_tower(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ferris_wheel(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_space_rings(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lift(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_shop(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_facility(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twist(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_haunted_house(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_circus(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ghost_train(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_helicopters(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_golf(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail_cycles(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType, int32_t direction);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_car_ride(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_observation_tower(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ferris_wheel(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_space_rings(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lift(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_shop(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_facility(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twist(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_haunted_house(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_circus(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ghost_train(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_helicopters(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_golf(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail_cycles(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType);
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType);
|
||||
|
||||
#endif
|
||||
@@ -929,7 +929,7 @@ static void air_powered_vertical_rc_track_booster(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -3560,7 +3560,7 @@ static void bobsleigh_rc_track_on_ride_photo(
|
||||
paint_util_set_general_support_height(session, height + 48, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -8795,7 +8795,7 @@ static void compact_inverted_rc_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 48, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -8582,7 +8582,7 @@ static void corkscrew_rc_track_booster(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -17579,7 +17579,7 @@ static void flying_rc_track_right_banked_25_deg_down_to_flat(
|
||||
flying_rc_track_flat_to_left_banked_25_deg_up(session, rideIndex, trackSequence, (direction + 2) & 3, height, tileElement);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -8949,7 +8949,7 @@ static void giga_rc_track_booster(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1580,7 +1580,7 @@ static void heartline_twister_rc_track_right_heartline_roll(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1346,7 +1346,7 @@ static void inverted_hairpin_rc_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -760,7 +760,7 @@ static void inverted_impulse_rc_track_right_quarter_turn_1_90_deg_down(
|
||||
session, rideIndex, trackSequence, (direction - 1) & 3, height, tileElement);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -10403,7 +10403,7 @@ static void inverted_rc_track_right_banked_25_deg_down_to_flat(
|
||||
session, rideIndex, trackSequence, (direction + 2) & 3, height, tileElement);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -5707,7 +5707,7 @@ static void junior_rc_track_on_ride_photo(
|
||||
}
|
||||
|
||||
/* 0x008AAA0C */
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -15851,7 +15851,7 @@ static void lay_down_rc_track_right_quarter_banked_helix_large_down(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1777,7 +1777,7 @@ static void lim_launched_rc_track_right_quarter_turn_1_90_deg_down(
|
||||
session, rideIndex, trackSequence, (direction - 1) & 3, height, tileElement);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
@@ -1911,7 +1911,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType,
|
||||
case TRACK_ELEM_FLAT_TO_RIGHT_BANKED_25_DEG_DOWN:
|
||||
case TRACK_ELEM_LEFT_BANKED_25_DEG_DOWN_TO_FLAT:
|
||||
case TRACK_ELEM_RIGHT_BANKED_25_DEG_DOWN_TO_FLAT:
|
||||
return get_track_paint_function_looping_rc(trackType, direction);
|
||||
return get_track_paint_function_looping_rc(trackType);
|
||||
|
||||
case TRACK_ELEM_END_STATION:
|
||||
case TRACK_ELEM_BEGIN_STATION:
|
||||
|
||||
@@ -9195,7 +9195,7 @@ static void looping_rc_track_booster(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -5353,7 +5353,7 @@ static void mine_ride_track_diag_right_bank(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -7299,7 +7299,7 @@ static void mine_train_rc_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -9182,7 +9182,7 @@ static void mini_rc_track_booster(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -2445,7 +2445,7 @@ static void mini_suspended_rc_track_diag_25_deg_down_to_flat(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_suspended_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -13130,7 +13130,7 @@ static void multi_dimension_rc_track_multidim_inverted_90_deg_up_to_flat_quarter
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_multi_dimension_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -385,7 +385,7 @@ static void paint_reverse_freefall_rc_vertical(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1323,7 +1323,7 @@ static void reverser_rc_track_right_reverser(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -3343,7 +3343,7 @@ static void side_friction_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
session, rideIndex, 3 - trackSequence, (direction + 2) & 3, height, tileElement);
|
||||
};
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -8355,7 +8355,7 @@ static void stand_up_rc_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -2304,7 +2304,7 @@ static void steeplechase_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -4405,7 +4405,7 @@ static void suspended_swinging_rc_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 48, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1614,7 +1614,7 @@ static void twister_rc_track_booster(
|
||||
bolliger_mabillard_track_booster(session, rideIndex, trackSequence, direction, height, tileElement, METAL_SUPPORTS_TUBES);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twister_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1593,7 +1593,7 @@ static void vertical_drop_rc_track_booster(
|
||||
bolliger_mabillard_track_booster(session, rideIndex, trackSequence, direction, height, tileElement, METAL_SUPPORTS_BOXED);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_vertical_drop_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -532,7 +532,7 @@ static void paint_virginia_reel_track_right_quarter_turn_1_tile(
|
||||
/**
|
||||
* rct2: 0x00811184
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_virginia_reel(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -935,7 +935,7 @@ static void wild_mouse_track_block_brakes(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -13129,7 +13129,7 @@ static void wooden_rc_track_booster(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -715,7 +715,7 @@ static void wooden_wild_mouse_track_60_deg_down_to_flat(
|
||||
wooden_wild_mouse_track_flat_to_60_deg_up(session, rideIndex, trackSequence, (direction + 2) & 3, height, tileElement);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -704,7 +704,7 @@ static void paint_car_ride_track_log_bumps(
|
||||
/**
|
||||
* rct2: 0x006F7000
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_car_ride(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_car_ride(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -123,7 +123,7 @@ static void paint_circus(
|
||||
/**
|
||||
* rct2: 0x0076F8D4
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_circus(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_circus(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -123,7 +123,7 @@ static void paint_crooked_house(
|
||||
paint_util_set_general_support_height(session, height + 128, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_crooked_house(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -95,7 +95,7 @@ static void paint_dodgems(
|
||||
/**
|
||||
* rct2:
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dodgems(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_4_X_4)
|
||||
{
|
||||
|
||||
@@ -203,7 +203,7 @@ static void paint_ferris_wheel(
|
||||
/**
|
||||
* rct2: 0x008A8CC8
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ferris_wheel(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ferris_wheel(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_1_X_4_C)
|
||||
{
|
||||
|
||||
@@ -60,7 +60,7 @@ static void paint_flying_saucers(
|
||||
/**
|
||||
* rct2: 0x00887208
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_flying_saucers(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_4_X_4)
|
||||
{
|
||||
|
||||
@@ -459,7 +459,7 @@ static void paint_ghost_train_track_brakes(
|
||||
/**
|
||||
* rct2: 0x00770924
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ghost_train(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_ghost_train(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -155,7 +155,7 @@ static void paint_haunted_house(
|
||||
/**
|
||||
* rct2: 0x0076E7B0
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_haunted_house(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_haunted_house(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -172,7 +172,7 @@ static void maze_paint_setup(
|
||||
/**
|
||||
* rct2: 0x008A81E8
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_maze(int32_t trackType)
|
||||
{
|
||||
if (trackType != TRACK_ELEM_MAZE)
|
||||
{
|
||||
|
||||
@@ -172,7 +172,7 @@ static void paint_merry_go_round(
|
||||
/**
|
||||
* rct2: 0x0076190C
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_merry_go_round(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -1141,7 +1141,7 @@ static void paint_mini_golf_hole_e(
|
||||
/**
|
||||
* rct2: 0x0087EDC4
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_golf(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_golf(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -303,7 +303,7 @@ static void paint_mini_helicopters_track_right_quarter_turn_1_tile(
|
||||
/**
|
||||
* rct2: 0x0081F268
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_helicopters(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_mini_helicopters(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -631,7 +631,7 @@ static void paint_monorail_cycles_track_s_bend_right(
|
||||
/**
|
||||
* rct2: 0x0088ac88
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail_cycles(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail_cycles(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -183,7 +183,7 @@ static void paint_observation_tower_section(
|
||||
/**
|
||||
* rct2: 0x0070DC5C
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_observation_tower(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_observation_tower(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -179,7 +179,7 @@ static void paint_space_rings(
|
||||
/**
|
||||
* rct2: 0x0x00767A40
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_space_rings(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_space_rings(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -233,7 +233,7 @@ static void paint_spiral_slide(
|
||||
/**
|
||||
* rct2: 0x0074840C
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_spiral_slide(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_2_X_2)
|
||||
{
|
||||
|
||||
@@ -83,7 +83,7 @@ static void facility_paint_setup(
|
||||
}
|
||||
|
||||
/* 0x00762D44 */
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_facility(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_facility(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -67,7 +67,7 @@ static void shop_paint_setup(
|
||||
}
|
||||
|
||||
/* 0x00761160 */
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_shop(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_shop(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -121,7 +121,7 @@ static void paint_3d_cinema(
|
||||
}
|
||||
|
||||
/* 0x0076554C */
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_3d_cinema(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -163,7 +163,7 @@ static void paint_enterprise(
|
||||
/**
|
||||
* rct2: 0x008A13B4
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_enterprise(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_4_X_4)
|
||||
{
|
||||
|
||||
@@ -536,7 +536,7 @@ static void paint_go_karts_track_right_quarter_turn_1_tile(
|
||||
/**
|
||||
* rct2: 0x0074A668
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_go_karts(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -190,7 +190,7 @@ static void paint_launched_freefall_tower_section(
|
||||
/**
|
||||
* rct2: 0x006FD0E8
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_launched_freefall(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -272,7 +272,7 @@ static void paint_magic_carpet(
|
||||
*
|
||||
* rct2: 0x00898384
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_magic_carpet(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -170,7 +170,7 @@ static void paint_motionsimulator(
|
||||
*
|
||||
* rct2: 0x00763520
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_motionsimulator(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -204,7 +204,7 @@ static void paint_roto_drop_tower_section(
|
||||
/**
|
||||
* rct2: 0x00886074
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_roto_drop(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -192,7 +192,7 @@ static void paint_swinging_inverter_ship(
|
||||
/**
|
||||
* rct2: 0x00760070
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_inverter_ship(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_1_X_4_B)
|
||||
{
|
||||
|
||||
@@ -318,7 +318,7 @@ static void paint_swinging_ship(
|
||||
/**
|
||||
* rct2: 0x008A83E0
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_swinging_ship(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_1_X_5)
|
||||
{
|
||||
|
||||
@@ -311,7 +311,7 @@ static void paint_top_spin(
|
||||
}
|
||||
|
||||
/* 0x0076659C */
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_topspin(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -163,7 +163,7 @@ static void paint_twist(
|
||||
/**
|
||||
* rct2: 0x0076D658
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twist(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_twist(int32_t trackType)
|
||||
{
|
||||
if (trackType != FLAT_TRACK_ELEM_3_X_3)
|
||||
{
|
||||
|
||||
@@ -643,7 +643,7 @@ static void chairlift_paint_right_quarter_turn_1_tile(
|
||||
}
|
||||
|
||||
/* 0x008AAA0C */
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_chairlift(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -139,7 +139,7 @@ static void paint_lift_tower_section(
|
||||
/**
|
||||
* rct2: 0x0076C5BC
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lift(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_lift(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -2148,7 +2148,7 @@ static void miniature_railway_track_diag_25_deg_down_to_flat(
|
||||
/**
|
||||
* rct2: 0x008ACE48
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_miniature_railway(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1326,7 +1326,7 @@ static void paint_monorail_track_diag_25_deg_down_to_flat(
|
||||
/**
|
||||
* rct2: 0x008ADF34
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_monorail(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1878,7 +1878,7 @@ static void suspended_monorail_track_diag_25_deg_down_to_flat(
|
||||
}
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_monorail(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -140,7 +140,7 @@ static void paint_boat_hire_track_right_quarter_turn_1_tile(
|
||||
/**
|
||||
* rct2: 0x008B0D60
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_boat_hire(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1819,7 +1819,7 @@ static void dinghy_slide_track_60_deg_down_to_25_deg_down_covered(
|
||||
session, rideIndex, trackSequence, (direction + 2) & 3, height, tileElement);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_dinghy_slide(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -807,7 +807,7 @@ static void paint_log_flume_track_reverser(
|
||||
paint_util_set_general_support_height(session, height + 32, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_log_flume(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -837,7 +837,7 @@ static void paint_river_rapids_track_whirlpool(
|
||||
/**
|
||||
* rct2: 0x0075745C
|
||||
**/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_river_rapids(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -1188,7 +1188,7 @@ static void paint_splash_boats_track_on_ride_photo(
|
||||
paint_util_set_general_support_height(session, height + 48, 0x20);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_splash_boats(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -212,7 +212,7 @@ static void submarine_ride_paint_track_right_quarter_turn_1_tile(
|
||||
/**
|
||||
* rct2: 0x008995D4
|
||||
*/
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_submarine_ride(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
|
||||
@@ -318,7 +318,7 @@ static void water_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
session, rideIndex, trackSequence, direction, height, tileElement, JUNIOR_RC_CHAIN_NONE);
|
||||
}
|
||||
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType, int32_t direction)
|
||||
TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType)
|
||||
{
|
||||
switch (trackType)
|
||||
{
|
||||
@@ -461,36 +461,36 @@ TRACK_PAINT_FUNCTION get_track_paint_function_water_rc(int32_t trackType, int32_
|
||||
case TRACK_ELEM_DIAG_RIGHT_BANK:
|
||||
case TRACK_ELEM_BLOCK_BRAKES:
|
||||
case TRACK_ELEM_BOOSTER:
|
||||
return get_track_paint_function_junior_rc(trackType, direction);
|
||||
return get_track_paint_function_junior_rc(trackType);
|
||||
|
||||
//////////////////////////////////////////////////////
|
||||
// Use River Rafts
|
||||
//////////////////////////////////////////////////////
|
||||
case TRACK_ELEM_FLAT_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_FLAT, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_FLAT);
|
||||
case TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_LEFT_QUARTER_TURN_5_TILES);
|
||||
case TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_RIGHT_QUARTER_TURN_5_TILES);
|
||||
case TRACK_ELEM_S_BEND_LEFT_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_S_BEND_LEFT, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_S_BEND_LEFT);
|
||||
case TRACK_ELEM_S_BEND_RIGHT_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_S_BEND_RIGHT, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_S_BEND_RIGHT);
|
||||
case TRACK_ELEM_FLAT_TO_25_DEG_DOWN_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_FLAT_TO_25_DEG_DOWN, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_FLAT_TO_25_DEG_DOWN);
|
||||
case TRACK_ELEM_25_DEG_DOWN_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_25_DEG_DOWN, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_25_DEG_DOWN);
|
||||
case TRACK_ELEM_25_DEG_DOWN_TO_60_DEG_DOWN_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_25_DEG_DOWN_TO_60_DEG_DOWN, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_25_DEG_DOWN_TO_60_DEG_DOWN);
|
||||
case TRACK_ELEM_60_DEG_DOWN_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_60_DEG_DOWN, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_60_DEG_DOWN);
|
||||
case TRACK_ELEM_60_DEG_DOWN_TO_25_DEG_DOWN_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_60_DEG_DOWN_TO_25_DEG_DOWN, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_60_DEG_DOWN_TO_25_DEG_DOWN);
|
||||
case TRACK_ELEM_25_DEG_DOWN_TO_FLAT_COVERED:
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_25_DEG_DOWN_TO_FLAT, direction);
|
||||
return get_track_paint_function_splash_boats(TRACK_ELEM_25_DEG_DOWN_TO_FLAT);
|
||||
|
||||
case TRACK_ELEM_ON_RIDE_PHOTO:
|
||||
return get_track_paint_function_junior_rc(trackType, direction);
|
||||
return get_track_paint_function_junior_rc(trackType);
|
||||
}
|
||||
return nullptr;
|
||||
}
|
||||
@@ -2219,34 +2219,34 @@ void PathElement::SetAdditionStatus(uint8_t newStatus)
|
||||
|
||||
uint8_t PathElement::GetEdges() const
|
||||
{
|
||||
return Edges & FOOTPATH_PROPERTIES_EDGES_EDGES_MASK;
|
||||
return EdgesAndCorners & FOOTPATH_PROPERTIES_EDGES_EDGES_MASK;
|
||||
}
|
||||
|
||||
void PathElement::SetEdges(uint8_t newEdges)
|
||||
{
|
||||
Edges &= ~FOOTPATH_PROPERTIES_EDGES_EDGES_MASK;
|
||||
Edges |= (newEdges & FOOTPATH_PROPERTIES_EDGES_EDGES_MASK);
|
||||
EdgesAndCorners &= ~FOOTPATH_PROPERTIES_EDGES_EDGES_MASK;
|
||||
EdgesAndCorners |= (newEdges & FOOTPATH_PROPERTIES_EDGES_EDGES_MASK);
|
||||
}
|
||||
|
||||
uint8_t PathElement::GetCorners() const
|
||||
{
|
||||
return Edges >> 4;
|
||||
return EdgesAndCorners >> 4;
|
||||
}
|
||||
|
||||
void PathElement::SetCorners(uint8_t newCorners)
|
||||
{
|
||||
Edges &= ~FOOTPATH_PROPERTIES_EDGES_CORNERS_MASK;
|
||||
Edges |= (newCorners << 4);
|
||||
EdgesAndCorners &= ~FOOTPATH_PROPERTIES_EDGES_CORNERS_MASK;
|
||||
EdgesAndCorners |= (newCorners << 4);
|
||||
}
|
||||
|
||||
uint8_t PathElement::GetEdgesAndCorners() const
|
||||
{
|
||||
return Edges;
|
||||
return EdgesAndCorners;
|
||||
}
|
||||
|
||||
void PathElement::SetEdgesAndCorners(uint8_t newEdgesAndCorners)
|
||||
{
|
||||
Edges = newEdgesAndCorners;
|
||||
EdgesAndCorners = newEdgesAndCorners;
|
||||
}
|
||||
|
||||
bool PathElement::IsLevelCrossing(const CoordsXY& coords) const
|
||||
|
||||
@@ -202,10 +202,10 @@ private:
|
||||
#pragma clang diagnostic ignored "-Wunused-private-field"
|
||||
PathRailingsIndex RailingsIndex; // 6
|
||||
#pragma clang diagnostic pop
|
||||
uint8_t Additions; // 7 (0 means no addition)
|
||||
uint8_t Edges; // 8
|
||||
uint8_t Flags2; // 9
|
||||
uint8_t SlopeDirection; // 10
|
||||
uint8_t Additions; // 7 (0 means no addition)
|
||||
uint8_t EdgesAndCorners; // 8 (edges in lower 4 bits, corners in upper 4)
|
||||
uint8_t Flags2; // 9
|
||||
uint8_t SlopeDirection; // 10
|
||||
union
|
||||
{
|
||||
uint8_t AdditionStatus; // 11, only used for litter bins
|
||||
|
||||
@@ -457,7 +457,7 @@ bool TrackElement::IsHighlighted() const
|
||||
|
||||
uint8_t PathElement::GetEdges() const
|
||||
{
|
||||
return Edges & 0xF;
|
||||
return EdgesAndCorners & 0xF;
|
||||
}
|
||||
|
||||
StationObject* ride_get_station_object(const Ride* ride)
|
||||
|
||||
@@ -194,7 +194,7 @@ static void CallNew(
|
||||
uint8_t rideType, uint8_t trackType, uint8_t direction, uint8_t trackSequence, uint16_t height, TileElement* tileElement)
|
||||
{
|
||||
TRACK_PAINT_FUNCTION_GETTER newPaintFunctionGetter = RideTypeDescriptors[rideType].TrackPaintFunction;
|
||||
TRACK_PAINT_FUNCTION newPaintFunction = newPaintFunctionGetter(trackType, direction);
|
||||
TRACK_PAINT_FUNCTION newPaintFunction = newPaintFunctionGetter(trackType);
|
||||
|
||||
newPaintFunction(&gPaintSession, 0, trackSequence, direction, height, tileElement);
|
||||
}
|
||||
|
||||
@@ -54,7 +54,7 @@ namespace Utils
|
||||
return false;
|
||||
}
|
||||
|
||||
if (newPaintGetter(trackType, 0) == nullptr)
|
||||
if (newPaintGetter(trackType) == nullptr)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user