Change openrct2/ride methods to UpperCamelCase, part 3/3 (#19195)

This commit is contained in:
Stephan Spengler authored and GitHub committed 2023-01-17 20:14:27 +00:00
1 parent bb55c6ce66
commit a79d753d76
166 files changed
+1698 -1710

No files matched your search

+90 -90
View File
@@ -87,8 +87,8 @@ static void ride_ratings_update_state_3(RideRatingUpdateState& state);
static void ride_ratings_update_state_4(RideRatingUpdateState& state);
static void ride_ratings_update_state_5(RideRatingUpdateState& state);
static void ride_ratings_begin_proximity_loop(RideRatingUpdateState& state);
static void ride_ratings_calculate(RideRatingUpdateState& state, Ride& ride);
static void ride_ratings_calculate_value(Ride& ride);
static void RideRatingsCalculate(RideRatingUpdateState& state, Ride& ride);
static void RideRatingsCalculateValue(Ride& ride);
static void ride_ratings_score_close_proximity(RideRatingUpdateState& state, TileElement* inputTileElement);
static void ride_ratings_add(RatingTuple* rating, int32_t excitement, int32_t intensity, int32_t nausea);
@@ -303,8 +303,8 @@ static void ride_ratings_update_state_3(RideRatingUpdateState& state)
return;
}
ride_ratings_calculate(state, *ride);
ride_ratings_calculate_value(*ride);
RideRatingsCalculate(state, *ride);
RideRatingsCalculateValue(*ride);
WindowInvalidateByNumber(WindowClass::Ride, state.CurrentRide.ToUnderlying());
state.State = RIDE_RATINGS_STATE_FIND_NEXT_RIDE;
@@ -742,7 +742,7 @@ static void ride_ratings_score_close_proximity(RideRatingUpdateState& state, Til
}
}
static void ride_ratings_calculate(RideRatingUpdateState& state, Ride& ride)
static void RideRatingsCalculate(RideRatingUpdateState& state, Ride& ride)
{
auto calcFunc = RideRatingsGetCalculateFunc(ride.type);
if (calcFunc != nullptr)
@@ -795,7 +795,7 @@ static void ride_ratings_calculate(RideRatingUpdateState& state, Ride& ride)
#endif
}
static void ride_ratings_calculate_value(Ride& ride)
static void RideRatingsCalculateValue(Ride& ride)
{
struct row
{
@@ -1745,7 +1745,7 @@ static void ride_ratings_apply_first_length_penalty(
#pragma region Ride rating calculation functions
void ride_ratings_calculate_spiral_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSpiralRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -1791,7 +1791,7 @@ void ride_ratings_calculate_spiral_roller_coaster(Ride& ride, RideRatingUpdateSt
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_stand_up_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateStandUpRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -1829,7 +1829,7 @@ void ride_ratings_calculate_stand_up_roller_coaster(Ride& ride, RideRatingUpdate
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_suspended_swinging_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSuspendedSwingingCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -1869,7 +1869,7 @@ void ride_ratings_calculate_suspended_swinging_coaster(Ride& ride, RideRatingUpd
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_inverted_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateInvertedRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -1912,7 +1912,7 @@ void ride_ratings_calculate_inverted_roller_coaster(Ride& ride, RideRatingUpdate
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_junior_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateJuniorRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -1950,7 +1950,7 @@ void ride_ratings_calculate_junior_roller_coaster(Ride& ride, RideRatingUpdateSt
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_miniature_railway(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMiniatureRailway(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -1985,7 +1985,7 @@ void ride_ratings_calculate_miniature_railway(Ride& ride, RideRatingUpdateState&
ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths;
}
void ride_ratings_calculate_monorail(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMonorail(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2020,7 +2020,7 @@ void ride_ratings_calculate_monorail(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths;
}
void ride_ratings_calculate_mini_suspended_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMiniSuspendedCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2059,7 +2059,7 @@ void ride_ratings_calculate_mini_suspended_coaster(Ride& ride, RideRatingUpdateS
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_boat_hire(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateBoatHire(Ride& ride, RideRatingUpdateState& state)
{
ride.unreliability_factor = 7;
set_unreliability_factor(ride);
@@ -2091,7 +2091,7 @@ void ride_ratings_calculate_boat_hire(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_wooden_wild_mouse(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateWoodenWildMouse(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2132,7 +2132,7 @@ void ride_ratings_calculate_wooden_wild_mouse(Ride& ride, RideRatingUpdateState&
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_steeplechase(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSteeplechase(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2172,7 +2172,7 @@ void ride_ratings_calculate_steeplechase(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_car_ride(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateCarRide(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2206,7 +2206,7 @@ void ride_ratings_calculate_car_ride(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_launched_freefall(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateLaunchedFreefall(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2257,7 +2257,7 @@ void ride_ratings_calculate_launched_freefall(Ride& ride, RideRatingUpdateState&
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_bobsleigh_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateBobsleighCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2295,7 +2295,7 @@ void ride_ratings_calculate_bobsleigh_coaster(Ride& ride, RideRatingUpdateState&
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_observation_tower(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateObservationTower(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2324,7 +2324,7 @@ void ride_ratings_calculate_observation_tower(Ride& ride, RideRatingUpdateState&
ride.excitement /= 4;
}
void ride_ratings_calculate_looping_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateLoopingRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2370,7 +2370,7 @@ void ride_ratings_calculate_looping_roller_coaster(Ride& ride, RideRatingUpdateS
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_dinghy_slide(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateDinghySlide(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2408,7 +2408,7 @@ void ride_ratings_calculate_dinghy_slide(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_mine_train_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMineTrainCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2448,7 +2448,7 @@ void ride_ratings_calculate_mine_train_coaster(Ride& ride, RideRatingUpdateState
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_chairlift(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateChairlift(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2490,7 +2490,7 @@ void ride_ratings_calculate_chairlift(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths;
}
void ride_ratings_calculate_corkscrew_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateCorkscrewRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2536,7 +2536,7 @@ void ride_ratings_calculate_corkscrew_roller_coaster(Ride& ride, RideRatingUpdat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_maze(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMaze(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2562,7 +2562,7 @@ void ride_ratings_calculate_maze(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_spiral_slide(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSpiralSlide(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2591,7 +2591,7 @@ void ride_ratings_calculate_spiral_slide(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = 2;
}
void ride_ratings_calculate_go_karts(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateGoKarts(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2632,7 +2632,7 @@ void ride_ratings_calculate_go_karts(Ride& ride, RideRatingUpdateState& state)
ride.excitement /= 2;
}
void ride_ratings_calculate_log_flume(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateLogFlume(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2664,7 +2664,7 @@ void ride_ratings_calculate_log_flume(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_river_rapids(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateRiverRapids(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -2697,7 +2697,7 @@ void ride_ratings_calculate_river_rapids(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_dodgems(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateDodgems(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2732,7 +2732,7 @@ void ride_ratings_calculate_dodgems(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 7;
}
void ride_ratings_calculate_swinging_ship(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSwingingShip(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2757,7 +2757,7 @@ void ride_ratings_calculate_swinging_ship(Ride& ride, RideRatingUpdateState& sta
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_inverter_ship(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateInverterShip(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2782,25 +2782,25 @@ void ride_ratings_calculate_inverter_ship(Ride& ride, RideRatingUpdateState& sta
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_food_stall(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateFoodStall(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_drink_stall(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateDrinkStall(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_shop(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateShop(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_merry_go_round(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMerryGoRound(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2822,19 +2822,19 @@ void ride_ratings_calculate_merry_go_round(Ride& ride, RideRatingUpdateState& st
ride.sheltered_eighths = 7;
}
void ride_ratings_calculate_information_kiosk(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateInformationKiosk(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_toilets(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateToilets(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_ferris_wheel(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateFerrisWheel(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2856,7 +2856,7 @@ void ride_ratings_calculate_ferris_wheel(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_motion_simulator(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMotionSimulator(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2889,7 +2889,7 @@ void ride_ratings_calculate_motion_simulator(Ride& ride, RideRatingUpdateState&
ride.sheltered_eighths = 7;
}
void ride_ratings_calculate_3d_cinema(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculate3dCinema(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2929,7 +2929,7 @@ void ride_ratings_calculate_3d_cinema(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths |= 7;
}
void ride_ratings_calculate_top_spin(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateTopSpin(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2971,7 +2971,7 @@ void ride_ratings_calculate_top_spin(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_space_rings(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSpaceRings(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -2993,7 +2993,7 @@ void ride_ratings_calculate_space_rings(Ride& ride, RideRatingUpdateState& state
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_reverse_freefall_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateReverseFreefallCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3023,7 +3023,7 @@ void ride_ratings_calculate_reverse_freefall_coaster(Ride& ride, RideRatingUpdat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_lift(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateLift(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3054,7 +3054,7 @@ void ride_ratings_calculate_lift(Ride& ride, RideRatingUpdateState& state)
ride.excitement /= 4;
}
void ride_ratings_calculate_vertical_drop_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateVerticalDropRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3092,13 +3092,13 @@ void ride_ratings_calculate_vertical_drop_roller_coaster(Ride& ride, RideRatingU
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_cash_machine(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateCashMachine(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_twist(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateTwist(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -3120,7 +3120,7 @@ void ride_ratings_calculate_twist(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_haunted_house(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateHauntedHouse(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -3144,7 +3144,7 @@ void ride_ratings_calculate_haunted_house(Ride& ride, RideRatingUpdateState& sta
ride.sheltered_eighths = 7;
}
void ride_ratings_calculate_flying_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateFlyingRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3189,7 +3189,7 @@ void ride_ratings_calculate_flying_roller_coaster(Ride& ride, RideRatingUpdateSt
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_virginia_reel(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateVirginiaReel(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3226,7 +3226,7 @@ void ride_ratings_calculate_virginia_reel(Ride& ride, RideRatingUpdateState& sta
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_splash_boats(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSplashBoats(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3258,7 +3258,7 @@ void ride_ratings_calculate_splash_boats(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_mini_helicopters(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMiniHelicopters(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3292,7 +3292,7 @@ void ride_ratings_calculate_mini_helicopters(Ride& ride, RideRatingUpdateState&
ride.sheltered_eighths = 6;
}
void ride_ratings_calculate_lay_down_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateLayDownRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3342,7 +3342,7 @@ void ride_ratings_calculate_lay_down_roller_coaster(Ride& ride, RideRatingUpdate
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_suspended_monorail(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSuspendedMonorail(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3377,7 +3377,7 @@ void ride_ratings_calculate_suspended_monorail(Ride& ride, RideRatingUpdateState
ride.sheltered_eighths = shelteredEighths.TotalShelteredEighths;
}
void ride_ratings_calculate_reverser_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateReverserRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3425,7 +3425,7 @@ void ride_ratings_calculate_reverser_roller_coaster(Ride& ride, RideRatingUpdate
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_heartline_twister_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateHeartlineTwisterCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3469,7 +3469,7 @@ void ride_ratings_calculate_heartline_twister_coaster(Ride& ride, RideRatingUpda
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_mini_golf(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMiniGolf(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3507,13 +3507,13 @@ void ride_ratings_calculate_mini_golf(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_first_aid(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateFirstAid(Ride& ride, RideRatingUpdateState& state)
{
ride.upkeep_cost = ride_compute_upkeep(state, ride);
ride.window_invalidate_flags |= RIDE_INVALIDATE_RIDE_INCOME;
}
void ride_ratings_calculate_circus(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateCircus(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -3537,7 +3537,7 @@ void ride_ratings_calculate_circus(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 7;
}
void ride_ratings_calculate_ghost_train(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateGhostTrain(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3570,7 +3570,7 @@ void ride_ratings_calculate_ghost_train(Ride& ride, RideRatingUpdateState& state
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_twister_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateTwisterRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3616,7 +3616,7 @@ void ride_ratings_calculate_twister_roller_coaster(Ride& ride, RideRatingUpdateS
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3656,7 +3656,7 @@ void ride_ratings_calculate_wooden_roller_coaster(Ride& ride, RideRatingUpdateSt
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_side_friction_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSideFrictionRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3695,7 +3695,7 @@ void ride_ratings_calculate_side_friction_roller_coaster(Ride& ride, RideRatingU
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_wild_mouse(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateWildMouse(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3735,7 +3735,7 @@ void ride_ratings_calculate_wild_mouse(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_multi_dimension_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMultiDimensionRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3780,7 +3780,7 @@ void ride_ratings_calculate_multi_dimension_roller_coaster(Ride& ride, RideRatin
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_giga_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateGigaCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3826,7 +3826,7 @@ void ride_ratings_calculate_giga_coaster(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_roto_drop(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateRotoDrop(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3854,7 +3854,7 @@ void ride_ratings_calculate_roto_drop(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_flying_saucers(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateFlyingSaucers(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -3892,7 +3892,7 @@ void ride_ratings_calculate_flying_saucers(Ride& ride, RideRatingUpdateState& st
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_crooked_house(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateCrookedHouse(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -3916,7 +3916,7 @@ void ride_ratings_calculate_crooked_house(Ride& ride, RideRatingUpdateState& sta
ride.sheltered_eighths = 7;
}
void ride_ratings_calculate_monorail_cycles(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMonorailCycles(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3950,7 +3950,7 @@ void ride_ratings_calculate_monorail_cycles(Ride& ride, RideRatingUpdateState& s
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_compact_inverted_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateCompactInvertedCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -3993,7 +3993,7 @@ void ride_ratings_calculate_compact_inverted_coaster(Ride& ride, RideRatingUpdat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_water_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateWaterCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4034,7 +4034,7 @@ void ride_ratings_calculate_water_coaster(Ride& ride, RideRatingUpdateState& sta
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_air_powered_vertical_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateAirPoweredVerticalCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4065,7 +4065,7 @@ void ride_ratings_calculate_air_powered_vertical_coaster(Ride& ride, RideRatingU
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_inverted_hairpin_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateInvertedHairpinCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4106,7 +4106,7 @@ void ride_ratings_calculate_inverted_hairpin_coaster(Ride& ride, RideRatingUpdat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_magic_carpet(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMagicCarpet(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -4131,7 +4131,7 @@ void ride_ratings_calculate_magic_carpet(Ride& ride, RideRatingUpdateState& stat
ride.sheltered_eighths = 0;
}
void ride_ratings_calculate_submarine_ride(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSubmarineRide(Ride& ride, RideRatingUpdateState& state)
{
ride.unreliability_factor = 7;
set_unreliability_factor(ride);
@@ -4156,7 +4156,7 @@ void ride_ratings_calculate_submarine_ride(Ride& ride, RideRatingUpdateState& st
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_river_rafts(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateRiverRafts(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4186,7 +4186,7 @@ void ride_ratings_calculate_river_rafts(Ride& ride, RideRatingUpdateState& state
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_enterprise(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateEnterprise(Ride& ride, RideRatingUpdateState& state)
{
ride.lifecycle_flags |= RIDE_LIFECYCLE_TESTED;
ride.lifecycle_flags |= RIDE_LIFECYCLE_NO_RAW_STATS;
@@ -4215,7 +4215,7 @@ void ride_ratings_calculate_enterprise(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = 3;
}
void ride_ratings_calculate_inverted_impulse_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateInvertedImpulseCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4252,7 +4252,7 @@ void ride_ratings_calculate_inverted_impulse_coaster(Ride& ride, RideRatingUpdat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4291,7 +4291,7 @@ void ride_ratings_calculate_mini_roller_coaster(Ride& ride, RideRatingUpdateStat
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_mine_ride(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateMineRide(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4327,7 +4327,7 @@ void ride_ratings_calculate_mine_ride(Ride& ride, RideRatingUpdateState& state)
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_lim_launched_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateLimLaunchedRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4373,7 +4373,7 @@ void ride_ratings_calculate_lim_launched_roller_coaster(Ride& ride, RideRatingUp
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_classic_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateClassicMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4411,7 +4411,7 @@ void ride_ratings_calculate_classic_mini_roller_coaster(Ride& ride, RideRatingUp
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_hybrid_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateHybridCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4456,7 +4456,7 @@ void ride_ratings_calculate_hybrid_coaster(Ride& ride, RideRatingUpdateState& st
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_single_rail_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateSingleRailRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4502,7 +4502,7 @@ void ride_ratings_calculate_single_rail_roller_coaster(Ride& ride, RideRatingUpd
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_alpine_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateAlpineCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
@@ -4536,7 +4536,7 @@ void ride_ratings_calculate_alpine_coaster(Ride& ride, RideRatingUpdateState& st
ride.sheltered_eighths = get_num_of_sheltered_eighths(ride).TotalShelteredEighths;
}
void ride_ratings_calculate_classic_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state)
void RideRatingsCalculateClassicWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state)
{
if (!(ride.lifecycle_flags & RIDE_LIFECYCLE_TESTED))
return;
+84 -84
View File
@@ -62,90 +62,90 @@ void RideRatingsUpdateAll();
using ride_ratings_calculation = void (*)(Ride& ride, RideRatingUpdateState& state);
ride_ratings_calculation RideRatingsGetCalculateFunc(ride_type_t rideType);
void ride_ratings_calculate_spiral_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_stand_up_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_suspended_swinging_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_inverted_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_junior_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_miniature_railway(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_monorail(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_mini_suspended_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_boat_hire(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_wooden_wild_mouse(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_steeplechase(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_car_ride(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_launched_freefall(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_bobsleigh_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_observation_tower(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_looping_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_dinghy_slide(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_mine_train_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_chairlift(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_corkscrew_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_maze(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_spiral_slide(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_go_karts(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_log_flume(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_river_rapids(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_dodgems(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_swinging_ship(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_inverter_ship(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_food_stall(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_shop(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_merry_go_round(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_information_kiosk(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_toilets(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_ferris_wheel(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_motion_simulator(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_3d_cinema(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_top_spin(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_space_rings(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_reverse_freefall_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_lift(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_vertical_drop_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_cash_machine(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_twist(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_haunted_house(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_first_aid(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_circus(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_ghost_train(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_twister_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_side_friction_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_wild_mouse(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_multi_dimension_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_flying_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_virginia_reel(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_splash_boats(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_mini_helicopters(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_lay_down_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_suspended_monorail(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_reverser_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_heartline_twister_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_mini_golf(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_giga_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_roto_drop(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_flying_saucers(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_crooked_house(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_monorail_cycles(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_compact_inverted_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_water_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_air_powered_vertical_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_inverted_hairpin_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_magic_carpet(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_submarine_ride(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_river_rafts(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_enterprise(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_inverted_impulse_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_mine_ride(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_lim_launched_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_classic_mini_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_hybrid_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_single_rail_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_alpine_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_classic_wooden_roller_coaster(Ride& ride, RideRatingUpdateState& state);
void ride_ratings_calculate_drink_stall(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSpiralRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateStandUpRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSuspendedSwingingCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateInvertedRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateJuniorRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMiniatureRailway(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMonorail(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMiniSuspendedCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateBoatHire(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateWoodenWildMouse(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSteeplechase(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateCarRide(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateLaunchedFreefall(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateBobsleighCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateObservationTower(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateLoopingRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateDinghySlide(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMineTrainCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateChairlift(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateCorkscrewRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMaze(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSpiralSlide(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateGoKarts(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateLogFlume(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateRiverRapids(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateDodgems(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSwingingShip(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateInverterShip(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateFoodStall(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateShop(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMerryGoRound(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateInformationKiosk(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateToilets(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateFerrisWheel(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMotionSimulator(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculate3dCinema(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateTopSpin(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSpaceRings(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateReverseFreefallCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateLift(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateVerticalDropRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateCashMachine(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateTwist(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateHauntedHouse(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateFirstAid(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateCircus(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateGhostTrain(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateTwisterRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSideFrictionRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateWildMouse(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMultiDimensionRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateFlyingRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateVirginiaReel(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSplashBoats(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMiniHelicopters(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateLayDownRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSuspendedMonorail(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateReverserRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateHeartlineTwisterCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMiniGolf(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateGigaCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateRotoDrop(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateFlyingSaucers(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateCrookedHouse(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMonorailCycles(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateCompactInvertedCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateWaterCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateAirPoweredVerticalCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateInvertedHairpinCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMagicCarpet(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSubmarineRide(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateRiverRafts(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateEnterprise(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateInvertedImpulseCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateMineRide(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateLimLaunchedRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateClassicMiniRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateHybridCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateSingleRailRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateAlpineCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateClassicWoodenRollerCoaster(Ride& ride, RideRatingUpdateState& state);
void RideRatingsCalculateDrinkStall(Ride& ride, RideRatingUpdateState& state);
// Special Track Element Adjustment functions for RTDs
void SpecialTrackElementRatingsAjustment_Default(const Ride& ride, int32_t& excitement, int32_t& intensity, int32_t& nausea);
+88 -88
View File
@@ -231,7 +231,7 @@ enum
SPR_STATION_COVER_OFFSET_TALL
};
bool track_paint_util_has_fence(
bool TrackPaintUtilHasFence(
enum edge_t edge, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, uint8_t rotation)
{
const auto* stationObject = ride.GetStationObject();
@@ -262,7 +262,7 @@ bool track_paint_util_has_fence(
return (entranceLoc != station.Entrance && entranceLoc != station.Exit);
}
void track_paint_util_paint_floor(
void TrackPaintUtilPaintFloor(
PaintSession& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4],
const StationObject* stationStyle)
{
@@ -291,26 +291,26 @@ void track_paint_util_paint_floor(
PaintAddImageAsParent(session, colourFlags.WithIndex(imageId), { 0, 0, height }, { 32, 32, 1 }, { 0, 0, height });
}
void track_paint_util_paint_fences(
void TrackPaintUtilPaintFences(
PaintSession& session, uint8_t edges, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride,
const ImageId colourFlags, uint16_t height, const uint32_t fenceSprites[4], uint8_t rotation)
{
if (edges & EDGE_NW && track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, rotation))
if (edges & EDGE_NW && TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, rotation))
{
PaintAddImageAsChild(
session, colourFlags.WithIndex(fenceSprites[3]), { 0, 0, height }, { { 0, 2, height + 2 }, { 32, 1, 7 } });
}
if (edges & EDGE_NE && track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, rotation))
if (edges & EDGE_NE && TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, rotation))
{
PaintAddImageAsChild(
session, colourFlags.WithIndex(fenceSprites[0]), { 0, 0, height }, { { 2, 0, height + 2 }, { 1, 32, 7 } });
}
if (edges & EDGE_SE && track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, rotation))
if (edges & EDGE_SE && TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, rotation))
{
PaintAddImageAsParent(
session, colourFlags.WithIndex(fenceSprites[1]), { 0, 0, height }, { { 0, 30, height + 2 }, { 32, 1, 7 } });
}
if (edges & EDGE_SW && track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, rotation))
if (edges & EDGE_SW && TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, rotation))
{
PaintAddImageAsParent(
session, colourFlags.WithIndex(fenceSprites[2]), { 0, 0, height }, { 1, 32, 7 }, { 30, 0, height + 2 });
@@ -318,7 +318,7 @@ void track_paint_util_paint_fences(
}
/* Supports are only placed every 2 tiles for flat pieces*/
bool track_paint_util_should_paint_supports(const CoordsXY& position)
bool TrackPaintUtilShouldPaintSupports(const CoordsXY& position)
{
if ((position.x & (1 << 5)) == (position.y & (1 << 5)))
return true;
@@ -329,31 +329,31 @@ bool track_paint_util_should_paint_supports(const CoordsXY& position)
return false;
}
static void track_paint_util_draw_station_impl(
static void TrackPaintUtilDrawStationImpl(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB);
void track_paint_util_draw_station(
void TrackPaintUtilDrawStation(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement)
{
track_paint_util_draw_station_impl(session, ride, direction, height, height, trackElement, 5, 7);
TrackPaintUtilDrawStationImpl(session, ride, direction, height, height, trackElement, 5, 7);
}
void track_paint_util_draw_station_2(
void TrackPaintUtilDrawStation2(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement,
int32_t fenceOffsetA, int32_t fenceOffsetB)
{
track_paint_util_draw_station_impl(session, ride, direction, height, height, trackElement, fenceOffsetA, fenceOffsetB);
TrackPaintUtilDrawStationImpl(session, ride, direction, height, height, trackElement, fenceOffsetA, fenceOffsetB);
}
void track_paint_util_draw_station_3(
void TrackPaintUtilDrawStation3(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
const TrackElement& trackElement)
{
track_paint_util_draw_station_impl(session, ride, direction, height, coverHeight, trackElement, 5, 7);
TrackPaintUtilDrawStationImpl(session, ride, direction, height, coverHeight, trackElement, 5, 7);
}
static void track_paint_util_draw_station_impl(
static void TrackPaintUtilDrawStationImpl(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB)
{
@@ -370,7 +370,7 @@ static void track_paint_util_draw_station_impl(
if (direction == 0 || direction == 2)
{
// height += 5 (height + 5);
hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, session.CurrentRotation);
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0)
{
@@ -397,7 +397,7 @@ static void track_paint_util_draw_station_impl(
}
PaintAddImageAsParent(session, imageId, { 0, 0, height + fenceOffsetA }, { 32, 8, 1 });
// height -= 5 (height)
track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, coverHeight);
TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, coverHeight);
// height += 5 (height + 5)
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0)
@@ -416,7 +416,7 @@ static void track_paint_util_draw_station_impl(
PaintAddImageAsParent(session, imageId, { 0, 24, height + fenceOffsetA }, { 32, 8, 1 });
// height += 2 (height + 7)
hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0)
@@ -446,7 +446,7 @@ static void track_paint_util_draw_station_impl(
PaintAddImageAsParent(session, imageId, { 31, 23, height + fenceOffsetB }, { 1, 8, 7 });
}
// height -= 7 (height)
track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, coverHeight);
TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, coverHeight);
// height += 7 (height + 7)
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0)
@@ -463,7 +463,7 @@ static void track_paint_util_draw_station_impl(
else if (direction == 1 || direction == 3)
{
// height += 5 (height + 5);
hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3)
{
@@ -490,7 +490,7 @@ static void track_paint_util_draw_station_impl(
}
PaintAddImageAsParent(session, imageId, { 0, 0, height + fenceOffsetA }, { 8, 32, 1 });
// height -= 5 (height)
track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, coverHeight);
TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, coverHeight);
// height += 5 (height + 5)
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3)
@@ -509,7 +509,7 @@ static void track_paint_util_draw_station_impl(
PaintAddImageAsParent(session, imageId, { 24, 0, height + fenceOffsetA }, { 8, 32, 1 });
// height += 2 (height + 7)
hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3)
@@ -540,7 +540,7 @@ static void track_paint_util_draw_station_impl(
}
// height -= 7 (height)
track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, coverHeight);
TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, coverHeight);
// height += 7 (height + 7)
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3)
@@ -556,7 +556,7 @@ static void track_paint_util_draw_station_impl(
}
}
void track_paint_util_draw_station_inverted(
void TrackPaintUtilDrawStationInverted(
PaintSession& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement,
uint8_t stationVariant)
{
@@ -573,7 +573,7 @@ void track_paint_util_draw_station_inverted(
if (direction == 0 || direction == 2)
{
// height += 5 (height + 5);
hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, session.CurrentRotation);
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0)
{
@@ -600,7 +600,7 @@ void track_paint_util_draw_station_inverted(
}
PaintAddImageAsParent(session, imageId, { 0, 0, height + 6 }, { 32, 8, 1 });
// height -= 5 (height)
track_paint_util_draw_station_covers_2(session, EDGE_NW, hasFence, stationObj, height, stationVariant);
TrackPaintUtilDrawStationCovers2(session, EDGE_NW, hasFence, stationObj, height, stationVariant);
// height += 5 (height + 5)
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 0)
@@ -619,7 +619,7 @@ void track_paint_util_draw_station_inverted(
PaintAddImageAsParent(session, imageId, { 0, 24, height + 6 }, { 32, 8, 1 });
// height += 2 (height + 7)
hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0)
@@ -649,7 +649,7 @@ void track_paint_util_draw_station_inverted(
PaintAddImageAsParent(session, imageId, { 31, 23, height + 8 }, { 1, 8, 7 });
}
// height -= 7 (height)
track_paint_util_draw_station_covers_2(session, EDGE_SE, hasFence, stationObj, height, stationVariant);
TrackPaintUtilDrawStationCovers2(session, EDGE_SE, hasFence, stationObj, height, stationVariant);
// height += 7 (height + 7)
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 0)
@@ -666,7 +666,7 @@ void track_paint_util_draw_station_inverted(
else if (direction == 1 || direction == 3)
{
// height += 5 (height + 5);
hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3)
{
@@ -693,7 +693,7 @@ void track_paint_util_draw_station_inverted(
}
PaintAddImageAsParent(session, imageId, { 0, 0, height + 6 }, { 8, 32, 1 });
// height -= 5 (height)
track_paint_util_draw_station_covers_2(session, EDGE_NE, hasFence, stationObj, height, stationVariant);
TrackPaintUtilDrawStationCovers2(session, EDGE_NE, hasFence, stationObj, height, stationVariant);
// height += 5 (height + 5)
if (trackElement.GetTrackType() == TrackElemType::EndStation && direction == 3)
@@ -712,7 +712,7 @@ void track_paint_util_draw_station_inverted(
PaintAddImageAsParent(session, imageId, { 24, 0, height + 6 }, { 8, 32, 1 });
// height += 2 (height + 7)
hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3)
@@ -743,7 +743,7 @@ void track_paint_util_draw_station_inverted(
}
// height -= 7 (height)
track_paint_util_draw_station_covers_2(session, EDGE_SW, hasFence, stationObj, height, stationVariant);
TrackPaintUtilDrawStationCovers2(session, EDGE_SW, hasFence, stationObj, height, stationVariant);
// height += 7 (height + 7)
if (trackElement.GetTrackType() == TrackElemType::BeginStation && direction == 3)
@@ -759,13 +759,13 @@ void track_paint_util_draw_station_inverted(
}
}
bool track_paint_util_draw_station_covers(
bool TrackPaintUtilDrawStationCovers(
PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height)
{
return track_paint_util_draw_station_covers_2(session, edge, hasFence, stationObject, height, STATION_VARIANT_BASIC);
return TrackPaintUtilDrawStationCovers2(session, edge, hasFence, stationObject, height, STATION_VARIANT_BASIC);
}
bool track_paint_util_draw_station_covers_2(
bool TrackPaintUtilDrawStationCovers2(
PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height,
uint8_t stationVariant)
{
@@ -830,7 +830,7 @@ bool track_paint_util_draw_station_covers_2(
return true;
}
void track_paint_util_draw_narrow_station_platform(
void TrackPaintUtilDrawNarrowStationPlatform(
PaintSession& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset,
const TrackElement& trackElement)
{
@@ -841,45 +841,45 @@ void track_paint_util_draw_narrow_station_platform(
if (direction & 1)
{
bool hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
bool hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
ImageId imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(
(hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NE : SPR_STATION_NARROW_EDGE_NE));
PaintAddImageAsParent(session, imageId, { 0, 0, height + zOffset }, { 8, 32, 1 });
track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height);
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_NARROW_EDGE_SW);
PaintAddImageAsParent(session, imageId, { 24, 0, height + zOffset }, { 8, 32, 1 });
hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_FENCE_NW_SE);
PaintAddImageAsParent(session, imageId, { 31, 0, height + zOffset + 2 }, { 1, 32, 7 });
}
track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height);
}
else
{
bool hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, session.CurrentRotation);
bool hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, session.CurrentRotation);
ImageId imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(
(hasFence ? SPR_STATION_NARROW_EDGE_FENCED_NW : SPR_STATION_NARROW_EDGE_NW));
PaintAddImageAsParent(session, imageId, { 0, 0, height + zOffset }, { 32, 8, 1 });
track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height);
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_NARROW_EDGE_SE);
PaintAddImageAsParent(session, imageId, { 0, 24, height + zOffset }, { 32, 8, 1 });
hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_FENCE_SW_NE);
PaintAddImageAsParent(session, imageId, { 0, 31, height + zOffset + 2 }, { 32, 1, 7 });
}
track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height);
}
}
void track_paint_util_draw_pier(
void TrackPaintUtilDrawPier(
PaintSession& session, const Ride& ride, const StationObject* stationObj, const CoordsXY& position, Direction direction,
int32_t height, const TrackElement& trackElement, uint8_t rotation)
{
@@ -891,50 +891,50 @@ void track_paint_util_draw_pier(
if (direction & 1)
{
hasFence = track_paint_util_has_fence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NE, position, trackElement, ride, session.CurrentRotation);
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(
(hasFence ? SPR_STATION_PIER_EDGE_NE_FENCED : SPR_STATION_PIER_EDGE_NE));
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 6, 32, 1 }, { 2, 0, height });
track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height);
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_EDGE_SW);
PaintAddImageAsParent(session, imageId, { 24, 0, height }, { 8, 32, 1 });
hasFence = track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_FENCE_SW);
PaintAddImageAsParent(session, imageId, { 31, 0, height + 2 }, { 1, 32, 7 });
}
track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height);
}
else
{
hasFence = track_paint_util_has_fence(EDGE_NW, position, trackElement, ride, rotation);
hasFence = TrackPaintUtilHasFence(EDGE_NW, position, trackElement, ride, rotation);
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(
(hasFence ? SPR_STATION_PIER_EDGE_NW_FENCED : SPR_STATION_PIER_EDGE_NW));
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 6, 1 }, { 0, 2, height });
track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height);
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_EDGE_SE);
PaintAddImageAsParent(session, imageId, { 0, 24, height }, { 32, 8, 1 });
hasFence = track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, rotation);
hasFence = TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, rotation);
if (hasFence)
{
imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SPR_STATION_PIER_FENCE_SE);
PaintAddImageAsParent(session, imageId, { 0, 31, height + 2 }, { 32, 1, 7 });
}
track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height);
}
}
void track_paint_util_draw_station_metal_supports(PaintSession& session, Direction direction, uint16_t height, ImageId colour)
void TrackPaintUtilDrawStationMetalSupports(PaintSession& session, Direction direction, uint16_t height, ImageId colour)
{
track_paint_util_draw_station_metal_supports_2(session, direction, height, colour, 3);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, colour, 3);
}
void track_paint_util_draw_station_metal_supports_2(
void TrackPaintUtilDrawStationMetalSupports2(
PaintSession& session, Direction direction, uint16_t height, ImageId colour, uint8_t type)
{
if (direction & 1)
@@ -1002,7 +1002,7 @@ static constexpr const int8_t right_helix_up_small_quarter_tiles_sprite_map[] =
2,
};
void track_paint_util_right_helix_up_small_quarter_tiles_paint(
void TrackPaintUtilRightHelixUpSmallQuarterTilesPaint(
PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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])
@@ -1102,7 +1102,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(
void TrackPaintUtilRightHelixUpLargeQuarterTilesPaint(
PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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])
@@ -1279,7 +1279,7 @@ const uint8_t mapLeftEighthTurnToOrthogonal[] = {
static constexpr const int8_t eighth_to_diag_sprite_map[] = {
0, 1, 2, -1, 3,
};
void track_paint_util_eighth_to_diag_tiles_paint(
void TrackPaintUtilEighthToDiagTilesPaint(
PaintSession& session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][4], const CoordsXY offsets[4][4], const CoordsXY boundsLengths[4][4],
const CoordsXYZ boundsOffsets[4][4])
@@ -1321,7 +1321,7 @@ static constexpr const int8_t diag_sprite_map[4][4] = {
{ 0, -1, -1, -1 },
};
void track_paint_util_diag_tiles_paint(
void TrackPaintUtilDiagTilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4], const CoordsXY offsets[4], const CoordsXY boundsLengths[4],
const CoordsXYZ boundsOffsets[4])
@@ -1443,7 +1443,7 @@ static constexpr const int8_t right_quarter_turn_5_tiles_sprite_map[] = {
0, -1, 1, 2, -1, 3, 4,
};
void track_paint_util_right_quarter_turn_5_tiles_paint(
void TrackPaintUtilRightQuarterTurn5TilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][5], const CoordsXY offsets[4][5], const CoordsXY boundsLengths[4][5],
const CoordsXYZ boundsOffsets[4][5])
@@ -1464,7 +1464,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint(
{ boundsLength.x, boundsLength.y, thickness }, { boundsOffset.x, boundsOffset.y, height + boundsOffset.z });
}
void track_paint_util_right_quarter_turn_5_tiles_paint_2(
void TrackPaintUtilRightQuarterTurn5TilesPaint2(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[][5])
{
@@ -1483,7 +1483,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_2(
{ bbOffset.x, bbOffset.y, height + bbOffset.z });
}
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
void TrackPaintUtilRightQuarterTurn5TilesPaint3(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[][5])
{
@@ -1499,7 +1499,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_3(
PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size);
}
void track_paint_util_right_quarter_turn_5_tiles_tunnel(
void TrackPaintUtilRightQuarterTurn5TilesTunnel(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
{
if (direction == 0 && trackSequence == 0)
@@ -1520,7 +1520,7 @@ void track_paint_util_right_quarter_turn_5_tiles_tunnel(
}
}
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(
void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence)
{
if (trackSequence != 1 && trackSequence != 4)
@@ -1619,7 +1619,7 @@ static constexpr const int8_t right_quarter_turn_3_tiles_sprite_map[] = {
2,
};
void track_paint_util_right_quarter_turn_3_tiles_paint(
void TrackPaintUtilRightQuarterTurn3TilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3], const CoordsXY offsets[4][3], const CoordsXY boundsLengths[4][3],
const CoordsXYZ boundsOffsets[4][3])
@@ -1640,15 +1640,15 @@ void track_paint_util_right_quarter_turn_3_tiles_paint(
{ boundsOffset.x, boundsOffset.y, height + boundsOffset.z });
}
void track_paint_util_right_quarter_turn_3_tiles_paint_2(
void TrackPaintUtilRightQuarterTurn3TilesPaint2(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3])
{
track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset(
session, thickness, height, direction, trackSequence, colourFlags, sprites, 0);
}
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
void TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset)
{
@@ -1736,7 +1736,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(
void TrackPaintUtilRightQuarterTurn3TilesPaint3(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[4][3])
{
@@ -1753,7 +1753,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_3(
{ bbOffset.x, bbOffset.y, height + bbOffset.z });
}
void track_paint_util_right_quarter_turn_3_tiles_paint_4(
void TrackPaintUtilRightQuarterTurn3TilesPaint4(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[4][3])
{
@@ -1769,7 +1769,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_4(
PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size);
}
void track_paint_util_right_quarter_turn_3_tiles_tunnel(
void TrackPaintUtilRightQuarterTurn3TilesTunnel(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
{
if (direction == 0 && trackSequence == 0)
@@ -1793,7 +1793,7 @@ void track_paint_util_right_quarter_turn_3_tiles_tunnel(
}
}
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
{
if (direction == 0 && trackSequence == 0)
@@ -1814,7 +1814,7 @@ 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(
void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
{
if (direction == 0 && trackSequence == 0)
@@ -1842,15 +1842,15 @@ static constexpr const int8_t left_quarter_turn_3_tiles_sprite_map[] = {
0,
};
void track_paint_util_left_quarter_turn_3_tiles_paint(
void TrackPaintUtilLeftQuarterTurn3TilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3])
{
track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset(
session, thickness, height, direction, trackSequence, colourFlags, sprites, 0);
}
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
void TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset)
{
@@ -1938,7 +1938,7 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
}
}
void track_paint_util_left_quarter_turn_3_tiles_tunnel(
void TrackPaintUtilLeftQuarterTurn3TilesTunnel(
PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence)
{
if (direction == 0 && trackSequence == 0)
@@ -1962,7 +1962,7 @@ void track_paint_util_left_quarter_turn_3_tiles_tunnel(
}
}
void track_paint_util_left_quarter_turn_1_tile_paint(
void TrackPaintUtilLeftQuarterTurn1TilePaint(
PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
const ImageId colourFlags, const uint32_t* sprites)
{
@@ -1989,15 +1989,15 @@ void track_paint_util_left_quarter_turn_1_tile_paint(
}
}
void track_paint_util_right_quarter_turn_1_tile_tunnel(
void TrackPaintUtilRightQuarterTurn1TileTunnel(
PaintSession& 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(
TrackPaintUtilLeftQuarterTurn1TileTunnel(
session, (direction + 3) % 4, baseHeight, endOffset, endTunnel, startOffset, startTunnel);
}
void track_paint_util_left_quarter_turn_1_tile_tunnel(
void TrackPaintUtilLeftQuarterTurn1TileTunnel(
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
uint8_t endTunnel)
{
@@ -2016,7 +2016,7 @@ void track_paint_util_left_quarter_turn_1_tile_tunnel(
}
}
void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickness, int16_t height, Direction direction)
void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, int16_t height, Direction direction)
{
int32_t frame = gCurrentTicks >> 2 & 3;
auto colourFlags = session.TrackColours[SCHEME_SUPPORTS];
@@ -2048,7 +2048,7 @@ void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickn
}
}
void track_paint_util_onride_photo_small_paint(
void TrackPaintUtilOnridePhotoSmallPaint(
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement)
{
static constexpr const uint32_t imageIds[4][3] = {
@@ -2086,7 +2086,7 @@ void track_paint_util_onride_photo_small_paint(
}
}
void track_paint_util_onride_photo_paint(
void TrackPaintUtilOnridePhotoPaint(
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement)
{
static constexpr const uint32_t imageIds[4][3] = {
@@ -2137,7 +2137,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(PaintSession& session, Direction direction, uint8_t trackSequence)
void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence)
{
if (trackSequence > 9)
{
@@ -2149,7 +2149,7 @@ void track_paint_util_right_vertical_loop_segments(PaintSession& session, Direct
session, PaintUtilRotateSegments(RightVerticalLoopSegments[trackSequence], direction), 0xFFFF, 0);
}
void track_paint_util_left_corkscrew_up_supports(PaintSession& session, Direction direction, uint16_t height)
void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& 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)
+97 -97
View File
@@ -279,198 +279,198 @@ extern const uint8_t mapLeftEighthTurnToOrthogonal[5];
extern const size_t MiniGolfPeepAnimationLengths[];
bool track_paint_util_has_fence(
bool TrackPaintUtilHasFence(
enum edge_t edge, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, uint8_t rotation);
void track_paint_util_paint_floor(
void TrackPaintUtilPaintFloor(
PaintSession& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4],
const StationObject* stationStyle);
void track_paint_util_paint_fences(
void TrackPaintUtilPaintFences(
PaintSession& session, uint8_t edges, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride,
const ImageId colourFlags, uint16_t height, const uint32_t fenceSprites[4], uint8_t rotation);
bool track_paint_util_draw_station_covers(
bool TrackPaintUtilDrawStationCovers(
PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height);
bool track_paint_util_draw_station_covers_2(
bool TrackPaintUtilDrawStationCovers2(
PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height,
uint8_t stationVariant);
void track_paint_util_draw_narrow_station_platform(
void TrackPaintUtilDrawNarrowStationPlatform(
PaintSession& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset,
const TrackElement& trackElement);
void track_paint_util_draw_station(
void TrackPaintUtilDrawStation(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement);
void track_paint_util_draw_station_2(
void TrackPaintUtilDrawStation2(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement,
int32_t fenceOffsetA, int32_t fenceOffsetB);
void track_paint_util_draw_station_3(
void TrackPaintUtilDrawStation3(
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
const TrackElement& trackElement);
void track_paint_util_draw_station_inverted(
void TrackPaintUtilDrawStationInverted(
PaintSession& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement,
uint8_t stationVariant);
bool track_paint_util_should_paint_supports(const CoordsXY& position);
void track_paint_util_draw_pier(
bool TrackPaintUtilShouldPaintSupports(const CoordsXY& position);
void TrackPaintUtilDrawPier(
PaintSession& session, const Ride& ride, const StationObject* stationObject, const CoordsXY& position, Direction direction,
int32_t height, const TrackElement& trackElement, uint8_t rotation);
void track_paint_util_draw_station_metal_supports(PaintSession& session, Direction direction, uint16_t height, ImageId colour);
void track_paint_util_draw_station_metal_supports_2(
void TrackPaintUtilDrawStationMetalSupports(PaintSession& session, Direction direction, uint16_t height, ImageId colour);
void TrackPaintUtilDrawStationMetalSupports2(
PaintSession& session, Direction direction, uint16_t height, ImageId colour, uint8_t type);
void track_paint_util_right_quarter_turn_5_tiles_paint(
void TrackPaintUtilRightQuarterTurn5TilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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(
void TrackPaintUtilRightQuarterTurn5TilesPaint2(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[][5]);
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
void TrackPaintUtilRightQuarterTurn5TilesPaint3(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[][5]);
void track_paint_util_right_quarter_turn_5_tiles_tunnel(
void TrackPaintUtilRightQuarterTurn5TilesTunnel(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(
void TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence);
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
void TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(
PaintSession& 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(
void TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(
PaintSession& 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(
void TrackPaintUtilRightQuarterTurn3TilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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(
void TrackPaintUtilRightQuarterTurn3TilesPaint2(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3]);
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
void TrackPaintUtilRightQuarterTurn3TilesPaint2WithHeightOffset(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset);
void track_paint_util_right_quarter_turn_3_tiles_paint_3(
void TrackPaintUtilRightQuarterTurn3TilesPaint3(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[4][3]);
void track_paint_util_right_quarter_turn_3_tiles_paint_4(
void TrackPaintUtilRightQuarterTurn3TilesPaint4(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId colourFlags,
const SpriteBb sprites[4][3]);
void track_paint_util_right_quarter_turn_3_tiles_tunnel(
void TrackPaintUtilRightQuarterTurn3TilesTunnel(
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
void track_paint_util_left_quarter_turn_3_tiles_paint(
void TrackPaintUtilLeftQuarterTurn3TilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3]);
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
void TrackPaintUtilLeftQuarterTurn3TilesPaintWithHeightOffset(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId colourFlags, const uint32_t sprites[4][3], int32_t heightOffset);
void track_paint_util_left_quarter_turn_3_tiles_tunnel(
void TrackPaintUtilLeftQuarterTurn3TilesTunnel(
PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence);
void track_paint_util_left_quarter_turn_1_tile_paint(
void TrackPaintUtilLeftQuarterTurn1TilePaint(
PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
const ImageId colourFlags, const uint32_t* sprites);
void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickness, int16_t height, Direction direction);
void track_paint_util_onride_photo_small_paint(
void TrackPaintUtilSpinningTunnelPaint(PaintSession& session, int8_t thickness, int16_t height, Direction direction);
void TrackPaintUtilOnridePhotoSmallPaint(
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement);
void track_paint_util_onride_photo_paint(
void TrackPaintUtilOnridePhotoPaint(
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement);
void track_paint_util_right_helix_up_small_quarter_tiles_paint(
void TrackPaintUtilRightHelixUpSmallQuarterTilesPaint(
PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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(
void TrackPaintUtilRightHelixUpLargeQuarterTilesPaint(
PaintSession& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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(
void TrackPaintUtilEighthToDiagTilesPaint(
PaintSession& session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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(
void TrackPaintUtilDiagTilesPaint(
PaintSession& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
const ImageId 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(
void TrackPaintUtilLeftQuarterTurn1TileTunnel(
PaintSession& 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(
void TrackPaintUtilRightQuarterTurn1TileTunnel(
PaintSession& 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(PaintSession& session, Direction direction, uint8_t trackSequence);
void TrackPaintUtilRightVerticalLoopSegments(PaintSession& session, Direction direction, uint8_t trackSequence);
void track_paint_util_left_corkscrew_up_supports(PaintSession& session, Direction direction, uint16_t height);
void TrackPaintUtilLeftCorkscrewUpSupports(PaintSession& session, Direction direction, uint16_t height);
using TRACK_PAINT_FUNCTION = void (*)(
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
const TrackElement& trackElement);
using TRACK_PAINT_FUNCTION_GETTER = TRACK_PAINT_FUNCTION (*)(int32_t trackType);
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 GetTrackPaintFunctionStandUpRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedSwingingRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionJuniorRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMonorail(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniSuspendedRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniatureRailway(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionBoatHire(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenWildMouse(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSteeplechase(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCarRide(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 GetTrackPaintFunctionLaunchedFreefall(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionBobsleighRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionObservationTower(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 GetTrackPaintFunctionLoopingRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionDinghySlide(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineTrainRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionChairlift(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCorkscrewRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMaze(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSpiralSlide(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 GetTrackPaintFunctionGoKarts(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionLogFlume(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionRiverRapids(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionDodgems(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 GetTrackPaintFunctionSwingingShip(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSwingingInverterShip(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionFerrisWheel(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 GetTrackPaintFunctionMotionsimulator(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunction3dCinema(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionTopspin(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSpaceRings(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_shop(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverseFreefallRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionLift(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionShop(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMerryGoRound(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 GetTrackPaintFunctionFacility(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionTwist(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionHauntedHouse(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCircus(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionGhostTrain(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 GetTrackPaintFunctionSideFrictionRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWildMouse(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMultiDimensionRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionVirginiaReel(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSplashBoats(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniHelicopters(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 GetTrackPaintFunctionLayDownRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedMonorail(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverserRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionHeartlineTwisterRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniGolf(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 GetTrackPaintFunctionGigaRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionRotoDrop(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingSaucers(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCrookedHouse(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMonorailCycles(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);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCompactInvertedRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWaterRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionAirPoweredVerticalRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedHairpinRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMagicCarpet(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSubmarineRide(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionEnterprise(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedImpulseRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniRc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineRide(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionLimLaunchedRc(int32_t trackType);
namespace HybridRC
{
TRACK_PAINT_FUNCTION GetTrackPaintFunction(int32_t trackType);
@@ -483,4 +483,4 @@ namespace AlpineRC
{
TRACK_PAINT_FUNCTION GetTrackPaintFunction(int32_t trackType);
}
TRACK_PAINT_FUNCTION get_track_paint_function_classic_wooden_rc(int32_t trackType);
TRACK_PAINT_FUNCTION GetTrackPaintFunctionClassicWoodenRc(int32_t trackType);
@@ -218,7 +218,7 @@ static void air_powered_vertical_rc_track_station(
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 5, trackElement);
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 5, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
@@ -261,10 +261,10 @@ static void air_powered_vertical_rc_track_right_quarter_turn_5(
},
};
track_paint_util_right_quarter_turn_5_tiles_paint_3(
TrackPaintUtilRightQuarterTurn5TilesPaint3(
session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds);
track_paint_util_right_quarter_turn_5_tiles_wooden_supports(session, height, direction, trackSequence);
track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(session, height, direction, trackSequence);
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
switch (trackSequence)
{
@@ -423,7 +423,7 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5(
},
};
track_paint_util_right_quarter_turn_5_tiles_paint_2(
TrackPaintUtilRightQuarterTurn5TilesPaint2(
session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds);
if (direction == 1 && trackSequence == 6)
@@ -439,8 +439,8 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5(
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 27, 0, height }, { 1, 32, 26 } });
}
track_paint_util_right_quarter_turn_5_tiles_wooden_supports(session, height, direction, trackSequence);
track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
TrackPaintUtilRightQuarterTurn5TilesWoodenSupports(session, height, direction, trackSequence);
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
switch (trackSequence)
{
@@ -961,14 +961,14 @@ static void air_powered_vertical_rc_track_onride_photo(
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_air_powered_vertical_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionAirPoweredVerticalRc(int32_t trackType)
{
switch (trackType)
{
+18 -18
View File
@@ -55,7 +55,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
@@ -79,7 +79,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
@@ -118,8 +118,8 @@ namespace AlpineRC
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height - 2 },
{ 32, 28, 2 }, { 0, 2, height });
track_paint_util_draw_station_metal_supports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 4, 7);
TrackPaintUtilDrawStationMetalSupports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -156,7 +156,7 @@ namespace AlpineRC
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 8, height,
@@ -188,7 +188,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 8, height,
@@ -237,7 +237,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height,
@@ -269,7 +269,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height,
@@ -318,7 +318,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height,
@@ -350,7 +350,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height,
@@ -2180,7 +2180,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
@@ -2227,7 +2227,7 @@ namespace AlpineRC
{ 32, 1, 26 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
@@ -2292,7 +2292,7 @@ namespace AlpineRC
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height,
@@ -2350,7 +2350,7 @@ namespace AlpineRC
{ 32, 1, 34 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 3, height,
@@ -2408,7 +2408,7 @@ namespace AlpineRC
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height,
@@ -2466,7 +2466,7 @@ namespace AlpineRC
{ 32, 1, 34 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 6, height,
@@ -2544,7 +2544,7 @@ namespace AlpineRC
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
@@ -6789,7 +6789,7 @@ namespace AlpineRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, direction & 1 ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
+23 -23
View File
@@ -58,7 +58,7 @@ static void bobsleigh_rc_track_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -86,7 +86,7 @@ static void bobsleigh_rc_track_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -114,8 +114,8 @@ static void bobsleigh_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -163,7 +163,7 @@ static void bobsleigh_rc_track_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -205,7 +205,7 @@ static void bobsleigh_rc_track_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -265,7 +265,7 @@ static void bobsleigh_rc_track_flat_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -307,7 +307,7 @@ static void bobsleigh_rc_track_flat_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -367,7 +367,7 @@ static void bobsleigh_rc_track_25_deg_up_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -409,7 +409,7 @@ static void bobsleigh_rc_track_25_deg_up_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -735,7 +735,7 @@ static void bobsleigh_rc_track_flat_to_left_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -785,7 +785,7 @@ static void bobsleigh_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -835,7 +835,7 @@ static void bobsleigh_rc_track_left_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -885,7 +885,7 @@ static void bobsleigh_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1179,7 +1179,7 @@ static void bobsleigh_rc_track_left_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1236,7 +1236,7 @@ static void bobsleigh_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1293,7 +1293,7 @@ static void bobsleigh_rc_track_25_deg_up_to_left_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1350,7 +1350,7 @@ static void bobsleigh_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1439,7 +1439,7 @@ static void bobsleigh_rc_track_left_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3757,7 +3757,7 @@ static void bobsleigh_rc_track_brakes(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3796,7 +3796,7 @@ static void bobsleigh_rc_track_block_brakes(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3863,13 +3863,13 @@ static void bobsleigh_rc_track_on_ride_photo(
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_bobsleigh_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionBobsleighRc(int32_t trackType)
{
switch (trackType)
{
@@ -49,7 +49,7 @@ static void bolliger_mabillard_track_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]), { 0, 0, height },
{ 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -67,7 +67,7 @@ static void bolliger_mabillard_track_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]), { 0, 0, height },
{ 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -107,10 +107,9 @@ static void bolliger_mabillard_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(
session, direction, height, session.TrackColours[SCHEME_SUPPORTS], supportType);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], supportType);
track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 9, trackElement);
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 9, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
@@ -147,7 +146,7 @@ static void bolliger_mabillard_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -177,7 +176,7 @@ static void bolliger_mabillard_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -225,7 +224,7 @@ static void bolliger_mabillard_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -255,7 +254,7 @@ static void bolliger_mabillard_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -303,7 +302,7 @@ static void bolliger_mabillard_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -333,7 +332,7 @@ static void bolliger_mabillard_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -387,7 +386,7 @@ static void bolliger_mabillard_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -423,7 +422,7 @@ static void bolliger_mabillard_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -477,7 +476,7 @@ static void bolliger_mabillard_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -513,7 +512,7 @@ static void bolliger_mabillard_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -561,7 +560,7 @@ static void bolliger_mabillard_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -591,7 +590,7 @@ static void bolliger_mabillard_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -880,7 +879,7 @@ static void bolliger_mabillard_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -924,7 +923,7 @@ static void bolliger_mabillard_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -968,7 +967,7 @@ static void bolliger_mabillard_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1012,7 +1011,7 @@ static void bolliger_mabillard_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1250,7 +1249,7 @@ static void bolliger_mabillard_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1301,7 +1300,7 @@ static void bolliger_mabillard_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1352,7 +1351,7 @@ static void bolliger_mabillard_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1403,7 +1402,7 @@ static void bolliger_mabillard_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1484,7 +1483,7 @@ static void bolliger_mabillard_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2689,7 +2688,7 @@ static void bolliger_mabillard_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
template<uint8_t supportType>
@@ -4417,7 +4416,7 @@ static void bolliger_mabillard_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4462,7 +4461,7 @@ static void bolliger_mabillard_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4505,7 +4504,7 @@ static void bolliger_mabillard_track_brakes(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4543,7 +4542,7 @@ static void bolliger_mabillard_track_25_deg_up_left_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4588,7 +4587,7 @@ static void bolliger_mabillard_track_25_deg_up_right_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4649,7 +4648,7 @@ static void bolliger_mabillard_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -9239,7 +9238,7 @@ static void bolliger_mabillard_track_block_brakes(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9847,7 +9846,7 @@ static void bolliger_mabillard_track_25_deg_up_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9895,7 +9894,7 @@ static void bolliger_mabillard_track_25_deg_up_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9943,7 +9942,7 @@ static void bolliger_mabillard_track_left_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9991,7 +9990,7 @@ static void bolliger_mabillard_track_right_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10072,7 +10071,7 @@ static void bolliger_mabillard_track_left_banked_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10117,7 +10116,7 @@ static void bolliger_mabillard_track_right_banked_flat_to_right_banked_25_deg_up
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10162,7 +10161,7 @@ static void bolliger_mabillard_track_left_banked_25_deg_up_to_left_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10207,7 +10206,7 @@ static void bolliger_mabillard_track_right_banked_25_deg_up_to_right_banked_flat
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10291,7 +10290,7 @@ static void bolliger_mabillard_track_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10339,7 +10338,7 @@ static void bolliger_mabillard_track_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10387,7 +10386,7 @@ static void bolliger_mabillard_track_left_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10435,7 +10434,7 @@ static void bolliger_mabillard_track_right_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11012,7 +11011,7 @@ static void bolliger_mabillard_track_left_corkscrew_up(
break;
}
track_paint_util_left_corkscrew_up_supports(session, direction, height);
TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height);
if (direction == 0 || direction == 3)
{
@@ -11252,7 +11251,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11288,7 +11287,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11320,7 +11319,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11352,7 +11351,7 @@ static void bolliger_mabillard_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11404,7 +11403,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11440,7 +11439,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11472,7 +11471,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -11504,7 +11503,7 @@ static void bolliger_mabillard_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -12511,7 +12510,7 @@ void bolliger_mabillard_track_booster(
{ nw_se_offsetX, nw_se_offsetY, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -12985,7 +12984,7 @@ static void bolliger_mabillard_track_right_twist_up_to_down(
}
}
template<uint8_t supportType> TRACK_PAINT_FUNCTION get_track_paint_function_bolliger_mabillard(int32_t trackType)
template<uint8_t supportType> TRACK_PAINT_FUNCTION GetTrackPaintFunctionBolligerMabillard(int32_t trackType)
{
switch (trackType)
{
@@ -692,7 +692,7 @@ static void classic_wooden_rc_track_banked_right_quarter_turn_5(
WoodenRcTrackPaintBb<true>(session, &imageIds[direction][trackSequence][0], height);
WoodenRcTrackPaintBb<true>(session, &imageIds[direction][trackSequence][1], height);
track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
if (supportType[direction][trackSequence] != -1)
{
@@ -811,7 +811,7 @@ static void classic_wooden_rc_track_right_quarter_turn_3_bank(
WoodenRcTrackPaintBb<true>(session, &imageIds[direction][trackSequence][0], height);
WoodenRcTrackPaintBb<true>(session, &imageIds[direction][trackSequence][1], height);
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
if (supportType[direction][trackSequence] != -1)
{
@@ -1860,7 +1860,7 @@ static void classic_wooden_rc_track_diag_25_deg_down_to_right_bank(
// Stylistically, this coaster is _very_ similar to the regular Wooden Roller Coaster.
// The only difference is to which parts the colours are applied, and the degree of the banking.
// As such, all non-banked pieces are simply drawn as regular wooden roller coaster pieces with a different paint scheme.
TRACK_PAINT_FUNCTION get_track_paint_function_classic_wooden_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionClassicWoodenRc(int32_t trackType)
{
if (!IsCsgLoaded())
{
@@ -62,7 +62,7 @@ static void compact_inverted_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -93,8 +93,8 @@ static void compact_inverted_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 },
{ 32, 20, 3 }, { 0, 6, height + 29 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -160,7 +160,7 @@ static void compact_inverted_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -324,7 +324,7 @@ static void compact_inverted_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -512,7 +512,7 @@ static void compact_inverted_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -606,7 +606,7 @@ static void compact_inverted_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -913,7 +913,7 @@ static void compact_inverted_rc_track_flat_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -956,7 +956,7 @@ static void compact_inverted_rc_track_flat_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -999,7 +999,7 @@ static void compact_inverted_rc_track_left_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1042,7 +1042,7 @@ static void compact_inverted_rc_track_right_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1278,7 +1278,7 @@ static void compact_inverted_rc_track_left_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1345,7 +1345,7 @@ static void compact_inverted_rc_track_right_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1412,7 +1412,7 @@ static void compact_inverted_rc_track_25_deg_up_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1479,7 +1479,7 @@ static void compact_inverted_rc_track_25_deg_up_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1578,7 +1578,7 @@ static void compact_inverted_rc_track_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4334,7 +4334,7 @@ static void compact_inverted_rc_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 104 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4379,8 +4379,7 @@ static void compact_inverted_rc_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 104 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(
session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4426,7 +4425,7 @@ static void compact_inverted_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -5220,7 +5219,7 @@ static void compact_inverted_rc_track_on_ride_photo(
{ 0, 6, height + 29 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
@@ -8866,7 +8865,7 @@ static void compact_inverted_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 38, session.TrackColours[SCHEME_SUPPORTS]);
@@ -8876,7 +8875,7 @@ static void compact_inverted_rc_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_compact_inverted_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCompactInvertedRc(int32_t trackType)
{
switch (trackType)
{
@@ -60,7 +60,7 @@ static void corkscrew_rc_track_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -82,7 +82,7 @@ static void corkscrew_rc_track_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -121,8 +121,8 @@ static void corkscrew_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -158,7 +158,7 @@ static void corkscrew_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -188,7 +188,7 @@ static void corkscrew_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -236,7 +236,7 @@ static void corkscrew_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -266,7 +266,7 @@ static void corkscrew_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -314,7 +314,7 @@ static void corkscrew_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -344,7 +344,7 @@ static void corkscrew_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -398,7 +398,7 @@ static void corkscrew_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -434,7 +434,7 @@ static void corkscrew_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -488,7 +488,7 @@ static void corkscrew_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -524,7 +524,7 @@ static void corkscrew_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -572,7 +572,7 @@ static void corkscrew_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -602,7 +602,7 @@ static void corkscrew_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -886,7 +886,7 @@ static void corkscrew_rc_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -930,7 +930,7 @@ static void corkscrew_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -974,7 +974,7 @@ static void corkscrew_rc_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1018,7 +1018,7 @@ static void corkscrew_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1252,7 +1252,7 @@ static void corkscrew_rc_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1303,7 +1303,7 @@ static void corkscrew_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1354,7 +1354,7 @@ static void corkscrew_rc_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1405,7 +1405,7 @@ static void corkscrew_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1482,7 +1482,7 @@ static void corkscrew_rc_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2717,7 +2717,7 @@ static void corkscrew_rc_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
/** rct2: 0x008A7D98 */
@@ -3347,7 +3347,7 @@ static void corkscrew_rc_track_left_corkscrew_up(
break;
}
track_paint_util_left_corkscrew_up_supports(session, direction, height);
TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height);
if (direction == 0 || direction == 3)
{
@@ -4824,7 +4824,7 @@ static void corkscrew_rc_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4869,7 +4869,7 @@ static void corkscrew_rc_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4910,7 +4910,7 @@ static void corkscrew_rc_track_brakes(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4964,7 +4964,7 @@ static void corkscrew_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -5001,7 +5001,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5037,7 +5037,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5069,7 +5069,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5101,7 +5101,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5152,7 +5152,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5188,7 +5188,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5220,7 +5220,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5252,7 +5252,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8948,7 +8948,7 @@ static void corkscrew_rc_track_booster(
{ 32, 1, 26 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9426,7 +9426,7 @@ static void corkscrew_rc_track_right_twist_up_to_down(
}
}
TRACK_PAINT_FUNCTION get_track_paint_function_corkscrew_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionCorkscrewRc(int32_t trackType)
{
switch (trackType)
{
@@ -51,7 +51,7 @@ static void flying_rc_track_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -74,7 +74,7 @@ static void flying_rc_track_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -126,7 +126,7 @@ static void flying_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -159,8 +159,8 @@ static void flying_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 },
{ 32, 20, 1 }, { 0, 6, height + 24 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
}
else
{
@@ -186,8 +186,8 @@ static void flying_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
}
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
@@ -254,7 +254,7 @@ static void flying_rc_track_25_deg_up(
break;
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -328,7 +328,7 @@ static void flying_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -393,7 +393,7 @@ static void flying_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -508,7 +508,7 @@ static void flying_rc_track_flat_to_25_deg_up(
break;
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -582,7 +582,7 @@ static void flying_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -653,7 +653,7 @@ static void flying_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -751,7 +751,7 @@ static void flying_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -802,7 +802,7 @@ static void flying_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -896,7 +896,7 @@ static void flying_rc_track_25_deg_up_to_flat(
break;
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -970,7 +970,7 @@ static void flying_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1461,7 +1461,7 @@ static void flying_rc_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1501,7 +1501,7 @@ static void flying_rc_track_flat_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1548,7 +1548,7 @@ static void flying_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1588,7 +1588,7 @@ static void flying_rc_track_flat_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1635,7 +1635,7 @@ static void flying_rc_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1675,7 +1675,7 @@ static void flying_rc_track_left_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1722,7 +1722,7 @@ static void flying_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1762,7 +1762,7 @@ static void flying_rc_track_right_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2187,7 +2187,7 @@ static void flying_rc_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2234,7 +2234,7 @@ static void flying_rc_track_left_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2305,7 +2305,7 @@ static void flying_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2352,7 +2352,7 @@ static void flying_rc_track_right_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2423,7 +2423,7 @@ static void flying_rc_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2470,7 +2470,7 @@ static void flying_rc_track_25_deg_up_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2541,7 +2541,7 @@ static void flying_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2588,7 +2588,7 @@ static void flying_rc_track_25_deg_up_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2685,7 +2685,7 @@ static void flying_rc_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2725,7 +2725,7 @@ static void flying_rc_track_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -6348,7 +6348,7 @@ static void flying_rc_track_left_quarter_turn_1_60_deg_up(
}
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -6434,7 +6434,7 @@ static void flying_rc_track_right_quarter_turn_1_60_deg_up(
break;
}
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -6477,7 +6477,7 @@ static void flying_rc_track_brakes(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -6507,7 +6507,7 @@ static void flying_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -6536,7 +6536,7 @@ static void flying_rc_track_booster(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -7309,7 +7309,7 @@ static void flying_rc_track_25_deg_up_left_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -7354,7 +7354,7 @@ static void flying_rc_track_25_deg_up_left_banked(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -7419,7 +7419,7 @@ static void flying_rc_track_25_deg_up_right_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -7464,7 +7464,7 @@ static void flying_rc_track_25_deg_up_right_banked(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -7553,7 +7553,7 @@ static void flying_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -7607,7 +7607,7 @@ static void flying_rc_track_on_ride_photo(
{ 32, 20, 3 }, { 0, 6, height + 24 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
@@ -15133,7 +15133,7 @@ static void flying_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 39, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16315,7 +16315,7 @@ static void flying_rc_track_25_deg_up_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16360,7 +16360,7 @@ static void flying_rc_track_25_deg_up_to_left_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -16428,7 +16428,7 @@ static void flying_rc_track_25_deg_up_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16473,7 +16473,7 @@ static void flying_rc_track_25_deg_up_to_right_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -16541,7 +16541,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16586,7 +16586,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -16654,7 +16654,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16699,7 +16699,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -16798,7 +16798,7 @@ static void flying_rc_track_left_banked_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16843,7 +16843,7 @@ static void flying_rc_track_left_banked_flat_to_left_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -16908,7 +16908,7 @@ static void flying_rc_track_right_banked_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16953,7 +16953,7 @@ static void flying_rc_track_right_banked_flat_to_right_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -17018,7 +17018,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_left_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -17063,7 +17063,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_left_banked_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -17128,7 +17128,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_right_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -17173,7 +17173,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_right_banked_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -17277,7 +17277,7 @@ static void flying_rc_track_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -17322,7 +17322,7 @@ static void flying_rc_track_flat_to_left_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -17390,7 +17390,7 @@ static void flying_rc_track_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -17435,7 +17435,7 @@ static void flying_rc_track_flat_to_right_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -17503,7 +17503,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -17548,7 +17548,7 @@ static void flying_rc_track_left_banked_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -17616,7 +17616,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -17661,7 +17661,7 @@ static void flying_rc_track_right_banked_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -18693,7 +18693,7 @@ static void flying_rc_track_right_flying_large_half_loop_uninverted_down(
flying_rc_track_right_flying_large_half_loop_inverted_up(session, ride, 6 - trackSequence, direction, height, trackElement);
}
TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionFlyingRc(int32_t trackType)
{
switch (trackType)
{
@@ -19032,5 +19032,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_flying_rc(int32_t trackType)
case TrackElemType::RightFlyerLargeHalfLoopUninvertedDown:
return flying_rc_track_right_flying_large_half_loop_uninverted_down;
}
return get_track_paint_function_bolliger_mabillard<METAL_SUPPORTS_TUBES>(trackType);
return GetTrackPaintFunctionBolligerMabillard<METAL_SUPPORTS_TUBES>(trackType);
}
+66 -66
View File
@@ -61,7 +61,7 @@ static void giga_rc_track_flat(
{ 6, 0, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -91,7 +91,7 @@ static void giga_rc_track_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -113,7 +113,7 @@ static void giga_rc_track_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -151,8 +151,8 @@ static void giga_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -188,7 +188,7 @@ static void giga_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -218,7 +218,7 @@ static void giga_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -248,7 +248,7 @@ static void giga_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -296,7 +296,7 @@ static void giga_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -326,7 +326,7 @@ static void giga_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -374,7 +374,7 @@ static void giga_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -404,7 +404,7 @@ static void giga_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -434,7 +434,7 @@ static void giga_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -488,7 +488,7 @@ static void giga_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -524,7 +524,7 @@ static void giga_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -578,7 +578,7 @@ static void giga_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -614,7 +614,7 @@ static void giga_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -662,7 +662,7 @@ static void giga_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -692,7 +692,7 @@ static void giga_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -722,7 +722,7 @@ static void giga_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1006,7 +1006,7 @@ static void giga_rc_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1050,7 +1050,7 @@ static void giga_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1094,7 +1094,7 @@ static void giga_rc_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1138,7 +1138,7 @@ static void giga_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1372,7 +1372,7 @@ static void giga_rc_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1423,7 +1423,7 @@ static void giga_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1474,7 +1474,7 @@ static void giga_rc_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1525,7 +1525,7 @@ static void giga_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1602,7 +1602,7 @@ static void giga_rc_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4015,7 +4015,7 @@ static void giga_rc_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4060,7 +4060,7 @@ static void giga_rc_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4107,7 +4107,7 @@ static void giga_rc_track_brakes(
{ 0, 0, height }, { 32, 1, 11 }, { 0, 27, height + 5 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4145,7 +4145,7 @@ static void giga_rc_track_25_deg_up_left_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4190,7 +4190,7 @@ static void giga_rc_track_25_deg_up_right_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4251,7 +4251,7 @@ static void giga_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -4306,7 +4306,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4337,7 +4337,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4377,7 +4377,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4408,7 +4408,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4444,7 +4444,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4475,7 +4475,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 7, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4511,7 +4511,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4542,7 +4542,7 @@ static void giga_rc_track_flat_to_60_deg_up_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4595,7 +4595,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4631,7 +4631,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4663,7 +4663,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4695,7 +4695,7 @@ static void giga_rc_track_60_deg_up_to_flat_long_base(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4762,7 +4762,7 @@ static void giga_rc_track_cable_lift_hill(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4802,7 +4802,7 @@ static void giga_rc_track_cable_lift_hill(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4848,7 +4848,7 @@ static void giga_rc_track_cable_lift_hill(
{ 32, 1, 66 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4888,7 +4888,7 @@ static void giga_rc_track_cable_lift_hill(
{ 32, 1, 98 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8108,7 +8108,7 @@ static void giga_rc_track_block_brakes(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_GigaCoasterBrakeImages[direction][isClosed][1]),
{ 0, 0, height }, { 32, 1, 11 }, { 0, 27, height + 5 });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8718,7 +8718,7 @@ static void giga_rc_track_25_deg_up_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8766,7 +8766,7 @@ static void giga_rc_track_25_deg_up_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8814,7 +8814,7 @@ static void giga_rc_track_left_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8862,7 +8862,7 @@ static void giga_rc_track_right_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8939,7 +8939,7 @@ static void giga_rc_track_left_banked_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8984,7 +8984,7 @@ static void giga_rc_track_right_banked_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9029,7 +9029,7 @@ static void giga_rc_track_left_banked_25_deg_up_to_left_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9074,7 +9074,7 @@ static void giga_rc_track_right_banked_25_deg_up_to_right_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9158,7 +9158,7 @@ static void giga_rc_track_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9206,7 +9206,7 @@ static void giga_rc_track_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9254,7 +9254,7 @@ static void giga_rc_track_left_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9302,7 +9302,7 @@ static void giga_rc_track_right_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9376,7 +9376,7 @@ static void giga_rc_track_booster(
{ nw_se_offsetX, nw_se_offsetY, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9386,7 +9386,7 @@ static void giga_rc_track_booster(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_giga_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionGigaRc(int32_t trackType)
{
switch (trackType)
{
@@ -113,8 +113,8 @@ static void heartline_twister_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -1750,7 +1750,7 @@ static void heartline_twister_rc_track_right_heartline_roll(
}
}
TRACK_PAINT_FUNCTION get_track_paint_function_heartline_twister_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionHeartlineTwisterRc(int32_t trackType)
{
switch (trackType)
{
+4 -5
View File
@@ -82,7 +82,7 @@ namespace HybridRC
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 10, trackElement);
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 10, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
@@ -6252,7 +6252,7 @@ namespace HybridRC
WoodenASupportsPaintSetup(session, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -6300,8 +6300,7 @@ namespace HybridRC
WoodenASupportsPaintSetup(session, 3, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(
session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -10806,7 +10805,7 @@ namespace HybridRC
PaintAddImageAsParentRotated(
session, direction, GetTrackColour(session).WithIndex(SPR_G2_HYBRID_TRACK_FLAT + (direction & 1)), { 0, 0, height },
{ 32, 20, 0 }, { 0, 6, height + 3 });
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
@@ -70,7 +70,7 @@ static void inverted_hairpin_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 30, session.TrackColours[SCHEME_SUPPORTS]);
@@ -101,8 +101,8 @@ static void inverted_hairpin_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 },
{ 32, 20, 1 }, { 0, 6, height + 24 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -168,7 +168,7 @@ static void inverted_hairpin_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -332,7 +332,7 @@ static void inverted_hairpin_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -520,7 +520,7 @@ static void inverted_hairpin_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -614,7 +614,7 @@ static void inverted_hairpin_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1316,7 +1316,7 @@ static void inverted_hairpin_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 30, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1349,7 +1349,7 @@ static void inverted_hairpin_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 30, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1359,7 +1359,7 @@ static void inverted_hairpin_rc_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_hairpin_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedHairpinRc(int32_t trackType)
{
switch (trackType)
{
@@ -41,7 +41,7 @@ static void inverted_impulse_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
@@ -72,8 +72,8 @@ static void inverted_impulse_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 },
{ 32, 20, 3 }, { 0, 6, height + 29 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -110,7 +110,7 @@ static void inverted_impulse_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -757,7 +757,7 @@ static void inverted_impulse_rc_track_right_quarter_turn_1_90_deg_down(
session, ride, trackSequence, (direction - 1) & 3, height, trackElement);
}
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_impulse_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedImpulseRc(int32_t trackType)
{
switch (trackType)
{
@@ -62,7 +62,7 @@ static void inverted_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -92,8 +92,8 @@ static void inverted_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 },
{ 32, 20, 3 }, { 0, 6, height + 29 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -159,7 +159,7 @@ static void inverted_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -294,7 +294,7 @@ static void inverted_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -412,7 +412,7 @@ static void inverted_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -506,7 +506,7 @@ static void inverted_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -811,7 +811,7 @@ static void inverted_rc_track_flat_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -853,7 +853,7 @@ static void inverted_rc_track_flat_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -895,7 +895,7 @@ static void inverted_rc_track_left_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -937,7 +937,7 @@ static void inverted_rc_track_right_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1169,7 +1169,7 @@ static void inverted_rc_track_left_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1236,7 +1236,7 @@ static void inverted_rc_track_right_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1303,7 +1303,7 @@ static void inverted_rc_track_25_deg_up_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1370,7 +1370,7 @@ static void inverted_rc_track_25_deg_up_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1469,7 +1469,7 @@ static void inverted_rc_track_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction), 0xFFFF,
0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4192,7 +4192,7 @@ static void inverted_rc_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4237,8 +4237,7 @@ static void inverted_rc_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(
session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_INVERTED_4, +56, TUNNEL_INVERTED_5);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4282,7 +4281,7 @@ static void inverted_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5046,7 +5045,7 @@ static void inverted_rc_track_25_deg_up_left_banked(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -5111,7 +5110,7 @@ static void inverted_rc_track_25_deg_up_right_banked(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -5189,7 +5188,7 @@ static void inverted_rc_track_on_ride_photo(
{ 0, 6, height + 29 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_INVERTED_3);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
@@ -9018,7 +9017,7 @@ static void inverted_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9646,7 +9645,7 @@ static void inverted_rc_track_25_deg_up_to_left_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -9711,7 +9710,7 @@ static void inverted_rc_track_25_deg_up_to_right_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -9776,7 +9775,7 @@ static void inverted_rc_track_left_banked_25_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -9841,7 +9840,7 @@ static void inverted_rc_track_right_banked_25_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -9942,7 +9941,7 @@ static void inverted_rc_track_left_banked_flat_to_left_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10007,7 +10006,7 @@ static void inverted_rc_track_right_banked_flat_to_right_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10072,7 +10071,7 @@ static void inverted_rc_track_left_banked_25_deg_up_to_left_banked_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10137,7 +10136,7 @@ static void inverted_rc_track_right_banked_25_deg_up_to_right_banked_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10238,7 +10237,7 @@ static void inverted_rc_track_flat_to_left_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10303,7 +10302,7 @@ static void inverted_rc_track_flat_to_right_banked_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10368,7 +10367,7 @@ static void inverted_rc_track_left_banked_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10433,7 +10432,7 @@ static void inverted_rc_track_right_banked_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -10512,7 +10511,7 @@ static void inverted_rc_track_booster(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10521,7 +10520,7 @@ static void inverted_rc_track_booster(
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_inverted_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionInvertedRc(int32_t trackType)
{
switch (trackType)
{
@@ -1820,7 +1820,7 @@ void JuniorRcPaintTrackFlat(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 });
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 0, height,
@@ -1884,7 +1884,7 @@ void JuniorRcPaintStation(
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
}
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -1902,7 +1902,7 @@ void JuniorRcPaintTrack25DegUp(
uint8_t tunnelType[4] = { TUNNEL_1, TUNNEL_2, TUNNEL_2, TUNNEL_1 };
PaintUtilPushTunnelRotated(session, direction, height + tunnelHeights[direction], tunnelType[direction]);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, supportType, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1930,7 +1930,7 @@ void JuniorRcPaintTrackFlatTo25DegUp(
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_2);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
uint16_t ax = (direction == 0) ? 5 : 3;
@@ -1972,7 +1972,7 @@ void JuniorRcPaintTrack25DegUpToFlat(
PaintUtilPushTunnelLeft(session, tunnelHeight, tunnelType);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, supportType, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1994,7 +1994,7 @@ static void junior_rc_right_quarter_turn_5_tiles_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_right_quarter_turn_5_tiles_paint(
TrackPaintUtilRightQuarterTurn5TilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_flat_quarter_turn_5_tiles, defaultRightQuarterTurn5TilesOffsets,
defaultRightQuarterTurn5TilesBoundLengths, defaultRightQuarterTurn5TilesBoundOffsets);
@@ -2115,7 +2115,7 @@ static void junior_rc_flat_to_left_bank_paint_setup(
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2163,7 +2163,7 @@ static void junior_rc_flat_to_right_bank_paint_setup(
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2260,7 +2260,7 @@ static void junior_rc_banked_right_quarter_turn_5_tiles_paint_setup(
{
thickness = 26;
}
track_paint_util_right_quarter_turn_5_tiles_paint(
TrackPaintUtilRightQuarterTurn5TilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_banked_quarter_turn_5_tiles, nullptr, junior_rc_banked_right_quarter_turn_5_tiles_bound_lengths,
junior_rc_banked_right_quarter_turn_5_tiles_bound_offsets);
@@ -2385,7 +2385,7 @@ static void junior_rc_left_bank_to_25_deg_up_paint_setup(
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2445,7 +2445,7 @@ static void junior_rc_right_bank_to_25_deg_up_paint_setup(
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2522,7 +2522,7 @@ static void junior_rc_25_deg_up_to_left_bank_paint_setup(
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2583,7 +2583,7 @@ static void junior_rc_25_deg_up_to_right_bank_paint_setup(
}
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2671,7 +2671,7 @@ static void junior_rc_left_bank_paint_setup(
PaintUtilPushTunnelLeft(session, height, 0);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2696,7 +2696,7 @@ void JuniorRcPaintTrackLeftQuarterTurn5Tiles25DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_right_quarter_turn_5_tiles_paint(
TrackPaintUtilRightQuarterTurn5TilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_left_quarter_turn_5_tiles_25_deg_up[EnumValue(chainType)],
junior_rc_left_quarter_turn_5_tiles_25_deg_up_offsets, defaultRightQuarterTurn5TilesBoundLengths, nullptr);
@@ -2774,7 +2774,7 @@ void JuniorRcPaintTrackRightQuarterTurn5Tiles25DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_right_quarter_turn_5_tiles_paint(
TrackPaintUtilRightQuarterTurn5TilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_right_quarter_turn_5_tiles_25_deg_up[EnumValue(chainType)], defaultRightQuarterTurn5TilesOffsets,
defaultRightQuarterTurn5TilesBoundLengths, nullptr);
@@ -3093,11 +3093,11 @@ static void junior_rc_right_quarter_turn_3_tiles_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_right_quarter_turn_3_tiles_paint(
TrackPaintUtilRightQuarterTurn3TilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_flat_quarter_turn_3_tiles, defaultRightQuarterTurn3TilesOffsets,
defaultRightQuarterTurn3TilesBoundLengths, nullptr);
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
static constexpr uint8_t supportType[2][4] = {
{ 1, 0, 0, 2 },
@@ -3197,11 +3197,11 @@ static void junior_rc_right_quarter_turn_3_tiles_bank_paint_setup(
{ 1, 1, 1, 1 },
};
track_paint_util_right_quarter_turn_3_tiles_paint(
TrackPaintUtilRightQuarterTurn3TilesPaint(
session, thickness[direction][trackSequence], height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_banked_quarter_turn_3_tiles, nullptr, junior_rc_right_quarter_turn_3_tiles_bank_bound_lengths,
junior_rc_right_quarter_turn_3_tiles_bank_offsets);
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
if (direction == 1 && trackSequence == 3)
{
@@ -3479,7 +3479,7 @@ static void junior_rc_right_half_banked_helix_up_small_paint_setup(
direction++;
direction &= 3;
}
track_paint_util_right_helix_up_small_quarter_tiles_paint(
TrackPaintUtilRightHelixUpSmallQuarterTilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_right_half_banked_helix_up_small_quarter_tiles, nullptr,
defaultRightHelixUpSmallQuarterBoundLengths, defaultRightHelixUpSmallQuarterBoundOffsets);
@@ -3547,7 +3547,7 @@ static void junior_rc_right_half_banked_helix_down_small_paint_setup(
direction++;
direction &= 3;
}
track_paint_util_right_helix_up_small_quarter_tiles_paint(
TrackPaintUtilRightHelixUpSmallQuarterTilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_right_half_banked_helix_down_small_quarter_tiles, nullptr,
defaultRightHelixUpSmallQuarterBoundLengths, defaultRightHelixUpSmallQuarterBoundOffsets);
@@ -3647,7 +3647,7 @@ static void junior_rc_right_half_banked_helix_up_large_paint_setup(
direction++;
direction &= 3;
}
track_paint_util_right_helix_up_large_quarter_tiles_paint(
TrackPaintUtilRightHelixUpLargeQuarterTilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_right_half_banked_helix_up_large_quarter_tiles, nullptr,
defaultRightHelixUpLargeQuarterBoundLengths, defaultRightHelixUpLargeQuarterBoundOffsets);
@@ -3731,7 +3731,7 @@ static void junior_rc_right_half_banked_helix_down_large_paint_setup(
direction++;
direction &= 3;
}
track_paint_util_right_helix_up_large_quarter_tiles_paint(
TrackPaintUtilRightHelixUpLargeQuarterTilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_right_half_banked_helix_down_large_quarter_tiles, nullptr,
defaultRightHelixUpLargeQuarterBoundLengths, defaultRightHelixUpLargeQuarterBoundOffsets);
@@ -3857,7 +3857,7 @@ static void junior_rc_brake_paint_setup(
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -3893,7 +3893,7 @@ static void junior_rc_block_brake_paint_setup(
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
int32_t edi = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, edi, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -3909,7 +3909,7 @@ static void junior_rc_left_eighth_to_diag_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_eighth_to_diag_tiles_paint(
TrackPaintUtilEighthToDiagTilesPaint(
session, defaultEighthToDiagThickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_left_eight_to_diag, nullptr, defaultLeftEighthToDiagBoundLengths,
defaultLeftEighthToDiagBoundOffsets);
@@ -3971,7 +3971,7 @@ static void junior_rc_right_eighth_to_diag_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_eighth_to_diag_tiles_paint(
TrackPaintUtilEighthToDiagTilesPaint(
session, defaultEighthToDiagThickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_right_eight_to_diag, nullptr, defaultRightEighthToDiagBoundLengths,
defaultRightEighthToDiagBoundOffsets);
@@ -4134,7 +4134,7 @@ static void junior_rc_left_eighth_to_diag_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_eighth_to_diag_tiles_paint(
TrackPaintUtilEighthToDiagTilesPaint(
session, junior_rc_left_eighth_to_diag_bank_thickness, height, direction, trackSequence,
session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_left_eight_to_diag_bank, nullptr,
junior_rc_left_eighth_to_diag_bank_bound_lengths, junior_rc_left_eighth_to_diag_bank_bound_offsets);
@@ -4277,7 +4277,7 @@ static void junior_rc_right_eighth_to_diag_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_eighth_to_diag_tiles_paint(
TrackPaintUtilEighthToDiagTilesPaint(
session, junior_rc_right_eighth_to_diag_bank_thickness, height, direction, trackSequence,
session.TrackColours[SCHEME_TRACK], junior_rc_track_pieces_right_eight_to_diag_bank, nullptr,
junior_rc_right_eighth_to_diag_bank_bound_lengths, junior_rc_right_eighth_to_diag_bank_bound_offsets);
@@ -4372,7 +4372,7 @@ void JuniorRcPaintTrackDiagFlat(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4392,7 +4392,7 @@ void JuniorRcPaintTrackDiag25DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4412,7 +4412,7 @@ void JuniorRcPaintTrackDiagFlatTo25DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat_to_25_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4436,7 +4436,7 @@ void JuniorRcPaintTrackDiagFlatTo60DegUp(
// There is no specific chain for the Water Coaster, use the Junior RC chain instead
chainType = std::min(JuniorRcChainType::FrictionWheels, chainType);
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat_to_60_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4457,7 +4457,7 @@ void JuniorRcPaintTrackDiag25DegUpToFlat(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_up_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4481,7 +4481,7 @@ void JuniorRcPaintTrackDiag60DegUpToFlat(
// There is no specific chain for the Water Coaster, use the Junior RC chain instead
chainType = std::min(JuniorRcChainType::FrictionWheels, chainType);
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_60_deg_up_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4502,7 +4502,7 @@ void JuniorRcPaintTrackDiag25DegDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4523,7 +4523,7 @@ void JuniorRcPaintTrackDiagFlatTo25DegDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat_to_25_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4547,7 +4547,7 @@ void JuniorRcPaintTrackDiagFlatTo60DegDown(
// There is no specific chain for the Water Coaster, use the Junior RC chain instead
chainType = std::min(JuniorRcChainType::FrictionWheels, chainType);
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat_to_60_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4568,7 +4568,7 @@ void JuniorRcPaintTrackDiag25DegDownToFlat(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_down_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4592,7 +4592,7 @@ void JuniorRcPaintTrackDiag60DegDownToFlat(
// There is no specific chain for the Water Coaster, use the Junior RC chain instead
chainType = std::min(JuniorRcChainType::FrictionWheels, chainType);
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_60_deg_down_to_flat[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -4731,7 +4731,7 @@ static void junior_rc_diag_flat_to_left_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat_to_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4758,7 +4758,7 @@ static void junior_rc_diag_flat_to_right_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_flat_to_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4785,7 +4785,7 @@ static void junior_rc_diag_left_bank_to_flat_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_left_bank_to_flat, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4812,7 +4812,7 @@ static void junior_rc_diag_right_bank_to_flat_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_right_bank_to_flat, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4839,7 +4839,7 @@ static void junior_rc_diag_left_bank_to_25_deg_up_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_left_bank_to_25_deg_up, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4866,7 +4866,7 @@ static void junior_rc_diag_right_bank_to_25_deg_up_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_right_bank_to_25_deg_up, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4893,7 +4893,7 @@ static void junior_rc_diag_25_deg_up_to_left_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_up_to_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4920,7 +4920,7 @@ static void junior_rc_diag_25_deg_up_to_right_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_up_to_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4947,7 +4947,7 @@ static void junior_rc_diag_left_bank_to_25_deg_down_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_left_bank_to_25_deg_down, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -4974,7 +4974,7 @@ static void junior_rc_diag_right_bank_to_25_deg_down_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_right_bank_to_25_deg_down, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -5001,7 +5001,7 @@ static void junior_rc_diag_25_deg_down_to_left_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_down_to_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -5028,7 +5028,7 @@ static void junior_rc_diag_25_deg_down_to_right_bank_paint_setup(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_down_to_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -5070,7 +5070,7 @@ static void junior_rc_diag_left_bank_paint_setup(
const TrackElement& trackElement)
{
uint8_t thickness = direction == 0 ? 0 : 1;
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_left_bank, defaultDiagTileOffsets, defaultDiagBoundLengths,
junior_rc_diag_left_bank_bound_offsets);
@@ -5093,7 +5093,7 @@ static void junior_rc_diag_right_bank_paint_setup(
const TrackElement& trackElement)
{
uint8_t thickness = direction == 2 ? 0 : 1;
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, thickness, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_right_bank, defaultDiagTileOffsets, defaultDiagBoundLengths,
junior_rc_diag_right_bank_bound_offsets);
@@ -5167,7 +5167,7 @@ void JuniorRcPaintTrack60DegUp(
}
static constexpr int8_t support[4] = { 35, 29, 25, 32 };
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height,
@@ -5259,7 +5259,7 @@ void JuniorRcPaintTrack25DegUpTo60DegUp(
}
static constexpr int8_t support[4] = { 12, 12, 12, 14 };
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height,
@@ -5329,7 +5329,7 @@ void JuniorRcPaintTrack60DegUpTo25DegUp(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 20, height,
@@ -5362,7 +5362,7 @@ void JuniorRcPaintTrackDiag60DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_60_deg_up[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths, nullptr);
@@ -5382,7 +5382,7 @@ void JuniorRcPaintTrackDiag60DegDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_60_deg_down[EnumValue(chainType)], defaultDiagTileOffsets, defaultDiagBoundLengths,
nullptr);
@@ -5403,7 +5403,7 @@ void JuniorRcPaintTrackDiag25DegUpTo60DegUp(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_up_to_60_deg_up[EnumValue(chainType)], defaultDiagTileOffsets,
defaultDiagBoundLengths, nullptr);
@@ -5434,7 +5434,7 @@ void JuniorRcPaintTrackDiag60DegUpTo25DegUp(
}
else
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_60_deg_up_to_25_deg_up[EnumValue(chainType)], defaultDiagTileOffsets,
defaultDiagBoundLengths, nullptr);
@@ -5466,7 +5466,7 @@ void JuniorRcPaintTrackDiag25DegDownTo60DegDown(
}
else
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_25_deg_down_to_60_deg_down[EnumValue(chainType)], defaultDiagTileOffsets,
defaultDiagBoundLengths, nullptr);
@@ -5488,7 +5488,7 @@ void JuniorRcPaintTrackDiag60DegDownTo25DegDown(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
const TrackElement& trackElement, JuniorRcChainType chainType)
{
track_paint_util_diag_tiles_paint(
TrackPaintUtilDiagTilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
junior_rc_track_pieces_diag_60_deg_down_to_25_deg_down[EnumValue(chainType)], defaultDiagTileOffsets,
defaultDiagBoundLengths, nullptr);
@@ -5643,7 +5643,7 @@ static void junior_rc_flat_to_60_deg_up_paint_setup(
}
static constexpr int8_t support[4] = { 12, 12, 12, 14 };
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, support[direction], height - 7,
@@ -5704,7 +5704,7 @@ static void junior_rc_60_deg_up_to_flat_paint_setup(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK, 4, 20, height - 5,
@@ -5820,7 +5820,7 @@ static void junior_rc_booster_paint_setup(
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
uint8_t supportType = (direction & 1) ? METAL_SUPPORTS_FORK_ALT : METAL_SUPPORTS_FORK;
MetalASupportsPaintSetup(session, supportType, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -5881,14 +5881,14 @@ static void junior_rc_track_on_ride_photo(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 6, height }, { 32, 20, 1 }, { 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3 + photoCameraOffset, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3 + photoCameraOffset, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48 + photoCameraOffset, 0x20);
}
/* 0x008AAA0C */
TRACK_PAINT_FUNCTION get_track_paint_function_junior_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionJuniorRc(int32_t trackType)
{
switch (trackType)
{
@@ -50,7 +50,7 @@ static void lay_down_rc_track_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -73,7 +73,7 @@ static void lay_down_rc_track_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -125,7 +125,7 @@ static void lay_down_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -159,8 +159,8 @@ static void lay_down_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 },
{ 32, 20, 1 }, { 0, 6, height + 24 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
}
else
@@ -187,8 +187,8 @@ static void lay_down_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
}
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
@@ -227,7 +227,7 @@ static void lay_down_rc_track_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -258,7 +258,7 @@ static void lay_down_rc_track_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -333,7 +333,7 @@ static void lay_down_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -400,7 +400,7 @@ static void lay_down_rc_track_60_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -431,7 +431,7 @@ static void lay_down_rc_track_60_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -520,7 +520,7 @@ static void lay_down_rc_track_flat_to_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -551,7 +551,7 @@ static void lay_down_rc_track_flat_to_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -626,7 +626,7 @@ static void lay_down_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -699,7 +699,7 @@ static void lay_down_rc_track_25_deg_up_to_60_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -736,7 +736,7 @@ static void lay_down_rc_track_25_deg_up_to_60_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -837,7 +837,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -874,7 +874,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -926,7 +926,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -993,7 +993,7 @@ static void lay_down_rc_track_25_deg_up_to_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1024,7 +1024,7 @@ static void lay_down_rc_track_25_deg_up_to_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1099,7 +1099,7 @@ static void lay_down_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1590,7 +1590,7 @@ static void lay_down_rc_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1630,7 +1630,7 @@ static void lay_down_rc_track_flat_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1677,7 +1677,7 @@ static void lay_down_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1717,7 +1717,7 @@ static void lay_down_rc_track_flat_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1764,7 +1764,7 @@ static void lay_down_rc_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1804,7 +1804,7 @@ static void lay_down_rc_track_left_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1851,7 +1851,7 @@ static void lay_down_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1891,7 +1891,7 @@ static void lay_down_rc_track_right_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2316,7 +2316,7 @@ static void lay_down_rc_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2363,7 +2363,7 @@ static void lay_down_rc_track_left_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2434,7 +2434,7 @@ static void lay_down_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2481,7 +2481,7 @@ static void lay_down_rc_track_right_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2552,7 +2552,7 @@ static void lay_down_rc_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2599,7 +2599,7 @@ static void lay_down_rc_track_25_deg_up_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2670,7 +2670,7 @@ static void lay_down_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2717,7 +2717,7 @@ static void lay_down_rc_track_25_deg_up_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2814,7 +2814,7 @@ static void lay_down_rc_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2854,7 +2854,7 @@ static void lay_down_rc_track_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -4824,7 +4824,7 @@ static void lay_down_rc_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
/** rct2: 0x00824BBC */
@@ -7032,7 +7032,7 @@ static void lay_down_rc_track_left_quarter_turn_1_60_deg_up(
break;
}
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -7119,7 +7119,7 @@ static void lay_down_rc_track_right_quarter_turn_1_60_deg_up(
}
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -7162,7 +7162,7 @@ static void lay_down_rc_track_brakes(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -7192,7 +7192,7 @@ static void lay_down_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -7257,7 +7257,7 @@ static void lay_down_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -7311,7 +7311,7 @@ static void lay_down_rc_track_on_ride_photo(
{ 32, 20, 3 }, { 0, 6, height + 24 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
@@ -15182,7 +15182,7 @@ static void lay_down_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 33, session.TrackColours[SCHEME_SUPPORTS]);
@@ -16078,7 +16078,7 @@ static void lay_down_rc_track_half_loop_uninverted_down(
lay_down_rc_track_half_loop_inverted_up(session, ride, 3 - trackSequence, direction, height, trackElement);
}
TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionLayDownRc(int32_t trackType)
{
switch (trackType)
{
@@ -16315,5 +16315,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lay_down_rc(int32_t trackType)
case TrackElemType::FlyerHalfLoopUninvertedDown:
return lay_down_rc_track_half_loop_uninverted_down;
}
return get_track_paint_function_corkscrew_rc(trackType);
return GetTrackPaintFunctionCorkscrewRc(trackType);
}
@@ -58,8 +58,8 @@ static void lim_launched_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -584,7 +584,7 @@ static void lim_launched_rc_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
/** rct2: 0x008A6D10 */
@@ -1211,7 +1211,7 @@ static void lim_launched_rc_track_left_corkscrew_up(
break;
}
track_paint_util_left_corkscrew_up_supports(session, direction, height);
TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height);
if (direction == 0 || direction == 3)
{
@@ -1438,7 +1438,7 @@ static void lim_launched_rc_track_brakes(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1753,7 +1753,7 @@ static void lim_launched_rc_track_block_brakes(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_LimLauncherBlockBrakeImages[direction][isClosed]),
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2442,7 +2442,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2482,7 +2482,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2518,7 +2518,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 10, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2554,7 +2554,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 19, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2607,7 +2607,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 24, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2647,7 +2647,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2683,7 +2683,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2719,7 +2719,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5684,7 +5684,7 @@ static void lim_launched_rc_track_booster(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5694,7 +5694,7 @@ static void lim_launched_rc_track_booster(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionLimLaunchedRc(int32_t trackType)
{
switch (trackType)
{
@@ -5828,7 +5828,7 @@ TRACK_PAINT_FUNCTION get_track_paint_function_lim_launched_rc(int32_t trackType)
case TrackElemType::FlatToRightBankedDown25:
case TrackElemType::LeftBankedDown25ToFlat:
case TrackElemType::RightBankedDown25ToFlat:
return get_track_paint_function_looping_rc(trackType);
return GetTrackPaintFunctionLoopingRc(trackType);
case TrackElemType::EndStation:
case TrackElemType::BeginStation:
case TrackElemType::MiddleStation:
@@ -54,7 +54,7 @@ static void looping_rc_track_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -76,7 +76,7 @@ static void looping_rc_track_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -111,8 +111,8 @@ static void looping_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -148,7 +148,7 @@ static void looping_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -178,7 +178,7 @@ static void looping_rc_track_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -226,7 +226,7 @@ static void looping_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -256,7 +256,7 @@ static void looping_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -304,7 +304,7 @@ static void looping_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -334,7 +334,7 @@ static void looping_rc_track_flat_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -388,7 +388,7 @@ static void looping_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -424,7 +424,7 @@ static void looping_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -478,7 +478,7 @@ static void looping_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -514,7 +514,7 @@ static void looping_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -562,7 +562,7 @@ static void looping_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -592,7 +592,7 @@ static void looping_rc_track_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -876,7 +876,7 @@ static void looping_rc_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -920,7 +920,7 @@ static void looping_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -964,7 +964,7 @@ static void looping_rc_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1008,7 +1008,7 @@ static void looping_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1242,7 +1242,7 @@ static void looping_rc_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1293,7 +1293,7 @@ static void looping_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1344,7 +1344,7 @@ static void looping_rc_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1395,7 +1395,7 @@ static void looping_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1472,7 +1472,7 @@ static void looping_rc_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2737,7 +2737,7 @@ static void looping_rc_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
/** rct2: 0x008A6630 */
@@ -4455,7 +4455,7 @@ static void looping_rc_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4500,7 +4500,7 @@ static void looping_rc_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -4547,7 +4547,7 @@ static void looping_rc_track_brakes(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4585,7 +4585,7 @@ static void looping_rc_track_25_deg_up_left_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4630,7 +4630,7 @@ static void looping_rc_track_25_deg_up_right_banked(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4695,7 +4695,7 @@ static void looping_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -8351,7 +8351,7 @@ static void looping_rc_track_block_brakes(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8963,7 +8963,7 @@ static void looping_rc_track_25_deg_up_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9011,7 +9011,7 @@ static void looping_rc_track_25_deg_up_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9059,7 +9059,7 @@ static void looping_rc_track_left_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9107,7 +9107,7 @@ static void looping_rc_track_right_banked_25_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9188,7 +9188,7 @@ static void looping_rc_track_left_banked_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9233,7 +9233,7 @@ static void looping_rc_track_right_banked_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9278,7 +9278,7 @@ static void looping_rc_track_left_banked_25_deg_up_to_left_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9323,7 +9323,7 @@ static void looping_rc_track_right_banked_25_deg_up_to_right_banked_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9407,7 +9407,7 @@ static void looping_rc_track_flat_to_left_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9455,7 +9455,7 @@ static void looping_rc_track_flat_to_right_banked_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9503,7 +9503,7 @@ static void looping_rc_track_left_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9551,7 +9551,7 @@ static void looping_rc_track_right_banked_25_deg_up_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9619,7 +9619,7 @@ static void looping_rc_track_booster(
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -9629,7 +9629,7 @@ static void looping_rc_track_booster(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionLoopingRc(int32_t trackType)
{
switch (trackType)
{
@@ -9907,5 +9907,5 @@ TRACK_PAINT_FUNCTION get_track_paint_function_looping_rc(int32_t trackType)
case TrackElemType::Booster:
return looping_rc_track_booster;
}
return get_track_paint_function_lim_launched_rc(trackType);
return GetTrackPaintFunctionLimLaunchedRc(trackType);
}
+54 -54
View File
@@ -30,7 +30,7 @@ static void mine_ride_track_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19338), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -40,7 +40,7 @@ static void mine_ride_track_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19339), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -69,8 +69,8 @@ static void mine_ride_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -87,7 +87,7 @@ static void mine_ride_track_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19388), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -96,7 +96,7 @@ static void mine_ride_track_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19389), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -106,7 +106,7 @@ static void mine_ride_track_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19390), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -115,7 +115,7 @@ static void mine_ride_track_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19391), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 14, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -146,7 +146,7 @@ static void mine_ride_track_flat_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19380), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -155,7 +155,7 @@ static void mine_ride_track_flat_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19381), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -164,7 +164,7 @@ static void mine_ride_track_flat_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19382), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -173,7 +173,7 @@ static void mine_ride_track_flat_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19383), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -203,7 +203,7 @@ static void mine_ride_track_25_deg_up_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19384), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -212,7 +212,7 @@ static void mine_ride_track_25_deg_up_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19385), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -222,7 +222,7 @@ static void mine_ride_track_25_deg_up_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19386), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -231,7 +231,7 @@ static void mine_ride_track_25_deg_up_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19387), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -483,7 +483,7 @@ static void mine_ride_track_flat_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19348), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -495,7 +495,7 @@ static void mine_ride_track_flat_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19349), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -504,7 +504,7 @@ static void mine_ride_track_flat_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19342), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -513,7 +513,7 @@ static void mine_ride_track_flat_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19343), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -536,7 +536,7 @@ static void mine_ride_track_flat_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19344), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -545,7 +545,7 @@ static void mine_ride_track_flat_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19345), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -557,7 +557,7 @@ static void mine_ride_track_flat_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19350), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -569,7 +569,7 @@ static void mine_ride_track_flat_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19351), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -595,7 +595,7 @@ static void mine_ride_track_left_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19350), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -607,7 +607,7 @@ static void mine_ride_track_left_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19351), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -616,7 +616,7 @@ static void mine_ride_track_left_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19344), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -625,7 +625,7 @@ static void mine_ride_track_left_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19345), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -648,7 +648,7 @@ static void mine_ride_track_right_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19342), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -657,7 +657,7 @@ static void mine_ride_track_right_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19343), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -669,7 +669,7 @@ static void mine_ride_track_right_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19348), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -681,7 +681,7 @@ static void mine_ride_track_right_bank_to_flat(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19349), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -907,7 +907,7 @@ static void mine_ride_track_left_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19356), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -919,7 +919,7 @@ static void mine_ride_track_left_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19357), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -928,7 +928,7 @@ static void mine_ride_track_left_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19354), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -937,7 +937,7 @@ static void mine_ride_track_left_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19355), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -967,7 +967,7 @@ static void mine_ride_track_right_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19358), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -976,7 +976,7 @@ static void mine_ride_track_right_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19359), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -988,7 +988,7 @@ static void mine_ride_track_right_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19362), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1000,7 +1000,7 @@ static void mine_ride_track_right_bank_to_25_deg_up(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19363), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1033,7 +1033,7 @@ static void mine_ride_track_25_deg_up_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19368), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1045,7 +1045,7 @@ static void mine_ride_track_25_deg_up_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19369), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1055,7 +1055,7 @@ static void mine_ride_track_25_deg_up_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19366), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1064,7 +1064,7 @@ static void mine_ride_track_25_deg_up_to_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19367), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1095,7 +1095,7 @@ static void mine_ride_track_25_deg_up_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19370), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1104,7 +1104,7 @@ static void mine_ride_track_25_deg_up_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19371), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1117,7 +1117,7 @@ static void mine_ride_track_25_deg_up_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19374), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1129,7 +1129,7 @@ static void mine_ride_track_25_deg_up_to_right_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19375), { 0, 0, height }, { 32, 1, 34 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_FORK_ALT, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1192,7 +1192,7 @@ static void mine_ride_track_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19376), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1201,7 +1201,7 @@ static void mine_ride_track_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19377), { 0, 0, height }, { 32, 1, 26 },
{ 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1210,7 +1210,7 @@ static void mine_ride_track_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19378), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1219,7 +1219,7 @@ static void mine_ride_track_left_bank(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(19379), { 0, 0, height }, { 32, 20, 3 },
{ 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_FORK_ALT, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3189,7 +3189,7 @@ static void mine_ride_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -5423,7 +5423,7 @@ static void mine_ride_track_diag_right_bank(
}
}
TRACK_PAINT_FUNCTION get_track_paint_function_mine_ride(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineRide(int32_t trackType)
{
switch (trackType)
{
@@ -118,8 +118,8 @@ static void mine_train_rc_track_station(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height },
{ 32, 20, 1 }, { 0, 0, height });
}
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -4176,7 +4176,7 @@ static void mine_train_rc_track_on_ride_photo(
WoodenASupportsPaintSetup(session, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 2, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 2, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -7515,7 +7515,7 @@ static void mine_train_rc_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_mine_train_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMineTrainRc(int32_t trackType)
{
switch (trackType)
{
File diff suppressed because it is too large. Load diff
@@ -62,7 +62,7 @@ static void mini_suspended_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -104,8 +104,8 @@ static void mini_suspended_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 24 },
{ 32, 20, 1 }, { 0, 2, height });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_1);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -171,7 +171,7 @@ static void mini_suspended_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -265,7 +265,7 @@ static void mini_suspended_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -359,7 +359,7 @@ static void mini_suspended_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2506,7 +2506,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)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniSuspendedRc(int32_t trackType)
{
switch (trackType)
{
@@ -57,7 +57,7 @@ static void multi_dimension_rc_track_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -80,7 +80,7 @@ static void multi_dimension_rc_track_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -110,7 +110,7 @@ static void multi_dimension_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -147,30 +147,30 @@ static void multi_dimension_rc_track_station(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height },
{ 32, 26, 1 }, { 0, 3, height + 3 });
}
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 11);
const auto* stationObj = ride.GetStationObject();
bool hasFence;
if (direction == 0 || direction == 2)
{
hasFence = track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation);
track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height);
hasFence = TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation);
TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height);
}
else
{
hasFence = track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation);
track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height);
hasFence = TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation);
TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height);
}
if (direction == 0 || direction == 2)
{
hasFence = track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation);
track_paint_util_draw_station_covers(session, EDGE_SE, hasFence, stationObj, height);
hasFence = TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation);
TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasFence, stationObj, height);
}
else
{
hasFence = track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation);
track_paint_util_draw_station_covers(session, EDGE_SW, hasFence, stationObj, height);
hasFence = TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation);
TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasFence, stationObj, height);
}
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
@@ -210,7 +210,7 @@ static void multi_dimension_rc_track_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -241,7 +241,7 @@ static void multi_dimension_rc_track_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -286,7 +286,7 @@ static void multi_dimension_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -351,7 +351,7 @@ static void multi_dimension_rc_track_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 24, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -438,7 +438,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -469,7 +469,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -514,7 +514,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -585,7 +585,7 @@ static void multi_dimension_rc_track_25_deg_up_to_60_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -682,7 +682,7 @@ static void multi_dimension_rc_track_60_deg_up_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 16, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -732,7 +732,7 @@ static void multi_dimension_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -799,7 +799,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -830,7 +830,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat(
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -875,7 +875,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1365,7 +1365,7 @@ static void multi_dimension_rc_track_flat_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1404,7 +1404,7 @@ static void multi_dimension_rc_track_flat_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1451,7 +1451,7 @@ static void multi_dimension_rc_track_flat_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1490,7 +1490,7 @@ static void multi_dimension_rc_track_flat_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1537,7 +1537,7 @@ static void multi_dimension_rc_track_left_bank_to_flat(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1576,7 +1576,7 @@ static void multi_dimension_rc_track_left_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1623,7 +1623,7 @@ static void multi_dimension_rc_track_right_bank_to_flat(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -1662,7 +1662,7 @@ static void multi_dimension_rc_track_right_bank_to_flat(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2087,7 +2087,7 @@ static void multi_dimension_rc_track_left_bank_to_25_deg_up(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2133,7 +2133,7 @@ static void multi_dimension_rc_track_left_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2204,7 +2204,7 @@ static void multi_dimension_rc_track_right_bank_to_25_deg_up(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2250,7 +2250,7 @@ static void multi_dimension_rc_track_right_bank_to_25_deg_up(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2321,7 +2321,7 @@ static void multi_dimension_rc_track_25_deg_up_to_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2367,7 +2367,7 @@ static void multi_dimension_rc_track_25_deg_up_to_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2438,7 +2438,7 @@ static void multi_dimension_rc_track_25_deg_up_to_right_bank(
{ 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2484,7 +2484,7 @@ static void multi_dimension_rc_track_25_deg_up_to_right_bank(
session,
PaintUtilRotateSegments(SEGMENT_B4 | SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC | SEGMENT_D0, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -2581,7 +2581,7 @@ static void multi_dimension_rc_track_left_bank(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -2620,7 +2620,7 @@ static void multi_dimension_rc_track_left_bank(
session,
PaintUtilRotateSegments(SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0 | SEGMENT_D4, direction),
0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -5007,7 +5007,7 @@ static void multi_dimension_rc_track_brakes(
{ 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -5036,7 +5036,7 @@ static void multi_dimension_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -5101,7 +5101,7 @@ static void multi_dimension_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -5155,7 +5155,7 @@ static void multi_dimension_rc_track_on_ride_photo(
{ 32, 20, 3 }, { 0, 6, height + 24 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 64, 0x20);
@@ -12476,7 +12476,7 @@ static void multi_dimension_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES_INVERTED, 4, 0, height + 36, session.TrackColours[SCHEME_SUPPORTS]);
@@ -13076,7 +13076,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)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionMultiDimensionRc(int32_t trackType)
{
switch (trackType)
{
@@ -250,7 +250,7 @@ static void paint_reverse_freefall_rc_station(
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
}
track_paint_util_draw_narrow_station_platform(session, ride, direction, height, 5, trackElement);
TrackPaintUtilDrawNarrowStationPlatform(session, ride, direction, height, 5, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -414,14 +414,14 @@ static void paint_reverse_freefall_rc_onride_photo(
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_reverse_freefall_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverseFreefallRc(int32_t trackType)
{
switch (trackType)
{
@@ -113,7 +113,7 @@ static void reverser_rc_track_station(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 0, height },
{ 32, 27, 2 }, { 0, 2, height });
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -1458,7 +1458,7 @@ static void reverser_rc_track_right_reverser(
}
}
TRACK_PAINT_FUNCTION get_track_paint_function_reverser_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionReverserRc(int32_t trackType)
{
switch (trackType)
{
@@ -159,7 +159,7 @@ static void side_friction_rc_track_station(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]), { 0, 0, height }, { 32, 27, 2 },
{ 0, 2, height });
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -3431,7 +3431,7 @@ static void side_friction_rc_track_diag_60_deg_down_to_25_deg_down(
session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement);
};
TRACK_PAINT_FUNCTION get_track_paint_function_side_friction_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSideFrictionRc(int32_t trackType)
{
switch (trackType)
{
@@ -59,7 +59,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -81,7 +81,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -118,8 +118,8 @@ namespace SingleRailRC
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][2]), { 0, 0, height - 2 },
{ 32, 28, 2 }, { 0, 2, height });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 4, 7);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 4, 7);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -158,7 +158,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -190,7 +190,7 @@ namespace SingleRailRC
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -241,7 +241,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -271,7 +271,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -322,7 +322,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -352,7 +352,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -411,7 +411,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -447,7 +447,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -506,7 +506,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -542,7 +542,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -593,7 +593,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -623,7 +623,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -768,7 +768,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 36, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -3631,7 +3631,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3680,7 +3680,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 1, 26 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3743,7 +3743,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3799,7 +3799,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 1, 34 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3855,7 +3855,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3911,7 +3911,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 1, 34 }, { 0, 27, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -3987,7 +3987,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -6579,7 +6579,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 28, 28, 1 }, { 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -6631,7 +6631,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 28, 28, 1 }, { 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_1, +56, TUNNEL_2);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -6803,7 +6803,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -6855,7 +6855,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -6907,7 +6907,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -6959,7 +6959,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7035,7 +7035,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7083,7 +7083,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7131,7 +7131,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7179,7 +7179,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7255,7 +7255,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7303,7 +7303,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7369,7 +7369,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7421,7 +7421,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7473,7 +7473,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -7525,7 +7525,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10516,7 +10516,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -10569,7 +10569,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 0 }, { 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -10609,7 +10609,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10650,7 +10650,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 9, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10687,7 +10687,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 10, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10724,7 +10724,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 19, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10778,7 +10778,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 24, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10819,7 +10819,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 18, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10856,7 +10856,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 13, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10893,7 +10893,7 @@ namespace SingleRailRC
{ 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, METAL_SUPPORTS_TUBES, 4, 5, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -10949,7 +10949,7 @@ namespace SingleRailRC
{ 32, 20, 3 }, { 0, 6, height });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -56,7 +56,7 @@ static void stand_up_rc_track_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25454), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -76,7 +76,7 @@ static void stand_up_rc_track_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25230), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -115,8 +115,8 @@ static void stand_up_rc_track_station(
PaintAddImageAsParentRotated(
session, direction, session.TrackColours[SCHEME_MISC].WithIndex(imageIds[direction][1]), { 0, 0, height },
{ 32, 32, 1 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -148,7 +148,7 @@ static void stand_up_rc_track_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25399), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -174,7 +174,7 @@ static void stand_up_rc_track_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25245), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -220,7 +220,7 @@ static void stand_up_rc_track_60_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25400), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -248,7 +248,7 @@ static void stand_up_rc_track_60_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25246), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -292,7 +292,7 @@ static void stand_up_rc_track_flat_to_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25403), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -318,7 +318,7 @@ static void stand_up_rc_track_flat_to_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25249), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -370,7 +370,7 @@ static void stand_up_rc_track_25_deg_up_to_60_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25404), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -404,7 +404,7 @@ static void stand_up_rc_track_25_deg_up_to_60_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25250), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -456,7 +456,7 @@ static void stand_up_rc_track_60_deg_up_to_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25406), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -490,7 +490,7 @@ static void stand_up_rc_track_60_deg_up_to_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25252), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -534,7 +534,7 @@ static void stand_up_rc_track_25_deg_up_to_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25405), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -560,7 +560,7 @@ static void stand_up_rc_track_25_deg_up_to_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25251), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -834,7 +834,7 @@ static void stand_up_rc_track_flat_to_left_bank(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25283), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -868,7 +868,7 @@ static void stand_up_rc_track_flat_to_right_bank(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25285), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -902,7 +902,7 @@ static void stand_up_rc_track_left_bank_to_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25284), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -936,7 +936,7 @@ static void stand_up_rc_track_right_bank_to_flat(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25286), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1160,7 +1160,7 @@ static void stand_up_rc_track_left_bank_to_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25318), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1201,7 +1201,7 @@ static void stand_up_rc_track_right_bank_to_25_deg_up(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25322), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1242,7 +1242,7 @@ static void stand_up_rc_track_25_deg_up_to_left_bank(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25314), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1283,7 +1283,7 @@ static void stand_up_rc_track_25_deg_up_to_right_bank(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25310), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -1356,7 +1356,7 @@ static void stand_up_rc_track_left_bank(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25326), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -2871,7 +2871,7 @@ static void stand_up_rc_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
/** rct2: 0x008A73B4 */
@@ -3628,7 +3628,7 @@ static void stand_up_rc_track_left_corkscrew_up(
break;
}
track_paint_util_left_corkscrew_up_supports(session, direction, height);
TrackPaintUtilLeftCorkscrewUpSupports(session, direction, height);
if (direction == 0 || direction == 3)
{
@@ -5081,7 +5081,7 @@ static void stand_up_rc_track_brakes(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(25570), { 0, 6, height }, { 32, 20, 3 });
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -5135,7 +5135,7 @@ static void stand_up_rc_track_on_ride_photo(
{ 0, 6, height + 3 });
break;
}
track_paint_util_onride_photo_paint(session, direction, height + 3, trackElement);
TrackPaintUtilOnridePhotoPaint(session, direction, height + 3, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -8759,7 +8759,7 @@ static void stand_up_rc_track_block_brakes(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_StandUpBlockBrakeImages[direction][isClosed]),
{ 0, 6, height }, { 32, 20, 3 });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -8769,7 +8769,7 @@ static void stand_up_rc_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_stand_up_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionStandUpRc(int32_t trackType)
{
switch (trackType)
{
+3 -3
View File
@@ -84,8 +84,8 @@ static void steeplechase_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 6, height },
{ 32, 20, 3 }, { 0, 0, height });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 3);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -2390,7 +2390,7 @@ static void steeplechase_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_steeplechase(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSteeplechase(int32_t trackType)
{
switch (trackType)
{
@@ -62,7 +62,7 @@ static void suspended_swinging_rc_track_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -92,8 +92,8 @@ static void suspended_swinging_rc_track_station(
PaintAddImageAsChildRotated(
session, direction, session.TrackColours[SCHEME_SUPPORTS].WithIndex(imageIds[direction][2]), { 0, 6, height + 29 },
{ 32, 20, 3 }, { 0, 6, height + 29 });
track_paint_util_draw_station_metal_supports_2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
track_paint_util_draw_station_inverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
TrackPaintUtilDrawStationMetalSupports2(session, direction, height, session.TrackColours[SCHEME_SUPPORTS], 0);
TrackPaintUtilDrawStationInverted(session, ride, direction, height, trackElement, STATION_VARIANT_TALL);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -159,7 +159,7 @@ static void suspended_swinging_rc_track_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -294,7 +294,7 @@ static void suspended_swinging_rc_track_flat_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -447,7 +447,7 @@ static void suspended_swinging_rc_track_60_deg_up_to_25_deg_up(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -541,7 +541,7 @@ static void suspended_swinging_rc_track_25_deg_up_to_flat(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
switch (direction)
{
@@ -1893,7 +1893,7 @@ static void suspended_swinging_rc_track_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4436,7 +4436,7 @@ static void suspended_swinging_rc_track_block_brakes(
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_C4 | SEGMENT_CC | SEGMENT_D0, direction), 0xFFFF, 0);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height + 44, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -4445,7 +4445,7 @@ static void suspended_swinging_rc_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_suspended_swinging_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionSuspendedSwingingRc(int32_t trackType)
{
switch (trackType)
{
+5 -5
View File
@@ -452,7 +452,7 @@ static void paint_virginia_reel_station(
}
WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -470,10 +470,10 @@ static void paint_virginia_reel_track_left_quarter_turn_3_tiles(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_left_quarter_turn_3_tiles_paint(
TrackPaintUtilLeftQuarterTurn3TilesPaint(
session, 2, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
virginia_reel_track_pieces_flat_quarter_turn_3_tiles);
track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height, TUNNEL_SQUARE_FLAT, direction, trackSequence);
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_SQUARE_FLAT, direction, trackSequence);
switch (trackSequence)
{
@@ -514,7 +514,7 @@ static void paint_virginia_reel_track_left_quarter_turn_1_tile(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_left_quarter_turn_1_tile_paint(
TrackPaintUtilLeftQuarterTurn1TilePaint(
session, 2, height, 0, direction, session.TrackColours[SCHEME_TRACK],
virginia_reel_track_pieces_flat_quarter_turn_1_tile);
@@ -553,7 +553,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)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionVirginiaReel(int32_t trackType)
{
switch (trackType)
{
+20 -21
View File
@@ -178,7 +178,7 @@ static void wild_mouse_track_flat(
uint8_t isChained = trackElement.HasChain() ? 1 : 0;
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -1, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -217,8 +217,8 @@ static void wild_mouse_track_station(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_brakes_image_ids[direction]),
{ 0, 0, height }, { 32, 20, 2 }, { 0, 0, height });
}
track_paint_util_draw_station_metal_supports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStationMetalSupports(session, direction, height, session.TrackColours[SCHEME_SUPPORTS]);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -239,7 +239,7 @@ static void wild_mouse_track_25_deg_up(
uint8_t isChained = trackElement.HasChain() ? 1 : 0;
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -278,7 +278,7 @@ static void wild_mouse_track_60_deg_up(
{
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 98 }, { 0, 27, height });
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
if (direction == 0 || direction == 3)
{
@@ -317,7 +317,7 @@ static void wild_mouse_track_flat_to_25_deg_up(
uint8_t isChained = trackElement.HasChain() ? 1 : 0;
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -4, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -364,7 +364,7 @@ static void wild_mouse_track_25_deg_up_to_60_deg_up(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height });
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -13, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -411,7 +411,7 @@ static void wild_mouse_track_60_deg_up_to_25_deg_up(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 1, 66 }, { 0, 27, height });
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -21, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -443,7 +443,7 @@ static void wild_mouse_track_25_deg_up_to_flat(
uint8_t isChained = trackElement.HasChain() ? 1 : 0;
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][isChained]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -7, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -535,9 +535,9 @@ static void wild_mouse_track_right_quarter_turn_3(
},
};
track_paint_util_right_quarter_turn_3_tiles_paint_3(
TrackPaintUtilRightQuarterTurn3TilesPaint3(
session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds);
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
switch (trackSequence)
{
@@ -598,8 +598,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_down(
sbb->bb_size);
}
track_paint_util_right_quarter_turn_3_tiles_25_deg_down_tunnel(
session, height, direction, trackSequence, TUNNEL_2, TUNNEL_1);
TrackPaintUtilRightQuarterTurn3Tiles25DegDownTunnel(session, height, direction, trackSequence, TUNNEL_2, TUNNEL_1);
switch (trackSequence)
{
@@ -665,7 +664,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_up(
{ sbb->offset.x, sbb->offset.y, height + sbb->offset.z }, sbb->bb_size);
}
track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(session, height, direction, trackSequence, TUNNEL_1, TUNNEL_2);
TrackPaintUtilRightQuarterTurn3Tiles25DegUpTunnel(session, height, direction, trackSequence, TUNNEL_1, TUNNEL_2);
switch (trackSequence)
{
@@ -744,7 +743,7 @@ static void wild_mouse_track_left_quarter_turn_1(
break;
}
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -1, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_D0, direction), 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -788,7 +787,7 @@ static void wild_mouse_track_flat_to_60_deg_up(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 1, 24, 43 }, { 29, 4, height + 2 });
PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 2, 43 }, { 0, 4, height });
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, -5, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -835,7 +834,7 @@ static void wild_mouse_track_60_deg_up_to_flat(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 1, 24, 43 }, { 29, 4, height + 2 });
PaintAddImageAsParentRotated(session, direction, frontImageId, { 0, 0, height }, { 32, 2, 43 }, { 0, 4, height });
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
if (direction == 0 || direction == 3)
{
@@ -882,7 +881,7 @@ static void wild_mouse_track_brakes(
{
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_brakes_image_ids[direction]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -906,7 +905,7 @@ static void wild_mouse_track_rotation_control_toggle(
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -924,7 +923,7 @@ static void wild_mouse_track_block_brakes(
bool isClosed = trackElement.IsBrakeClosed();
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_block_brakes_image_ids[direction][isClosed]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_TUBES, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -934,7 +933,7 @@ static void wild_mouse_track_block_brakes(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
TRACK_PAINT_FUNCTION get_track_paint_function_wild_mouse(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWildMouse(int32_t trackType)
{
switch (trackType)
{
@@ -508,7 +508,7 @@ static void wooden_rc_track_station(
height);
}
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station_2(session, ride, direction, height, trackElement, 9, 11);
TrackPaintUtilDrawStation2(session, ride, direction, height, trackElement, 9, 11);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -1453,7 +1453,7 @@ static void wooden_rc_track_right_quarter_turn_5(
WoodenRcTrackPaintBb<isClassic>(session, &imageIds[0][direction][trackSequence], height);
WoodenRcTrackPaintBb<isClassic>(session, &imageIds[1][direction][trackSequence], height);
track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
if (supportType[direction][trackSequence] != -1)
{
@@ -1955,7 +1955,7 @@ static void wooden_rc_track_banked_right_quarter_turn_5(
WoodenRcTrackPaintBb<isClassic>(session, &imageIds[0][direction][trackSequence], height);
WoodenRcTrackPaintBb<isClassic>(session, &imageIds[1][direction][trackSequence], height);
track_paint_util_right_quarter_turn_5_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
TrackPaintUtilRightQuarterTurn5TilesTunnel(session, height, direction, trackSequence, TUNNEL_SQUARE_FLAT);
if (supportType[direction][trackSequence] != -1)
{
@@ -3963,7 +3963,7 @@ static void wooden_rc_track_right_vertical_loop(
break;
}
track_paint_util_right_vertical_loop_segments(session, direction, trackSequence);
TrackPaintUtilRightVerticalLoopSegments(session, direction, trackSequence);
}
/** rct2: 0x008AC7E8 */
@@ -7009,7 +7009,7 @@ static void wooden_rc_track_left_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -7079,7 +7079,7 @@ static void wooden_rc_track_right_quarter_turn_1_60_deg_up(
{ 2, 2, height + 99 });
break;
}
track_paint_util_right_quarter_turn_1_tile_tunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
TrackPaintUtilRightQuarterTurn1TileTunnel(session, direction, height, -8, TUNNEL_SQUARE_7, +56, TUNNEL_SQUARE_8);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 104, 0x20);
}
@@ -7305,7 +7305,7 @@ static void wooden_rc_track_on_ride_photo(
break;
}
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_onride_photo_small_paint(session, direction, height + 16, trackElement);
TrackPaintUtilOnridePhotoSmallPaint(session, direction, height + 16, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_INVERTED_9);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 48, 0x20);
@@ -14854,7 +14854,7 @@ static void wooden_rc_track_booster(
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
template<bool isClassic> TRACK_PAINT_FUNCTION get_track_paint_function_wooden_and_classic_wooden_rc(int32_t trackType)
template<bool isClassic> TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenAndClassicWoodenRc(int32_t trackType)
{
switch (trackType)
{
@@ -15144,12 +15144,12 @@ template<bool isClassic> TRACK_PAINT_FUNCTION get_track_paint_function_wooden_an
return nullptr;
}
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_rc(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenRc(int32_t trackType)
{
return get_track_paint_function_wooden_and_classic_wooden_rc<false>(trackType);
return GetTrackPaintFunctionWoodenAndClassicWoodenRc<false>(trackType);
}
TRACK_PAINT_FUNCTION GetTrackPaintFunctionClassicWoodenRcFallback(int32_t trackType)
{
return get_track_paint_function_wooden_and_classic_wooden_rc<true>(trackType);
return GetTrackPaintFunctionWoodenAndClassicWoodenRc<true>(trackType);
}
@@ -163,7 +163,7 @@ static void wooden_wild_mouse_track_station(
session, direction, session.TrackColours[SCHEME_TRACK].WithIndex(imageIds[direction][0]), { 0, 6, height },
{ 32, 20, 1 }, { 0, 0, height });
WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_SQUARE_FLAT);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -510,9 +510,9 @@ static void wooden_wild_mouse_track_right_quarter_turn_3(
};
static uint8_t supportType[] = { 4, 5, 2, 3 };
track_paint_util_right_quarter_turn_3_tiles_paint_4(
TrackPaintUtilRightQuarterTurn3TilesPaint4(
session, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], imageIds);
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
switch (trackSequence)
{
@@ -576,7 +576,7 @@ static void wooden_wild_mouse_track_left_quarter_turn_1(
break;
}
WoodenASupportsPaintSetup(session, supportType[direction], 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
}
@@ -705,7 +705,7 @@ static void wooden_wild_mouse_track_60_deg_down_to_flat(
wooden_wild_mouse_track_flat_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
}
TRACK_PAINT_FUNCTION get_track_paint_function_wooden_wild_mouse(int32_t trackType)
TRACK_PAINT_FUNCTION GetTrackPaintFunctionWoodenWildMouse(int32_t trackType)
{
switch (trackType)
{
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor AirPoweredVerticalCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_air_powered_vertical_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionAirPoweredVerticalRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
SET_FIELD(RideModes, EnumsToFlags(RideMode::PoweredLaunchPasstrough, RideMode::PoweredLaunch)),
SET_FIELD(DefaultMode, RideMode::PoweredLaunchPasstrough),
@@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor AirPoweredVerticalCoasterRTD =
SET_FIELD(Heights, { 255, 32, 4, 7, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_air_powered_vertical_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateAirPoweredVerticalCoaster),
SET_FIELD(RatingsMultipliers, { 44, 66, 10 }),
SET_FIELD(UpkeepCosts, { 90, 20, 0, 0, 0, 10 }),
SET_FIELD(BuildCosts, { 100.00_GBP, 0.00_GBP, 45, }),
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor AlpineCoasterRTD =
SET_FIELD(Heights, {18, 24, 3, 7}),
SET_FIELD(MaxMass, 4),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 4, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_alpine_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateAlpineCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 35, 20, 80, 8, 3, 10 }),
SET_FIELD(BuildCosts, { 22.50_GBP, 2.50_GBP, 50}),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor BobsleighCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_bobsleigh_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBobsleighRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES |
RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor BobsleighCoasterRTD =
SET_FIELD(Heights, { 19, 24, 5, 7, }),
SET_FIELD(MaxMass, 25),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_bobsleigh_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateBobsleighCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 40.00_GBP, 2.50_GBP, 45, }),
@@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor ClassicMiniRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_ON_RIDE_PHOTO}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_junior_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionJuniorRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor ClassicMiniRollerCoasterRTD =
SET_FIELD(Heights, { 15, 24, 4, 7, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_classic_mini_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateClassicMiniRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 8, 3, 5 }),
SET_FIELD(BuildCosts, { 22.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor ClassicWoodenRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, 0),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_classic_wooden_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionClassicWoodenRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor ClassicWoodenRollerCoasterRTD =
SET_FIELD(Heights, { 41, 24, 8, 11, }),
SET_FIELD(MaxMass, 19),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 5, 7 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_classic_wooden_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateClassicWoodenRollerCoaster),
SET_FIELD(RatingsMultipliers, { 52, 33, 4 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, {37.50_GBP, 3.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor CompactInvertedCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_compact_inverted_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCompactInvertedRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_IS_SUSPENDED),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor CompactInvertedCoasterRTD =
SET_FIELD(Heights, { 27, 40, 29, 8, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_compact_inverted_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCompactInvertedCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 13, 3, 10 }),
SET_FIELD(BuildCosts, { 50.00_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor CorkscrewRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_TWIST}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_corkscrew_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCorkscrewRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor CorkscrewRollerCoasterRTD =
SET_FIELD(Heights, { 28, 24, 8, 11, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftArrow, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_corkscrew_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCorkscrewRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 52.50_GBP, 2.50_GBP, 50, }),
@@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER, TRACK_SLOPE_STEEP_LONG, TRACK_FLYING_LARGE_HALF_LOOP_UNINVERTED_DOWN, TRACK_FLYING_HALF_LOOP_UNINVERTED_DOWN, TRACK_STATION_END, TRACK_VERTICAL_LOOP, TRACK_POWERED_LIFT}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_flying_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionFlyingRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES |
@@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterRTD =
SET_FIELD(Heights, { 30, 24, 8, 11, }),
SET_FIELD(MaxMass, 35),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_flying_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFlyingRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }),
SET_FIELD(BuildCosts, { 62.50_GBP, 2.50_GBP, 50, }),
@@ -83,7 +83,7 @@ constexpr const RideTypeDescriptor FlyingRollerCoasterAltRTD =
SET_FIELD(Heights, { 30, 24, 8, 11, }),
SET_FIELD(MaxMass, 35),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_flying_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFlyingRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }),
SET_FIELD(BuildCosts, { 62.50_GBP, 2.50_GBP, 50, }),
+2 -2
View File
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor GigaCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_giga_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionGigaRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_ALLOW_CABLE_LIFT_HILL),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor GigaCoasterRTD =
SET_FIELD(Heights, { 86, 24, 9, 11, }),
SET_FIELD(MaxMass, 31),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 5, 8 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_giga_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateGigaCoaster),
SET_FIELD(RatingsMultipliers, { 51, 32, 10 }),
SET_FIELD(UpkeepCosts, { 10, 20, 80, 12, 3, 40 }),
SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 55, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor HeartlineTwisterCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_heartline_twister_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionHeartlineTwisterRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit)),
@@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor HeartlineTwisterCoasterRTD =
SET_FIELD(Heights, { 22, 24, 15, 9, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_heartline_twister_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateHeartlineTwisterCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 47, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 72.50_GBP, 3.50_GBP, 30, }),
@@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor HybridCoasterRTD =
SET_FIELD(Heights, { 43, 24, 13, 13}),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftRMC, 5, 8 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_hybrid_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateHybridCoaster),
SET_FIELD(RatingsMultipliers, { 52, 36, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 65.00_GBP, 3.50_GBP, 55}),
@@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor HyperTwisterRTD =
SET_FIELD(ExtraTrackPieces, { TRACK_LIFT_HILL_STEEP, TRACK_BRAKE_FOR_DROP, TRACK_BOOSTER, TRACK_POWERED_LIFT }),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_bolliger_mabillard<METAL_SUPPORTS_TUBES>),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBolligerMabillard<METAL_SUPPORTS_TUBES>),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor HyperTwisterRTD =
SET_FIELD(Heights, { 54, 24, 8, 9, }),
SET_FIELD(MaxMass, 31),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 8 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_twister_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateTwisterRollerCoaster),
SET_FIELD(RatingsMultipliers, { 52, 36, 10 }),
SET_FIELD(UpkeepCosts, { 43, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 55, }),
@@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor HypercoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_VERTICAL_LOOP, TRACK_HALF_LOOP, TRACK_CORKSCREW, TRACK_BOOSTER}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_corkscrew_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionCorkscrewRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor HypercoasterRTD =
SET_FIELD(Heights, { 55, 24, 8, 11, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftArrow, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_corkscrew_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCorkscrewRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 52.50_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor InvertedHairpinCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_inverted_hairpin_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionInvertedHairpinRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES |
RIDE_TYPE_FLAG_IS_SUSPENDED),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor InvertedHairpinCoasterRTD =
SET_FIELD(Heights, { 16, 24, 24, 7, }),
SET_FIELD(MaxMass, 4),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWildMouse, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverted_hairpin_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInvertedHairpinCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 30 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }),
SET_FIELD(BuildCosts, { 33.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor InvertedImpulseCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_inverted_impulse_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionInvertedImpulseRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES |
RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_IS_SUSPENDED),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor InvertedImpulseCoasterRTD =
SET_FIELD(Heights, { 45, 40, 29, 8, }),
SET_FIELD(MaxMass, 23),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 7 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverted_impulse_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInvertedImpulseCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 180, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 62.50_GBP, 2.50_GBP, 25, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor InvertedRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_inverted_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionInvertedRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS | RIDE_TYPE_FLAG_IS_SUSPENDED),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor InvertedRollerCoasterRTD =
SET_FIELD(Heights, { 38, 40, 29, 8, }),
SET_FIELD(MaxMass, 27),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 7 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_inverted_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateInvertedRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 13, 3, 10 }),
SET_FIELD(BuildCosts, { 65.00_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor JuniorRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_STEEP_UP, TRACK_SLOPE_STEEP_DOWN, TRACK_ON_RIDE_PHOTO}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_junior_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionJuniorRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor JuniorRollerCoasterRTD =
SET_FIELD(Heights, { 12, 24, 4, 7, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_junior_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateJuniorRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 8, 3, 5 }),
SET_FIELD(BuildCosts, { 22.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LIMLaunchedRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_LONG, TRACK_ZERO_G_ROLL, TRACK_ZERO_G_ROLL_LARGE}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_lim_launched_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLimLaunchedRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor LIMLaunchedRollerCoasterRTD =
SET_FIELD(Heights, { 35, 24, 5, 7, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lim_launched_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLimLaunchedRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 42, 20, 80, 9, 3, 10 }),
SET_FIELD(BuildCosts, { 47.50_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_FLYING_HALF_LOOP_UNINVERTED_DOWN, TRACK_BOOSTER}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_lay_down_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLayDownRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterRTD =
SET_FIELD(Heights, { 26, 24, 8, 11, }),
SET_FIELD(MaxMass, 25),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lay_down_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLayDownRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }),
SET_FIELD(BuildCosts, { 53.50_GBP, 2.50_GBP, 50, }),
@@ -76,7 +76,7 @@ constexpr const RideTypeDescriptor LayDownRollerCoasterAltRTD =
SET_FIELD(Heights, { 26, 24, 8, 11, }),
SET_FIELD(MaxMass, 25),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_lay_down_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLayDownRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 49, 20, 90, 11, 3, 15 }),
SET_FIELD(BuildCosts, { 53.50_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor LoopingRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_VERTICAL, TRACK_TWIST, TRACK_CORKSCREW, TRACK_CURVE_VERTICAL, TRACK_QUARTER_LOOP, TRACK_SLOPE_LONG, TRACK_BARREL_ROLL, TRACK_HALF_LOOP, TRACK_HALF_LOOP_MEDIUM, TRACK_HALF_LOOP_LARGE,TRACK_CORKSCREW_LARGE, TRACK_ZERO_G_ROLL, TRACK_ZERO_G_ROLL_LARGE}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_looping_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionLoopingRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor LoopingRollerCoasterRTD =
SET_FIELD(Heights, { 35, 24, 5, 7, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_looping_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateLoopingRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 45.00_GBP, 2.50_GBP, 50, }),
+2 -2
View File
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MineRideRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_mine_ride),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMineRide),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor MineRideRTD =
SET_FIELD(Heights, { 13, 24, 9, 11, }),
SET_FIELD(MaxMass, 27),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mine_ride),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMineRide),
SET_FIELD(RatingsMultipliers, { 60, 20, 10 }),
SET_FIELD(UpkeepCosts, { 50, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 42.50_GBP, 2.00_GBP, 40, }),
@@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor MineTrainCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_mine_train_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMineTrainRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MineTrainCoasterRTD =
SET_FIELD(Heights, { 21, 24, 4, 7, }),
SET_FIELD(MaxMass, 15),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftArrow, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mine_train_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMineTrainCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 41.00_GBP, 3.00_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MiniRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER, TRACK_LIFT_HILL_CURVED}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_mini_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor MiniRollerCoasterRTD =
SET_FIELD(Heights, { 16, 24, 9, 11, }),
SET_FIELD(MaxMass, 10),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mini_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 35, 20, 80, 8, 3, 10 }),
SET_FIELD(BuildCosts, { 32.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MiniSuspendedCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_mini_suspended_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniSuspendedRc),
SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT |
RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MiniSuspendedCoasterRTD =
SET_FIELD(Heights, { 10, 24, 24, 8, }),
SET_FIELD(MaxMass, 3),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_mini_suspended_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMiniSuspendedCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 30.00_GBP, 2.50_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_multi_dimension_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMultiDimensionRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_HAS_ALTERNATIVE_TRACK_TYPE | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES |
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterRTD =
SET_FIELD(Heights, { 40, 24, 8, 11, }),
SET_FIELD(MaxMass, 78),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_multi_dimension_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMultiDimensionRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 75, 20, 90, 11, 3, 15 }),
SET_FIELD(BuildCosts, { 90.00_GBP, 2.50_GBP, 50, }),
@@ -77,7 +77,7 @@ constexpr const RideTypeDescriptor MultiDimensionRollerCoasterAltRTD =
SET_FIELD(Heights, { 40, 24, 8, 11, }),
SET_FIELD(MaxMass, 78),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_multi_dimension_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateMultiDimensionRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 75, 20, 90, 11, 3, 15 }),
SET_FIELD(BuildCosts, { 90.00_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor ReverseFreefallCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_reverse_freefall_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionReverseFreefallRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT),
SET_FIELD(RideModes, EnumsToFlags(RideMode::LimPoweredLaunch)),
SET_FIELD(DefaultMode, RideMode::LimPoweredLaunch),
@@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor ReverseFreefallCoasterRTD =
SET_FIELD(Heights, { 255, 32, 4, 7, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_reverse_freefall_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateReverseFreefallCoaster),
SET_FIELD(RatingsMultipliers, { 44, 66, 10 }),
SET_FIELD(UpkeepCosts, { 80, 20, 0, 0, 0, 10 }),
SET_FIELD(BuildCosts, { 100.00_GBP, 0.00_GBP, 45, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor ReverserRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_reverser_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionReverserRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit)),
@@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor ReverserRollerCoasterRTD =
SET_FIELD(Heights, { 18, 24, 8, 11, }),
SET_FIELD(MaxMass, 15),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 3, 4 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_reverser_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateReverserRollerCoaster),
SET_FIELD(RatingsMultipliers, { 48, 28, 7 }),
SET_FIELD(UpkeepCosts, { 39, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 27.50_GBP, 3.00_GBP, 37, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_side_friction_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSideFrictionRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SideFrictionRollerCoasterRTD =
SET_FIELD(Heights, { 15, 24, 4, 11, }),
SET_FIELD(MaxMass, 15),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 3, 4 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_side_friction_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSideFrictionRollerCoaster),
SET_FIELD(RatingsMultipliers, { 48, 28, 7 }),
SET_FIELD(UpkeepCosts, { 39, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 27.50_GBP, 3.00_GBP, 37, }),
@@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor SingleRailRollerCoasterRTD =
SET_FIELD(Heights, { 28, 24, 5, 7}),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftRMC, 5, 8 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_single_rail_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSingleRailRollerCoaster),
SET_FIELD(RatingsMultipliers, { 52, 36, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 37.50_GBP, 2.50_GBP, 50}),
@@ -22,7 +22,7 @@ constexpr const RideTypeDescriptor SpinningWildMouseRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_LIFT_HILL_STEEP, TRACK_SLOPE_STEEP_UP, TRACK_SLOPE_STEEP_DOWN, TRACK_SLOPE_CURVE}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_wild_mouse),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWildMouse),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit, RideMode::ContinuousCircuitBlockSectioned)),
@@ -35,7 +35,7 @@ constexpr const RideTypeDescriptor SpinningWildMouseRTD =
SET_FIELD(Heights, { 16, 24, 4, 7, }),
SET_FIELD(MaxMass, 4),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWildMouse, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wild_mouse),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWildMouse),
SET_FIELD(RatingsMultipliers, { 50, 30, 30 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }),
SET_FIELD(BuildCosts, { 27.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SpiralRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER, TRACK_LIFT_HILL}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_mini_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionMiniRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SpiralRollerCoasterRTD =
SET_FIELD(Heights, { 19, 24, 9, 11, }),
SET_FIELD(MaxMass, 31),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftFrictionWheels, 7, 7 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_spiral_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSpiralRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 41, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 35.00_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor StandUpRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_stand_up_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionStandUpRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor StandUpRollerCoasterRTD =
SET_FIELD(Heights, { 25, 24, 9, 11, }),
SET_FIELD(MaxMass, 18),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_stand_up_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateStandUpRollerCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 50.00_GBP, 2.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SteelWildMouseRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_ROTATION_CONTROL_TOGGLE}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_wild_mouse),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWildMouse),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SteelWildMouseRTD =
SET_FIELD(Heights, { 16, 24, 4, 7, }),
SET_FIELD(MaxMass, 4),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWildMouse, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wild_mouse),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWildMouse),
SET_FIELD(RatingsMultipliers, { 50, 30, 30 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }),
SET_FIELD(BuildCosts, { 27.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SteeplechaseRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_steeplechase),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSteeplechase),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SteeplechaseRTD =
SET_FIELD(Heights, { 14, 24, 7, 7, }),
SET_FIELD(MaxMass, 4),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_steeplechase),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSteeplechase),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 28.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor SuspendedSwingingCoasterRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_suspended_swinging_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionSuspendedSwingingRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_IS_SUSPENDED),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor SuspendedSwingingCoasterRTD =
SET_FIELD(Heights, { 24, 40, 29, 8, }),
SET_FIELD(MaxMass, 26),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_suspended_swinging_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateSuspendedSwingingCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 20, 3, 10 }),
SET_FIELD(BuildCosts, { 47.50_GBP, 2.50_GBP, 50, }),
@@ -25,7 +25,7 @@ constexpr const RideTypeDescriptor TwisterRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_LIFT_HILL_STEEP, TRACK_BRAKE_FOR_DROP}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_bolliger_mabillard<METAL_SUPPORTS_TUBES>),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBolligerMabillard<METAL_SUPPORTS_TUBES>),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor TwisterRollerCoasterRTD =
SET_FIELD(Heights, { 40, 24, 8, 9, }),
SET_FIELD(MaxMass, 31),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 5, 8 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_twister_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateTwisterRollerCoaster),
SET_FIELD(RatingsMultipliers, { 52, 36, 10 }),
SET_FIELD(UpkeepCosts, { 43, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 55, }),
@@ -25,7 +25,7 @@ constexpr const RideTypeDescriptor VerticalDropCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_HALF_LOOP, TRACK_CORKSCREW, TRACK_BARREL_ROLL, TRACK_POWERED_LIFT, TRACK_HALF_LOOP_LARGE, TRACK_QUARTER_LOOP, TRACK_BOOSTER, TRACK_TWIST}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_bolliger_mabillard<METAL_SUPPORTS_BOXED>),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionBolligerMabillard<METAL_SUPPORTS_BOXED>),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
@@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor VerticalDropCoasterRTD =
SET_FIELD(Heights, { 53, 24, 8, 11, }),
SET_FIELD(MaxMass, 25),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftBM, 4, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_vertical_drop_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateVerticalDropRollerCoaster),
SET_FIELD(RatingsMultipliers, { 52, 38, 10 }),
SET_FIELD(UpkeepCosts, { 44, 20, 80, 11, 3, 10 }),
SET_FIELD(BuildCosts, { 60.00_GBP, 2.50_GBP, 42, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor VirginiaReelRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_virginia_reel),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionVirginiaReel),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
SET_FIELD(RideModes, EnumsToFlags(RideMode::ContinuousCircuit)),
@@ -36,7 +36,7 @@ constexpr const RideTypeDescriptor VirginiaReelRTD =
SET_FIELD(Heights, { 14, 24, 6, 7, }),
SET_FIELD(MaxMass, 15),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 3, 4 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_virginia_reel),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateVirginiaReel),
SET_FIELD(RatingsMultipliers, { 30, 15, 25 }),
SET_FIELD(UpkeepCosts, { 39, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 26.50_GBP, 3.00_GBP, 25, }),
@@ -24,7 +24,7 @@ constexpr const RideTypeDescriptor WaterCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_SLOPE_LONG}),
SET_FIELD(CoveredTrackPieces, {TrackElemType::Flat, TrackElemType::LeftQuarterTurn5Tiles, TrackElemType::RightQuarterTurn5Tiles, TrackElemType::SBendLeft, TrackElemType::SBendRight}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_water_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWaterRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT |
RIDE_TYPE_FLAG_TRACK_ELEMENTS_HAVE_TWO_VARIETIES | RIDE_TYPE_FLAG_HAS_LARGE_CURVES | RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES),
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor WaterCoasterRTD =
SET_FIELD(Heights, { 18, 24, 4, 7, }),
SET_FIELD(MaxMass, 13),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 6 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_water_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWaterCoaster),
SET_FIELD(RatingsMultipliers, { 50, 30, 10 }),
SET_FIELD(UpkeepCosts, { 60, 20, 80, 8, 3, 10 }),
SET_FIELD(BuildCosts, { 27.50_GBP, 2.00_GBP, 40, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor WoodenRollerCoasterRTD =
SET_FIELD(ExtraTrackPieces, {TRACK_BOOSTER}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_wooden_rc),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWoodenRc),
SET_FIELD(Flags, RIDE_TYPE_FLAGS_TRACK_HAS_3_COLOURS | RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT | RIDE_TYPE_FLAG_HAS_LARGE_CURVES |
RIDE_TYPE_FLAG_PEEP_CHECK_GFORCES | RIDE_TYPE_FLAG_ALLOW_MULTIPLE_CIRCUITS),
@@ -37,7 +37,7 @@ constexpr const RideTypeDescriptor WoodenRollerCoasterRTD =
SET_FIELD(Heights, { 41, 24, 8, 11, }),
SET_FIELD(MaxMass, 19),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftWood, 5, 7 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wooden_roller_coaster),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWoodenRollerCoaster),
SET_FIELD(RatingsMultipliers, { 52, 33, 8 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 10, 3, 10 }),
SET_FIELD(BuildCosts, { 37.50_GBP, 3.50_GBP, 50, }),
@@ -23,7 +23,7 @@ constexpr const RideTypeDescriptor WoodenWildMouseRTD =
SET_FIELD(ExtraTrackPieces, {}),
SET_FIELD(CoveredTrackPieces, {}),
SET_FIELD(StartTrackPiece, TrackElemType::EndStation),
SET_FIELD(TrackPaintFunction, get_track_paint_function_wooden_wild_mouse),
SET_FIELD(TrackPaintFunction, GetTrackPaintFunctionWoodenWildMouse),
SET_FIELD(Flags, RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_MAIN | RIDE_TYPE_FLAG_HAS_TRACK_COLOUR_SUPPORTS |
RIDE_TYPE_FLAGS_COMMON_COASTER | RIDE_TYPE_FLAGS_COMMON_COASTER_NON_ALT |
RIDE_TYPE_FLAG_HAS_LEAVE_WHEN_ANOTHER_VEHICLE_ARRIVES_AT_STATION | RIDE_TYPE_FLAG_ALLOW_DOORS_ON_TRACK |
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor WoodenWildMouseRTD =
SET_FIELD(Heights, { 14, 24, 4, 7, }),
SET_FIELD(MaxMass, 4),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::LiftClassic, 4, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_wooden_wild_mouse),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateWoodenWildMouse),
SET_FIELD(RatingsMultipliers, { 50, 30, 30 }),
SET_FIELD(UpkeepCosts, { 40, 20, 80, 9, 3, 10 }),
SET_FIELD(BuildCosts, { 25.00_GBP, 3.00_GBP, 40, }),
+8 -8
View File
@@ -372,7 +372,7 @@ static void PaintCarRideStation(
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -383,10 +383,10 @@ static void PaintCarRideTrackRightQuarterTurn3Tiles(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_right_quarter_turn_3_tiles_paint(
TrackPaintUtilRightQuarterTurn3TilesPaint(
session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK], CarRideTrackPiecesQuarterTurn3Tiles,
defaultRightQuarterTurn3TilesOffsets, defaultRightQuarterTurn3TilesBoundLengths, nullptr);
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, TUNNEL_0);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, TUNNEL_0);
switch (trackSequence)
{
@@ -451,7 +451,7 @@ static void PaintCarRideTrackLeftQuarterTurn1Tile(
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -481,7 +481,7 @@ static void PaintCarRideTrackSpinningTunnel(
PaintAddImageAsParent(session, imageId, { 6, 0, height }, { 20, 32, 1 });
}
track_paint_util_spinning_tunnel_paint(session, 1, height, direction);
TrackPaintUtilSpinningTunnelPaint(session, 1, height, direction);
if (direction == 0 || direction == 2)
{
@@ -537,7 +537,7 @@ static void PaintCarRideTrack60DegUp(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 32, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -593,7 +593,7 @@ static void PaintCarRideTrack25DegUpTo60DegUp(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 12, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -649,7 +649,7 @@ static void PaintCarRideTrack60DegUpTo25DegUp(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 20, height, session.TrackColours[SCHEME_SUPPORTS]);
}
+2 -2
View File
@@ -58,9 +58,9 @@ static void PaintCircus(
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_SUPPORTS], height,
fenceSpritesRope, session.CurrentRotation);
+2 -2
View File
@@ -92,9 +92,9 @@ static void PaintCrookedHouse(
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope,
session.CurrentRotation);
+1 -1
View File
@@ -60,7 +60,7 @@ static void PaintDodgems(
auto imageId = session.TrackColours[SCHEME_SUPPORTS].WithIndex(SprDodgemsFloor);
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 1, 1, height }, { 30, 30, 1 } });
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_SUPPORTS], height,
DodgemsFenceSprites, session.CurrentRotation);
+6 -6
View File
@@ -121,29 +121,29 @@ static void PaintFerrisWheel(
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
ImageId imageId;
uint8_t rotation = session.CurrentRotation;
auto colourFlags = session.TrackColours[SCHEME_MISC];
if (edges & EDGE_NW && track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, rotation))
if (edges & EDGE_NW && TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, rotation))
{
imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_NW);
PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 0, 2, height + 2 }, { 32, 1, 7 } });
}
if (edges & EDGE_NE && track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, rotation))
if (edges & EDGE_NE && TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, rotation))
{
imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_NE);
PaintAddImageAsChild(session, imageId, { 0, 0, height }, { { 2, 0, height + 2 }, { 1, 32, 7 } });
}
if (edges & EDGE_SE && track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, rotation))
if (edges & EDGE_SE && TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, rotation))
{
// Bound box is slightly different from track_paint_util_paint_fences
// Bound box is slightly different from TrackPaintUtilPaintFences
imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_SE);
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 0, 29, height + 3 }, { 28, 1, 7 } });
}
if (edges & EDGE_SW && track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, rotation))
if (edges & EDGE_SW && TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, rotation))
{
imageId = colourFlags.WithIndex(SPR_FENCE_ROPE_SW);
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 30, 0, height + 2 }, { 1, 32, 7 } });
+1 -1
View File
@@ -52,7 +52,7 @@ static void paint_flying_saucers(
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { { 1, 1, height }, { 30, 30, 1 } });
}
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height,
FlyingSaucersFenceSprites, session.CurrentRotation);
+11 -11
View File
@@ -187,7 +187,7 @@ static void PaintGhostTrainTrackFlat(
auto tunnelImage = GetTunnelDoorsImageStraightFlat(trackElement, direction);
PaintUtilPushTunnelRotated(session, direction, height, tunnelImage);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -208,7 +208,7 @@ static void PaintGhostTrainTrack25DegUp(
imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPieces25DegUp[direction][1]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 23 }, { 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 8, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -256,7 +256,7 @@ static void PaintGhostTrainTrackFlatTo25DegUp(
imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPiecesFlatTo25DegUp[direction][1]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 15 }, { 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 3, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -292,7 +292,7 @@ static void PaintGhostTrainTrack25DegUpToFlatShared(
imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPieces25DegUpToFlat[direction][1]);
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 32, 1, 15 }, { 0, 27, height });
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 6, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -399,7 +399,7 @@ static void PaintGhostTrainStation(
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 7, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -410,7 +410,7 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_right_quarter_turn_3_tiles_paint(
TrackPaintUtilRightQuarterTurn3TilesPaint(
session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
GhostTrainTrackPiecesQuarterTurn3Tiles, nullptr, defaultRightQuarterTurn3TilesBoundLengths,
defaultRightQuarterTurn3TilesBoundOffsets);
@@ -418,7 +418,7 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles(
bool isDoorA = (!isBackwards && trackSequence == 0) || (isBackwards && trackSequence == 3);
auto tunnelType = isDoorA ? DoorOpeningInwardsToImage[trackElement.GetDoorAState()]
: DoorOpeningOutwardsToImage[trackElement.GetDoorBState()];
track_paint_util_right_quarter_turn_3_tiles_tunnel(session, height, direction, trackSequence, tunnelType);
TrackPaintUtilRightQuarterTurn3TilesTunnel(session, height, direction, trackSequence, tunnelType);
switch (trackSequence)
{
@@ -473,9 +473,9 @@ static void PaintGhostTrainTrackLeftQuarterTurn1Tile(
tunnelEndImage = DoorOpeningInwardsToImage[trackElement.GetDoorAState()];
}
track_paint_util_left_quarter_turn_1_tile_paint(
TrackPaintUtilLeftQuarterTurn1TilePaint(
session, 3, height, 0, direction, session.TrackColours[SCHEME_TRACK], GhostTrainTrackPiecesQuarterTurn1Tile);
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, tunnelStartImage, 0, tunnelEndImage);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, tunnelStartImage, 0, tunnelEndImage);
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
@@ -499,7 +499,7 @@ static void PaintGhostTrainTrackSpinningTunnel(
PaintAddImageAsParentRotated(session, direction, imageId, { 0, 0, height }, { 28, 20, 3 }, { 2, 6, height });
track_paint_util_spinning_tunnel_paint(session, 3, height, direction);
TrackPaintUtilSpinningTunnelPaint(session, 3, height, direction);
auto tunnelImage = GetTunnelDoorsImageStraightFlat(trackElement, direction);
PaintUtilPushTunnelRotated(session, direction, height, tunnelImage);
@@ -522,7 +522,7 @@ static void PaintGhostTrainTrackBrakes(
auto tunnelImage = GetTunnelDoorsImageStraightFlat(trackElement, direction);
PaintUtilPushTunnelRotated(session, direction, height, tunnelImage);
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
}
+2 -2
View File
@@ -72,9 +72,9 @@ static void PaintHauntedHouse(
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope,
session.CurrentRotation);
+2 -2
View File
@@ -110,9 +110,9 @@ static void PaintMerryGoRound(
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_MISC], height, fenceSpritesRope,
session.CurrentRotation);
+10 -10
View File
@@ -668,44 +668,44 @@ static void PaintMiniGolfStation(
if (direction & 1)
{
hasFence = track_paint_util_has_fence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NE, session.MapPosition, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceBackNwSe);
PaintAddImageAsParent(session, imageId, { -10, 0, height }, { 1, 32, 7 }, { 0, 0, height + 2 });
}
bool hasSWFence = track_paint_util_has_fence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation);
bool hasSWFence = TrackPaintUtilHasFence(EDGE_SW, session.MapPosition, trackElement, ride, session.CurrentRotation);
if (hasSWFence)
{
imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceFrontNwSe);
PaintAddImageAsParent(session, imageId, { 10, 0, height }, { 1, 32, 7 }, { 31, 0, height + 2 });
}
track_paint_util_draw_station_covers(session, EDGE_NE, hasFence, stationObj, height);
track_paint_util_draw_station_covers(session, EDGE_SW, hasSWFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_NE, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_SW, hasSWFence, stationObj, height);
// Was leftwards tunnel in game, seems odd
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
}
else
{
hasFence = track_paint_util_has_fence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation);
hasFence = TrackPaintUtilHasFence(EDGE_NW, session.MapPosition, trackElement, ride, session.CurrentRotation);
if (hasFence)
{
imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceBackSwNe);
PaintAddImageAsParent(session, imageId, { 0, -10, height }, { 32, 1, 7 }, { 0, 0, height + 2 });
}
bool hasSEFence = track_paint_util_has_fence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation);
bool hasSEFence = TrackPaintUtilHasFence(EDGE_SE, session.MapPosition, trackElement, ride, session.CurrentRotation);
if (hasSEFence)
{
imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprMiniGolfFlatFenceFrontSwNe);
PaintAddImageAsParent(session, imageId, { 0, 10, height }, { 32, 1, 7 }, { 0, 31, height + 2 });
}
track_paint_util_draw_station_covers(session, EDGE_NW, hasFence, stationObj, height);
track_paint_util_draw_station_covers(session, EDGE_SE, hasSEFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_NW, hasFence, stationObj, height);
TrackPaintUtilDrawStationCovers(session, EDGE_SE, hasSEFence, stationObj, height);
PaintUtilPushTunnelLeft(session, height, TUNNEL_SQUARE_FLAT);
}
@@ -723,7 +723,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
{
ImageId imageId;
track_paint_util_left_quarter_turn_1_tile_paint(
TrackPaintUtilLeftQuarterTurn1TilePaint(
session, 1, height, 0, direction, session.TrackColours[SCHEME_TRACK], MiniGolfTrackSpritesQuarterTurn1Tile);
MetalASupportsPaintSetup(session, METAL_SUPPORTS_BOXED, 4, 0, height, session.TrackColours[SCHEME_SUPPORTS]);
@@ -776,7 +776,7 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
if (shouldDrawFence)
{
// TODO: The back fence uses the same x/y offsets, but uses another paint function. See if this occurs more often.
track_paint_util_left_quarter_turn_1_tile_paint(
TrackPaintUtilLeftQuarterTurn1TilePaint(
session, 0, height, 24, direction, session.TrackColours[SCHEME_MISC],
MiniGolfTrackSpritesQuarterTurn1TileFenceFront);
+10 -10
View File
@@ -48,7 +48,7 @@ static void PaintMiniHelicoptersTrackStation(
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
}
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -74,7 +74,7 @@ static void PaintMiniHelicoptersTrackFlat(
PaintUtilPushTunnelLeft(session, height, TUNNEL_0);
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(
session, (direction & 1) ? METAL_SUPPORTS_STICK_ALT : METAL_SUPPORTS_STICK, 4, -1, height,
@@ -121,7 +121,7 @@ static void PaintMiniHelicoptersTrackFlatTo25DegUp(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_STICK, 4, -4, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -162,7 +162,7 @@ static void PaintMiniHelicoptersTrack25DegUp(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_STICK, 4, -9, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -207,7 +207,7 @@ static void PaintMiniHelicoptersTrack25DegUpToFlat(
break;
}
if (track_paint_util_should_paint_supports(session.MapPosition))
if (TrackPaintUtilShouldPaintSupports(session.MapPosition))
{
MetalASupportsPaintSetup(session, METAL_SUPPORTS_STICK, 4, -7, height, session.TrackColours[SCHEME_SUPPORTS]);
}
@@ -246,10 +246,10 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_left_quarter_turn_3_tiles_paint(
TrackPaintUtilLeftQuarterTurn3TilesPaint(
session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
trackSpritesSubmarineRideMiniHelicoptersQuarterTurn3Tiles);
track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height, TUNNEL_0, direction, trackSequence);
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_0, direction, trackSequence);
switch (trackSequence)
{
@@ -293,10 +293,10 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_left_quarter_turn_1_tile_paint(
TrackPaintUtilLeftQuarterTurn1TilePaint(
session, 1, height, 0, direction, session.TrackColours[SCHEME_TRACK],
trackSpritesSubmarineRideMiniHelicoptersQuarterTurn1Tile);
track_paint_util_left_quarter_turn_1_tile_tunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
TrackPaintUtilLeftQuarterTurn1TileTunnel(session, direction, height, 0, TUNNEL_0, 0, TUNNEL_0);
PaintUtilSetSegmentSupportHeight(
session, PaintUtilRotateSegments(SEGMENT_B8 | SEGMENT_C8 | SEGMENT_C4 | SEGMENT_D0, direction), 0xFFFF, 0);
@@ -327,7 +327,7 @@ static void PaintMiniHelicoptersTrackSpinningTunnel(
PaintAddImageAsParentRotated(session, direction, underlay, { 0, 6, height - 2 }, { 32, 20, 1 }, { 0, 6, height });
PaintAddImageAsChildRotated(session, direction, imageId, { 0, 0, height }, { 32, 20, 3 }, { 0, 6, height });
track_paint_util_spinning_tunnel_paint(session, 1, height, direction);
TrackPaintUtilSpinningTunnelPaint(session, 1, height, direction);
PaintUtilPushTunnelRotated(session, direction, height, TUNNEL_0);
WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_MISC]);
+4 -4
View File
@@ -235,7 +235,7 @@ static void PaintMonorailCyclesStation(
PaintUtilPushTunnelRight(session, height, TUNNEL_SQUARE_FLAT);
}
track_paint_util_draw_station(session, ride, direction, height, trackElement);
TrackPaintUtilDrawStation(session, ride, direction, height, trackElement);
PaintUtilSetSegmentSupportHeight(session, SEGMENTS_ALL, 0xFFFF, 0);
PaintUtilSetGeneralSupportHeight(session, height + 32, 0x20);
@@ -246,10 +246,10 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_left_quarter_turn_3_tiles_paint(
TrackPaintUtilLeftQuarterTurn3TilesPaint(
session, 3, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
MonorailCyclesTrackPiecesFlatQuarterTurn3Tiles);
track_paint_util_left_quarter_turn_3_tiles_tunnel(session, height, TUNNEL_0, direction, trackSequence);
TrackPaintUtilLeftQuarterTurn3TilesTunnel(session, height, TUNNEL_0, direction, trackSequence);
switch (trackSequence)
{
@@ -307,7 +307,7 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles(
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
const TrackElement& trackElement)
{
track_paint_util_right_quarter_turn_5_tiles_paint(
TrackPaintUtilRightQuarterTurn5TilesPaint(
session, 1, height, direction, trackSequence, session.TrackColours[SCHEME_TRACK],
MonorailCyclesTrackPiecesFlatQuarterTurn5Tiles, nullptr, defaultRightQuarterTurn5TilesBoundLengths,
defaultRightQuarterTurn5TilesBoundOffsets);
@@ -92,10 +92,9 @@ static void PaintObservationTowerBase(
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(
session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetalB, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_SUPPORTS], height, floorSpritesMetalB, stationObject);
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, position, trackElement, ride, session.TrackColours[SCHEME_TRACK], height, fenceSpritesMetalB,
session.CurrentRotation);
+4 -4
View File
@@ -98,24 +98,24 @@ static void PaintSpaceRings(
WoodenASupportsPaintSetup(session, (direction & 1), 0, height, session.TrackColours[SCHEME_MISC]);
const StationObject* stationObject = ride.GetStationObject();
track_paint_util_paint_floor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
TrackPaintUtilPaintFloor(session, edges, session.TrackColours[SCHEME_TRACK], height, floorSpritesCork, stationObject);
switch (trackSequence)
{
case 7:
if (track_paint_util_has_fence(EDGE_SW, position, trackElement, ride, session.CurrentRotation))
if (TrackPaintUtilHasFence(EDGE_SW, position, trackElement, ride, session.CurrentRotation))
{
imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprSpaceRingsFenceSw);
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 1, 28, 7 }, { 29, 0, height + 2 });
}
if (track_paint_util_has_fence(EDGE_SE, position, trackElement, ride, session.CurrentRotation))
if (TrackPaintUtilHasFence(EDGE_SE, position, trackElement, ride, session.CurrentRotation))
{
imageId = session.TrackColours[SCHEME_MISC].WithIndex(SprSpaceRingsFenceSe);
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 28, 1, 7 }, { 0, 29, height + 2 });
}
break;
default:
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, position, trackElement, ride, session.TrackColours[SCHEME_MISC], height, SpaceRingsFenceSprites,
session.CurrentRotation);
break;
+1 -1
View File
@@ -224,7 +224,7 @@ static void PaintSpiralSlide(
rideEntry->Cars[0].base_image_id + SpiralSlideFenceTopLeft,
};
track_paint_util_paint_fences(
TrackPaintUtilPaintFences(
session, edges, session.MapPosition, trackElement, ride, session.TrackColours[SCHEME_TRACK], height,
spiral_slide_fence_sprites, session.CurrentRotation);
+1 -1
View File
@@ -41,7 +41,7 @@ constexpr const RideTypeDescriptor CarRideRTD =
SET_FIELD(Heights, { 6, 24, 4, 7, }),
SET_FIELD(MaxMass, 2),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_car_ride),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCarRide),
SET_FIELD(RatingsMultipliers, { 70, 10, 10 }),
SET_FIELD(UpkeepCosts, { 70, 20, 0, 8, 3, 5 }),
SET_FIELD(BuildCosts, { 12.50_GBP, 2.50_GBP, 30, }),
+1 -1
View File
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor CircusRTD =
SET_FIELD(Heights, { 12, 128, 3, 2, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_circus),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCircus),
SET_FIELD(RatingsMultipliers, { 20, 10, 0 }),
SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }),
SET_FIELD(BuildCosts, { 62.50_GBP, 1.00_GBP, 1, }),
+1 -1
View File
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor CrookedHouseRTD =
SET_FIELD(Heights, { 16, 96, 3, 2, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_crooked_house),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateCrookedHouse),
SET_FIELD(RatingsMultipliers, { 15, 8, 0 }),
SET_FIELD(UpkeepCosts, { 30, 1, 0, 0, 0, 0 }),
SET_FIELD(BuildCosts, { 32.50_GBP, 1.00_GBP, 1, }),
+1 -1
View File
@@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor DodgemsRTD =
SET_FIELD(Heights, { 9, 48, 2, 2, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_dodgems),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateDodgems),
SET_FIELD(RatingsMultipliers, { 40, 20, 0 }),
SET_FIELD(UpkeepCosts, { 50, 1, 0, 5, 0, 0 }),
SET_FIELD(BuildCosts, { 27.50_GBP, 1.00_GBP, 1, }),
+1 -1
View File
@@ -38,7 +38,7 @@ constexpr const RideTypeDescriptor FerrisWheelRTD =
SET_FIELD(Heights, { 16, 176, 3, 2, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_ferris_wheel),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFerrisWheel),
SET_FIELD(RatingsMultipliers, { 60, 20, 10 }),
SET_FIELD(UpkeepCosts, { 50, 1, 0, 0, 0, 0 }),
SET_FIELD(BuildCosts, { 112.50_GBP, 1.00_GBP, 1, }),
@@ -39,7 +39,7 @@ constexpr const RideTypeDescriptor FlyingSaucersRTD =
SET_FIELD(Heights, { 9, 48, 2, 2, }),
SET_FIELD(MaxMass, 255),
SET_FIELD(LiftData, { OpenRCT2::Audio::SoundId::Null, 5, 5 }),
SET_FIELD(RatingsCalculationFunction, ride_ratings_calculate_flying_saucers),
SET_FIELD(RatingsCalculationFunction, RideRatingsCalculateFlyingSaucers),
SET_FIELD(RatingsMultipliers, { 50, 25, 0 }),
SET_FIELD(UpkeepCosts, { 90, 1, 0, 5, 0, 0 }),
SET_FIELD(BuildCosts, { 35.00_GBP, 2.00_GBP, 1, }),
Loaded 100 of 166 files, more files were not shown because too many files have changed in this diff. Show more