forked from rosebudai/OpenRCT2-Web
Code style: Remove struct snakes from Paint (#18341)
This commit is contained in:
1 parent
d415a5bd10
commit
c80bd455e9
124 files changed
+3776
-3779
No files matched your search
@@ -2628,7 +2628,7 @@ private:
|
||||
TileElement tempSideTrackTileElement{ 0x80, 0x8F, 128, 128, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 };
|
||||
TileElement tempTrackTileElement{};
|
||||
TileElement* backupTileElementArrays[5]{};
|
||||
paint_session* session = PaintSessionAlloc(dpi, 0);
|
||||
PaintSession* session = PaintSessionAlloc(dpi, 0);
|
||||
trackDirection &= 3;
|
||||
|
||||
auto currentRide = get_ride(rideIndex);
|
||||
|
||||
@@ -43,25 +43,25 @@ static void fixup_pointers(std::vector<RecordedPaintSession>& s)
|
||||
auto& quadrants = s[i].Session.Quadrants;
|
||||
for (size_t j = 0; j < entries.size(); j++)
|
||||
{
|
||||
if (entries[j].AsBasic()->next_quadrant_ps == reinterpret_cast<paint_struct*>(-1))
|
||||
if (entries[j].AsBasic()->next_quadrant_ps == reinterpret_cast<PaintStruct*>(-1))
|
||||
{
|
||||
entries[j].AsBasic()->next_quadrant_ps = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
auto nextQuadrantPs = reinterpret_cast<size_t>(entries[j].AsBasic()->next_quadrant_ps) / sizeof(paint_entry);
|
||||
auto nextQuadrantPs = reinterpret_cast<size_t>(entries[j].AsBasic()->next_quadrant_ps) / sizeof(PaintEntry);
|
||||
entries[j].AsBasic()->next_quadrant_ps = s[i].Entries[nextQuadrantPs].AsBasic();
|
||||
}
|
||||
}
|
||||
for (size_t j = 0; j < std::size(quadrants); j++)
|
||||
{
|
||||
if (quadrants[j] == reinterpret_cast<paint_struct*>(-1))
|
||||
if (quadrants[j] == reinterpret_cast<PaintStruct*>(-1))
|
||||
{
|
||||
quadrants[j] = nullptr;
|
||||
}
|
||||
else
|
||||
{
|
||||
auto ps = reinterpret_cast<size_t>(quadrants[j]) / sizeof(paint_entry);
|
||||
auto ps = reinterpret_cast<size_t>(quadrants[j]) / sizeof(PaintEntry);
|
||||
quadrants[j] = entries[ps].AsBasic();
|
||||
}
|
||||
}
|
||||
@@ -160,11 +160,11 @@ static int cmdline_for_bench_sprite_sort(int argc, const char** argv)
|
||||
std::vector<RecordedPaintSession> sessions(1);
|
||||
for (auto& ps : sessions[0].Entries)
|
||||
{
|
||||
ps.AsBasic()->next_quadrant_ps = reinterpret_cast<paint_struct*>(-1);
|
||||
ps.AsBasic()->next_quadrant_ps = reinterpret_cast<PaintStruct*>(-1);
|
||||
}
|
||||
for (auto& quad : sessions[0].Session.Quadrants)
|
||||
{
|
||||
quad = reinterpret_cast<paint_struct*>(-1);
|
||||
quad = reinterpret_cast<PaintStruct*>(-1);
|
||||
}
|
||||
benchmark::RegisterBenchmark("baseline", BM_paint_session_arrange, sessions);
|
||||
}
|
||||
|
||||
@@ -571,7 +571,7 @@ void scrolling_text_invalidate();
|
||||
class Formatter;
|
||||
|
||||
ImageId scrolling_text_setup(
|
||||
struct paint_session& session, StringId stringId, Formatter& ft, uint16_t scroll, uint16_t scrollingMode, colour_t colour);
|
||||
struct PaintSession& session, StringId stringId, Formatter& ft, uint16_t scroll, uint16_t scrollingMode, colour_t colour);
|
||||
|
||||
size_t g1_calculate_data_size(const rct_g1_element* g1);
|
||||
|
||||
|
||||
@@ -305,7 +305,7 @@ void lightfx_prepare_light_list()
|
||||
dpi.zoom_level = _current_view_zoom_front;
|
||||
dpi.width = 1;
|
||||
|
||||
paint_session* session = PaintSessionAlloc(&dpi, w->viewport->flags);
|
||||
PaintSession* session = PaintSessionAlloc(&dpi, w->viewport->flags);
|
||||
PaintSessionGenerate(*session);
|
||||
PaintSessionArrange(*session);
|
||||
auto info = set_interaction_info_from_paint_session(
|
||||
|
||||
@@ -1445,7 +1445,7 @@ void scrolling_text_invalidate()
|
||||
}
|
||||
|
||||
ImageId scrolling_text_setup(
|
||||
paint_session& session, StringId stringId, Formatter& ft, uint16_t scroll, uint16_t scrollingMode, colour_t colour)
|
||||
PaintSession& session, StringId stringId, Formatter& ft, uint16_t scroll, uint16_t scrollingMode, colour_t colour)
|
||||
{
|
||||
std::scoped_lock<std::mutex> lock(_scrollingTextMutex);
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ void Balloon::Serialise(DataSerialiser& stream)
|
||||
stream << colour;
|
||||
}
|
||||
|
||||
void Balloon::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void Balloon::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
class DataSerialiser;
|
||||
struct CoordsXYZ;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
struct Balloon : EntityBase
|
||||
{
|
||||
@@ -27,5 +27,5 @@ struct Balloon : EntityBase
|
||||
void Pop();
|
||||
void Press();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
@@ -365,7 +365,7 @@ void Duck::Serialise(DataSerialiser& stream)
|
||||
stream << state;
|
||||
}
|
||||
|
||||
void Duck::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void Duck::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
class DataSerialiser;
|
||||
struct CoordsXY;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
struct Duck : EntityBase
|
||||
{
|
||||
@@ -39,7 +39,7 @@ struct Duck : EntityBase
|
||||
bool IsFlying();
|
||||
void Remove();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
|
||||
private:
|
||||
void UpdateFlyToWater();
|
||||
|
||||
@@ -395,7 +395,7 @@ void JumpingFountain::Serialise(DataSerialiser& stream)
|
||||
stream << Iteration;
|
||||
}
|
||||
|
||||
void JumpingFountain::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void JumpingFountain::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ struct JumpingFountain : EntityBase
|
||||
void Update();
|
||||
static void StartAnimation(JumpingFountainType newType, const CoordsXY& newLoc, const TileElement* tileElement);
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
|
||||
private:
|
||||
JumpingFountainType GetType() const;
|
||||
|
||||
@@ -5065,7 +5065,7 @@ void Guest::UpdateRideShopLeave()
|
||||
return;
|
||||
}
|
||||
|
||||
//#11758 Previously SetState(PeepState::Walking) caused Peeps to double-back to exit point of shop
|
||||
// #11758 Previously SetState(PeepState::Walking) caused Peeps to double-back to exit point of shop
|
||||
SetState(PeepState::Falling);
|
||||
|
||||
auto ride = get_ride(CurrentRide);
|
||||
|
||||
@@ -170,7 +170,7 @@ static constexpr const LitterSprite _litterSprites[] = {
|
||||
{ SPR_LITTER_EMPTY_BOWL_BLUE, 0x3 },
|
||||
};
|
||||
|
||||
void Litter::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void Litter::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
class DataSerialiser;
|
||||
struct CoordsXYZ;
|
||||
struct CoordsXYZD;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
struct Litter : EntityBase
|
||||
{
|
||||
@@ -42,5 +42,5 @@ struct Litter : EntityBase
|
||||
void Serialise(DataSerialiser& stream);
|
||||
StringId GetName() const;
|
||||
uint32_t GetAge() const;
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
@@ -167,7 +167,7 @@ void MoneyEffect::Serialise(DataSerialiser& stream)
|
||||
stream << Wiggle;
|
||||
}
|
||||
|
||||
void MoneyEffect::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void MoneyEffect::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
class DataSerialiser;
|
||||
struct CoordsXYZ;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
struct MoneyEffect : EntityBase
|
||||
{
|
||||
@@ -32,5 +32,5 @@ struct MoneyEffect : EntityBase
|
||||
void Update();
|
||||
std::pair<StringId, money64> GetStringId() const;
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
@@ -151,7 +151,7 @@ void VehicleCrashParticle::Serialise(DataSerialiser& stream)
|
||||
stream << acceleration_z;
|
||||
}
|
||||
|
||||
void VehicleCrashParticle::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void VehicleCrashParticle::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -203,7 +203,7 @@ void CrashSplashParticle::Serialise(DataSerialiser& stream)
|
||||
stream << frame;
|
||||
}
|
||||
|
||||
void CrashSplashParticle::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void CrashSplashParticle::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -262,7 +262,7 @@ void SteamParticle::Serialise(DataSerialiser& stream)
|
||||
stream << time_to_move;
|
||||
}
|
||||
|
||||
void SteamParticle::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void SteamParticle::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -308,7 +308,7 @@ void ExplosionCloud::Serialise(DataSerialiser& stream)
|
||||
stream << frame;
|
||||
}
|
||||
|
||||
void ExplosionCloud::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void ExplosionCloud::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -353,7 +353,7 @@ void ExplosionFlare::Serialise(DataSerialiser& stream)
|
||||
stream << frame;
|
||||
}
|
||||
|
||||
void ExplosionFlare::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void ExplosionFlare::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -13,7 +13,7 @@
|
||||
|
||||
class DataSerialiser;
|
||||
struct CoordsXYZ;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
struct VehicleColour;
|
||||
|
||||
struct VehicleCrashParticle : EntityBase
|
||||
@@ -32,7 +32,7 @@ struct VehicleCrashParticle : EntityBase
|
||||
static void Create(VehicleColour& colours, const CoordsXYZ& vehiclePos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
|
||||
struct CrashSplashParticle : EntityBase
|
||||
@@ -42,7 +42,7 @@ struct CrashSplashParticle : EntityBase
|
||||
static void Create(const CoordsXYZ& splashPos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
|
||||
struct ExplosionFlare : EntityBase
|
||||
@@ -52,7 +52,7 @@ struct ExplosionFlare : EntityBase
|
||||
static void Create(const CoordsXYZ& flarePos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
|
||||
struct ExplosionCloud : EntityBase
|
||||
@@ -62,7 +62,7 @@ struct ExplosionCloud : EntityBase
|
||||
static void Create(const CoordsXYZ& cloudPos);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
|
||||
struct SteamParticle : EntityBase
|
||||
@@ -74,5 +74,5 @@ struct SteamParticle : EntityBase
|
||||
static void Create(const CoordsXYZ& coords);
|
||||
void Update();
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
};
|
||||
@@ -2761,7 +2761,7 @@ void Peep::Serialise(DataSerialiser& stream)
|
||||
stream << PeepFlags;
|
||||
}
|
||||
|
||||
void Peep::Paint(paint_session& session, int32_t imageDirection) const
|
||||
void Peep::Paint(PaintSession& session, int32_t imageDirection) const
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -29,7 +29,7 @@ constexpr auto PEEP_CLEARANCE_HEIGHT = 4 * COORDS_Z_STEP;
|
||||
|
||||
class Formatter;
|
||||
struct TileElement;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
namespace GameActions
|
||||
{
|
||||
@@ -407,7 +407,7 @@ public: // Peep
|
||||
[[nodiscard]] CoordsXY GetDestination() const;
|
||||
|
||||
void Serialise(class DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
|
||||
// TODO: Make these private again when done refactoring
|
||||
public: // Peep
|
||||
|
||||
@@ -53,17 +53,17 @@ static std::list<rct_viewport> _viewports;
|
||||
rct_viewport* g_music_tracking_viewport;
|
||||
|
||||
static std::unique_ptr<JobPool> _paintJobs;
|
||||
static std::vector<paint_session*> _paintColumns;
|
||||
static std::vector<PaintSession*> _paintColumns;
|
||||
|
||||
ScreenCoordsXY gSavedView;
|
||||
ZoomLevel gSavedViewZoom;
|
||||
uint8_t gSavedViewRotation;
|
||||
|
||||
paint_entry* gNextFreePaintStruct;
|
||||
PaintEntry* gNextFreePaintStruct;
|
||||
uint8_t gCurrentRotation;
|
||||
|
||||
static uint32_t _currentImageType;
|
||||
InteractionInfo::InteractionInfo(const paint_struct* ps)
|
||||
InteractionInfo::InteractionInfo(const PaintStruct* ps)
|
||||
: Loc(ps->map_x, ps->map_y)
|
||||
, Element(ps->tileElement)
|
||||
, Entity(ps->entity)
|
||||
@@ -842,7 +842,7 @@ void viewport_render(
|
||||
}
|
||||
|
||||
static void record_session(
|
||||
const paint_session& session, std::vector<RecordedPaintSession>* recorded_sessions, size_t record_index)
|
||||
const PaintSession& session, std::vector<RecordedPaintSession>* recorded_sessions, size_t record_index)
|
||||
{
|
||||
// Perform a deep copy of the paint session, use relative offsets.
|
||||
// This is done to extract the session for benchmark.
|
||||
@@ -853,7 +853,7 @@ static void record_session(
|
||||
recordedSession.Entries.resize(session.PaintEntryChain.GetCount());
|
||||
|
||||
// Mind the offset needs to be calculated against the original `session`, not `session_copy`
|
||||
std::unordered_map<paint_struct*, paint_struct*> entryRemap;
|
||||
std::unordered_map<PaintStruct*, PaintStruct*> entryRemap;
|
||||
|
||||
// Copy all entries
|
||||
auto paintIndex = 0;
|
||||
@@ -865,11 +865,11 @@ static void record_session(
|
||||
auto& src = chain->PaintStructs[i];
|
||||
auto& dst = recordedSession.Entries[paintIndex++];
|
||||
dst = src;
|
||||
entryRemap[src.AsBasic()] = reinterpret_cast<paint_struct*>(i * sizeof(paint_entry));
|
||||
entryRemap[src.AsBasic()] = reinterpret_cast<PaintStruct*>(i * sizeof(PaintEntry));
|
||||
}
|
||||
chain = chain->Next;
|
||||
}
|
||||
entryRemap[nullptr] = reinterpret_cast<paint_struct*>(-1);
|
||||
entryRemap[nullptr] = reinterpret_cast<PaintStruct*>(-1);
|
||||
|
||||
// Remap all entries
|
||||
for (auto& ps : recordedSession.Entries)
|
||||
@@ -902,7 +902,7 @@ static void record_session(
|
||||
}
|
||||
|
||||
static void viewport_fill_column(
|
||||
paint_session& session, std::vector<RecordedPaintSession>* recorded_sessions, size_t record_index)
|
||||
PaintSession& session, std::vector<RecordedPaintSession>* recorded_sessions, size_t record_index)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -914,7 +914,7 @@ static void viewport_fill_column(
|
||||
PaintSessionArrange(session);
|
||||
}
|
||||
|
||||
static void viewport_paint_column(paint_session& session)
|
||||
static void viewport_paint_column(PaintSession& session)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -1027,7 +1027,7 @@ void viewport_paint(
|
||||
// Generate and sort columns.
|
||||
for (x = alignedX; x < rightBorder; x += 32, index++)
|
||||
{
|
||||
paint_session* session = PaintSessionAlloc(&dpi1, viewFlags);
|
||||
PaintSession* session = PaintSessionAlloc(&dpi1, viewFlags);
|
||||
_paintColumns.push_back(session);
|
||||
|
||||
rct_drawpixelinfo& dpi2 = session->DPI;
|
||||
@@ -1404,7 +1404,7 @@ static bool IsTileElementVegetation(const TileElement* tileElement)
|
||||
return false;
|
||||
}
|
||||
|
||||
VisibilityKind GetPaintStructVisibility(const paint_struct* ps, uint32_t viewFlags)
|
||||
VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, uint32_t viewFlags)
|
||||
{
|
||||
switch (ps->sprite_type)
|
||||
{
|
||||
@@ -1484,9 +1484,9 @@ VisibilityKind GetPaintStructVisibility(const paint_struct* ps, uint32_t viewFla
|
||||
}
|
||||
|
||||
/**
|
||||
* Checks if a paint_struct sprite type is in the filter mask.
|
||||
* Checks if a PaintStruct sprite type is in the filter mask.
|
||||
*/
|
||||
static bool PSSpriteTypeIsInFilter(paint_struct* ps, uint16_t filter)
|
||||
static bool PSSpriteTypeIsInFilter(PaintStruct* ps, uint16_t filter)
|
||||
{
|
||||
if (ps->sprite_type != ViewportInteractionItem::None && ps->sprite_type != ViewportInteractionItem::Label
|
||||
&& ps->sprite_type <= ViewportInteractionItem::Banner)
|
||||
@@ -1804,18 +1804,18 @@ static bool is_sprite_interacted_with(rct_drawpixelinfo* dpi, ImageId imageId, c
|
||||
*
|
||||
* rct2: 0x0068862C
|
||||
*/
|
||||
InteractionInfo set_interaction_info_from_paint_session(paint_session* session, uint32_t viewFlags, uint16_t filter)
|
||||
InteractionInfo set_interaction_info_from_paint_session(PaintSession* session, uint32_t viewFlags, uint16_t filter)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
paint_struct* ps = &session->PaintHead;
|
||||
PaintStruct* ps = &session->PaintHead;
|
||||
rct_drawpixelinfo* dpi = &session->DPI;
|
||||
InteractionInfo info{};
|
||||
|
||||
while ((ps = ps->next_quadrant_ps) != nullptr)
|
||||
{
|
||||
paint_struct* old_ps = ps;
|
||||
paint_struct* next_ps = ps;
|
||||
PaintStruct* old_ps = ps;
|
||||
PaintStruct* next_ps = ps;
|
||||
while (next_ps != nullptr)
|
||||
{
|
||||
ps = next_ps;
|
||||
@@ -1831,7 +1831,7 @@ InteractionInfo set_interaction_info_from_paint_session(paint_session* session,
|
||||
|
||||
#pragma GCC diagnostic push
|
||||
#pragma GCC diagnostic ignored "-Wnull-dereference"
|
||||
for (attached_paint_struct* attached_ps = ps->attached_ps; attached_ps != nullptr; attached_ps = attached_ps->next)
|
||||
for (AttachedPaintStruct* attached_ps = ps->attached_ps; attached_ps != nullptr; attached_ps = attached_ps->next)
|
||||
{
|
||||
if (is_sprite_interacted_with(dpi, attached_ps->image_id, { (attached_ps->x + ps->x), (attached_ps->y + ps->y) }))
|
||||
{
|
||||
@@ -1895,7 +1895,7 @@ InteractionInfo get_map_coordinates_from_pos_window(rct_window* window, const Sc
|
||||
dpi.zoom_level = myviewport->zoom;
|
||||
dpi.width = 1;
|
||||
|
||||
paint_session* session = PaintSessionAlloc(&dpi, myviewport->flags);
|
||||
PaintSession* session = PaintSessionAlloc(&dpi, myviewport->flags);
|
||||
PaintSessionGenerate(*session);
|
||||
PaintSessionArrange(*session);
|
||||
info = set_interaction_info_from_paint_session(session, myviewport->flags, flags & 0xFFFF);
|
||||
|
||||
@@ -16,16 +16,16 @@
|
||||
#include <optional>
|
||||
#include <vector>
|
||||
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
struct RecordedPaintSession;
|
||||
struct paint_struct;
|
||||
struct PaintStruct;
|
||||
struct rct_drawpixelinfo;
|
||||
struct TileElement;
|
||||
struct rct_window;
|
||||
struct EntityBase;
|
||||
struct Guest;
|
||||
struct Staff;
|
||||
struct paint_entry;
|
||||
struct PaintEntry;
|
||||
|
||||
// Flags must currenly retain their values to avoid breaking plugins.
|
||||
// Values can be changed when plugins move to using named constants.
|
||||
@@ -94,7 +94,7 @@ constexpr uint16_t ViewportInteractionItemAll = std::numeric_limits<uint16_t>::m
|
||||
struct InteractionInfo
|
||||
{
|
||||
InteractionInfo() = default;
|
||||
InteractionInfo(const paint_struct* ps);
|
||||
InteractionInfo(const PaintStruct* ps);
|
||||
CoordsXY Loc;
|
||||
TileElement* Element{};
|
||||
EntityBase* Entity{};
|
||||
@@ -117,7 +117,7 @@ extern ScreenCoordsXY gSavedView;
|
||||
extern ZoomLevel gSavedViewZoom;
|
||||
extern uint8_t gSavedViewRotation;
|
||||
|
||||
extern paint_entry* gNextFreePaintStruct;
|
||||
extern PaintEntry* gNextFreePaintStruct;
|
||||
extern uint8_t gCurrentRotation;
|
||||
|
||||
void viewport_init_all();
|
||||
@@ -154,7 +154,7 @@ void viewport_set_visibility(uint8_t mode);
|
||||
InteractionInfo get_map_coordinates_from_pos(const ScreenCoordsXY& screenCoords, int32_t flags);
|
||||
InteractionInfo get_map_coordinates_from_pos_window(rct_window* window, const ScreenCoordsXY& screenCoords, int32_t flags);
|
||||
|
||||
InteractionInfo set_interaction_info_from_paint_session(paint_session* session, uint32_t viewFlags, uint16_t filter);
|
||||
InteractionInfo set_interaction_info_from_paint_session(PaintSession* session, uint32_t viewFlags, uint16_t filter);
|
||||
InteractionInfo ViewportInteractionGetItemLeft(const ScreenCoordsXY& screenCoords);
|
||||
bool ViewportInteractionLeftOver(const ScreenCoordsXY& screenCoords);
|
||||
bool ViewportInteractionLeftClick(const ScreenCoordsXY& screenCoords);
|
||||
@@ -178,4 +178,4 @@ int32_t get_height_marker_offset();
|
||||
|
||||
void viewport_set_saved_view();
|
||||
|
||||
VisibilityKind GetPaintStructVisibility(const paint_struct* ps, uint32_t viewFlags);
|
||||
VisibilityKind GetPaintStructVisibility(const PaintStruct* ps, uint32_t viewFlags);
|
||||
@@ -34,7 +34,7 @@
|
||||
* Paint Quadrant
|
||||
* rct2: 0x0069E8B0
|
||||
*/
|
||||
void EntityPaintSetup(paint_session& session, const CoordsXY& pos)
|
||||
void EntityPaintSetup(PaintSession& session, const CoordsXY& pos)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -9,7 +9,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
struct CoordsXY;
|
||||
|
||||
void EntityPaintSetup(paint_session& session, const CoordsXY& pos);
|
||||
void EntityPaintSetup(PaintSession& session, const CoordsXY& pos);
|
||||
@@ -55,11 +55,11 @@ bool gShowDirtyVisuals;
|
||||
bool gPaintBoundingBoxes;
|
||||
bool gPaintBlockedTiles;
|
||||
|
||||
static void PaintAttachedPS(rct_drawpixelinfo* dpi, paint_struct* ps, uint32_t viewFlags);
|
||||
static void PaintPSImageWithBoundingBoxes(rct_drawpixelinfo* dpi, paint_struct* ps, ImageId imageId, int32_t x, int32_t y);
|
||||
static ImageId PaintPSColourifyImage(const paint_struct* ps, ImageId imageId, uint32_t viewFlags);
|
||||
static void PaintAttachedPS(rct_drawpixelinfo* dpi, PaintStruct* ps, uint32_t viewFlags);
|
||||
static void PaintPSImageWithBoundingBoxes(rct_drawpixelinfo* dpi, PaintStruct* ps, ImageId imageId, int32_t x, int32_t y);
|
||||
static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, uint32_t viewFlags);
|
||||
|
||||
static int32_t RemapPositionToQuadrant(const paint_struct& ps, uint8_t rotation)
|
||||
static int32_t RemapPositionToQuadrant(const PaintStruct& ps, uint8_t rotation)
|
||||
{
|
||||
constexpr auto MapRangeMax = MaxPaintQuadrants * COORDS_XY_STEP;
|
||||
constexpr auto MapRangeCenter = MapRangeMax / 2;
|
||||
@@ -85,7 +85,7 @@ static int32_t RemapPositionToQuadrant(const paint_struct& ps, uint8_t rotation)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static void PaintSessionAddPSToQuadrant(paint_session& session, paint_struct* ps)
|
||||
static void PaintSessionAddPSToQuadrant(PaintSession& session, PaintStruct* ps)
|
||||
{
|
||||
const auto positionHash = RemapPositionToQuadrant(*ps, session.CurrentRotation);
|
||||
|
||||
@@ -148,8 +148,8 @@ static constexpr CoordsXYZ RotateBoundBoxSize(const CoordsXYZ& bbSize, const uin
|
||||
/**
|
||||
* Extracted from 0x0098196c, 0x0098197c, 0x0098198c, 0x0098199c
|
||||
*/
|
||||
static paint_struct* CreateNormalPaintStruct(
|
||||
paint_session& session, ImageId image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
static PaintStruct* CreateNormalPaintStruct(
|
||||
PaintSession& session, ImageId image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
{
|
||||
auto* const g1 = gfx_get_g1_element(image_id);
|
||||
if (g1 == nullptr)
|
||||
@@ -197,7 +197,7 @@ static paint_struct* CreateNormalPaintStruct(
|
||||
return ps;
|
||||
}
|
||||
|
||||
template<uint8_t direction> void PaintSessionGenerateRotate(paint_session& session)
|
||||
template<uint8_t direction> void PaintSessionGenerateRotate(PaintSession& session)
|
||||
{
|
||||
// Optimised modified version of viewport_coord_to_map_coord
|
||||
ScreenCoordsXY screenCoord = { floor2(session.DPI.x, 32), floor2((session.DPI.y - 16), 32) };
|
||||
@@ -243,7 +243,7 @@ template<uint8_t direction> void PaintSessionGenerateRotate(paint_session& sessi
|
||||
*
|
||||
* rct2: 0x0068B6C2
|
||||
*/
|
||||
void PaintSessionGenerate(paint_session& session)
|
||||
void PaintSessionGenerate(PaintSession& session)
|
||||
{
|
||||
session.CurrentRotation = get_current_rotation();
|
||||
switch (DirectionFlipXAxis(session.CurrentRotation))
|
||||
@@ -263,13 +263,12 @@ void PaintSessionGenerate(paint_session& session)
|
||||
}
|
||||
}
|
||||
|
||||
template<uint8_t>
|
||||
static bool CheckBoundingBox(const paint_struct_bound_box& initialBBox, const paint_struct_bound_box& currentBBox)
|
||||
template<uint8_t> static bool CheckBoundingBox(const PaintStructBoundBox& initialBBox, const PaintStructBoundBox& currentBBox)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
template<> bool CheckBoundingBox<0>(const paint_struct_bound_box& initialBBox, const paint_struct_bound_box& currentBBox)
|
||||
template<> bool CheckBoundingBox<0>(const PaintStructBoundBox& initialBBox, const PaintStructBoundBox& currentBBox)
|
||||
{
|
||||
if (initialBBox.z_end >= currentBBox.z && initialBBox.y_end >= currentBBox.y && initialBBox.x_end >= currentBBox.x
|
||||
&& !(initialBBox.z < currentBBox.z_end && initialBBox.y < currentBBox.y_end && initialBBox.x < currentBBox.x_end))
|
||||
@@ -279,7 +278,7 @@ template<> bool CheckBoundingBox<0>(const paint_struct_bound_box& initialBBox, c
|
||||
return false;
|
||||
}
|
||||
|
||||
template<> bool CheckBoundingBox<1>(const paint_struct_bound_box& initialBBox, const paint_struct_bound_box& currentBBox)
|
||||
template<> bool CheckBoundingBox<1>(const PaintStructBoundBox& initialBBox, const PaintStructBoundBox& currentBBox)
|
||||
{
|
||||
if (initialBBox.z_end >= currentBBox.z && initialBBox.y_end >= currentBBox.y && initialBBox.x_end < currentBBox.x
|
||||
&& !(initialBBox.z < currentBBox.z_end && initialBBox.y < currentBBox.y_end && initialBBox.x >= currentBBox.x_end))
|
||||
@@ -289,7 +288,7 @@ template<> bool CheckBoundingBox<1>(const paint_struct_bound_box& initialBBox, c
|
||||
return false;
|
||||
}
|
||||
|
||||
template<> bool CheckBoundingBox<2>(const paint_struct_bound_box& initialBBox, const paint_struct_bound_box& currentBBox)
|
||||
template<> bool CheckBoundingBox<2>(const PaintStructBoundBox& initialBBox, const PaintStructBoundBox& currentBBox)
|
||||
{
|
||||
if (initialBBox.z_end >= currentBBox.z && initialBBox.y_end < currentBBox.y && initialBBox.x_end < currentBBox.x
|
||||
&& !(initialBBox.z < currentBBox.z_end && initialBBox.y >= currentBBox.y_end && initialBBox.x >= currentBBox.x_end))
|
||||
@@ -299,7 +298,7 @@ template<> bool CheckBoundingBox<2>(const paint_struct_bound_box& initialBBox, c
|
||||
return false;
|
||||
}
|
||||
|
||||
template<> bool CheckBoundingBox<3>(const paint_struct_bound_box& initialBBox, const paint_struct_bound_box& currentBBox)
|
||||
template<> bool CheckBoundingBox<3>(const PaintStructBoundBox& initialBBox, const PaintStructBoundBox& currentBBox)
|
||||
{
|
||||
if (initialBBox.z_end >= currentBBox.z && initialBBox.y_end < currentBBox.y && initialBBox.x_end >= currentBBox.x
|
||||
&& !(initialBBox.z < currentBBox.z_end && initialBBox.y >= currentBBox.y_end && initialBBox.x < currentBBox.x_end))
|
||||
@@ -318,10 +317,10 @@ namespace PaintSortFlags
|
||||
} // namespace PaintSortFlags
|
||||
|
||||
template<uint8_t TRotation>
|
||||
static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, uint16_t quadrantIndex, uint8_t flag)
|
||||
static PaintStruct* PaintArrangeStructsHelperRotation(PaintStruct* ps_next, uint16_t quadrantIndex, uint8_t flag)
|
||||
{
|
||||
paint_struct* ps;
|
||||
paint_struct* ps_temp;
|
||||
PaintStruct* ps;
|
||||
PaintStruct* ps_temp;
|
||||
|
||||
// Get the first node in the specified quadrant.
|
||||
do
|
||||
@@ -334,7 +333,7 @@ static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, ui
|
||||
|
||||
// We keep track of the first node in the quadrant so the next call with a higher quadrant index
|
||||
// can use this node to skip some iterations.
|
||||
paint_struct* psQuadrantEntry = ps;
|
||||
PaintStruct* psQuadrantEntry = ps;
|
||||
|
||||
// Visit all nodes in the linked quadrant list and determine their current
|
||||
// sorting relevancy.
|
||||
@@ -394,7 +393,7 @@ static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, ui
|
||||
ps_temp = ps;
|
||||
|
||||
// Compare current node against the remaining children.
|
||||
const paint_struct_bound_box& initialBBox = ps_next->bounds;
|
||||
const PaintStructBoundBox& initialBBox = ps_next->bounds;
|
||||
while (true)
|
||||
{
|
||||
ps = ps_next;
|
||||
@@ -406,7 +405,7 @@ static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, ui
|
||||
if (!(ps_next->SortFlags & PaintSortFlags::Neighbour))
|
||||
continue;
|
||||
|
||||
const paint_struct_bound_box& currentBBox = ps_next->bounds;
|
||||
const PaintStructBoundBox& currentBBox = ps_next->bounds;
|
||||
|
||||
const bool compareResult = CheckBoundingBox<TRotation>(initialBBox, currentBBox);
|
||||
|
||||
@@ -414,7 +413,7 @@ static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, ui
|
||||
{
|
||||
// Child node intersects with current node, move behind.
|
||||
ps->next_quadrant_ps = ps_next->next_quadrant_ps;
|
||||
paint_struct* ps_temp2 = ps_temp->next_quadrant_ps;
|
||||
PaintStruct* ps_temp2 = ps_temp->next_quadrant_ps;
|
||||
ps_temp->next_quadrant_ps = ps_next;
|
||||
ps_next->next_quadrant_ps = ps_temp2;
|
||||
ps_next = ps;
|
||||
@@ -427,9 +426,9 @@ static paint_struct* PaintArrangeStructsHelperRotation(paint_struct* ps_next, ui
|
||||
|
||||
template<int TRotation> static void PaintSessionArrange(PaintSessionCore& session, bool)
|
||||
{
|
||||
paint_struct* psHead = &session.PaintHead;
|
||||
PaintStruct* psHead = &session.PaintHead;
|
||||
|
||||
paint_struct* ps = psHead;
|
||||
PaintStruct* ps = psHead;
|
||||
ps->next_quadrant_ps = nullptr;
|
||||
|
||||
uint32_t quadrantIndex = session.QuadrantBackIndex;
|
||||
@@ -437,7 +436,7 @@ template<int TRotation> static void PaintSessionArrange(PaintSessionCore& sessio
|
||||
{
|
||||
do
|
||||
{
|
||||
paint_struct* ps_next = session.Quadrants[quadrantIndex];
|
||||
PaintStruct* ps_next = session.Quadrants[quadrantIndex];
|
||||
if (ps_next != nullptr)
|
||||
{
|
||||
ps->next_quadrant_ps = ps_next;
|
||||
@@ -450,7 +449,7 @@ template<int TRotation> static void PaintSessionArrange(PaintSessionCore& sessio
|
||||
}
|
||||
} while (++quadrantIndex <= session.QuadrantFrontIndex);
|
||||
|
||||
paint_struct* ps_cache = PaintArrangeStructsHelperRotation<TRotation>(
|
||||
PaintStruct* ps_cache = PaintArrangeStructsHelperRotation<TRotation>(
|
||||
psHead, session.QuadrantBackIndex & 0xFFFF, PaintSortFlags::Neighbour);
|
||||
|
||||
quadrantIndex = session.QuadrantBackIndex;
|
||||
@@ -482,7 +481,7 @@ void PaintSessionArrange(PaintSessionCore& session)
|
||||
Guard::Assert(false);
|
||||
}
|
||||
|
||||
static void PaintDrawStruct(paint_session& session, paint_struct* ps)
|
||||
static void PaintDrawStruct(PaintSession& session, PaintStruct* ps)
|
||||
{
|
||||
rct_drawpixelinfo* dpi = &session.DPI;
|
||||
|
||||
@@ -527,11 +526,11 @@ static void PaintDrawStruct(paint_session& session, paint_struct* ps)
|
||||
*
|
||||
* rct2: 0x00688485
|
||||
*/
|
||||
void PaintDrawStructs(paint_session& session)
|
||||
void PaintDrawStructs(PaintSession& session)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
paint_struct* ps = &session.PaintHead;
|
||||
PaintStruct* ps = &session.PaintHead;
|
||||
|
||||
for (ps = ps->next_quadrant_ps; ps != nullptr;)
|
||||
{
|
||||
@@ -546,9 +545,9 @@ void PaintDrawStructs(paint_session& session)
|
||||
* rct2: 0x00688596
|
||||
* Part of 0x688485
|
||||
*/
|
||||
static void PaintAttachedPS(rct_drawpixelinfo* dpi, paint_struct* ps, uint32_t viewFlags)
|
||||
static void PaintAttachedPS(rct_drawpixelinfo* dpi, PaintStruct* ps, uint32_t viewFlags)
|
||||
{
|
||||
attached_paint_struct* attached_ps = ps->attached_ps;
|
||||
AttachedPaintStruct* attached_ps = ps->attached_ps;
|
||||
for (; attached_ps != nullptr; attached_ps = attached_ps->next)
|
||||
{
|
||||
auto screenCoords = ScreenCoordsXY{ attached_ps->x + ps->x, attached_ps->y + ps->y };
|
||||
@@ -565,7 +564,7 @@ static void PaintAttachedPS(rct_drawpixelinfo* dpi, paint_struct* ps, uint32_t v
|
||||
}
|
||||
}
|
||||
|
||||
static void PaintPSImageWithBoundingBoxes(rct_drawpixelinfo* dpi, paint_struct* ps, ImageId imageId, int32_t x, int32_t y)
|
||||
static void PaintPSImageWithBoundingBoxes(rct_drawpixelinfo* dpi, PaintStruct* ps, ImageId imageId, int32_t x, int32_t y)
|
||||
{
|
||||
const uint8_t colour = BoundBoxDebugColours[EnumValue(ps->sprite_type)];
|
||||
const uint8_t rotation = get_current_rotation();
|
||||
@@ -651,7 +650,7 @@ static void PaintPSImageWithBoundingBoxes(rct_drawpixelinfo* dpi, paint_struct*
|
||||
gfx_draw_line(dpi, { screenCoordFrontTop, screenCoordRightTop }, colour);
|
||||
}
|
||||
|
||||
static ImageId PaintPSColourifyImage(const paint_struct* ps, ImageId imageId, uint32_t viewFlags)
|
||||
static ImageId PaintPSColourifyImage(const PaintStruct* ps, ImageId imageId, uint32_t viewFlags)
|
||||
{
|
||||
auto visibility = GetPaintStructVisibility(ps, viewFlags);
|
||||
switch (visibility)
|
||||
@@ -665,12 +664,12 @@ static ImageId PaintPSColourifyImage(const paint_struct* ps, ImageId imageId, ui
|
||||
}
|
||||
}
|
||||
|
||||
paint_session* PaintSessionAlloc(rct_drawpixelinfo* dpi, uint32_t viewFlags)
|
||||
PaintSession* PaintSessionAlloc(rct_drawpixelinfo* dpi, uint32_t viewFlags)
|
||||
{
|
||||
return GetContext()->GetPainter()->CreateSession(dpi, viewFlags);
|
||||
}
|
||||
|
||||
void PaintSessionFree([[maybe_unused]] paint_session* session)
|
||||
void PaintSessionFree([[maybe_unused]] PaintSession* session)
|
||||
{
|
||||
GetContext()->GetPainter()->ReleaseSession(session);
|
||||
}
|
||||
@@ -685,16 +684,16 @@ void PaintSessionFree([[maybe_unused]] paint_session* session)
|
||||
* @param bound_box_length_y (si)
|
||||
* @param bound_box_length_z (ah)
|
||||
* @param z_offset (dx)
|
||||
* @return (ebp) paint_struct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
* @return (ebp) PaintStruct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
*/
|
||||
paint_struct* PaintAddImageAsParent(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize)
|
||||
PaintStruct* PaintAddImageAsParent(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize)
|
||||
{
|
||||
return PaintAddImageAsParent(session, image_id, offset, { offset, boundBoxSize });
|
||||
}
|
||||
|
||||
paint_struct* PaintAddImageAsParent(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize,
|
||||
PaintStruct* PaintAddImageAsParent(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize,
|
||||
const CoordsXYZ& boundBoxOffset)
|
||||
{
|
||||
return PaintAddImageAsParent(session, image_id, offset, { boundBoxOffset, boundBoxSize });
|
||||
@@ -713,11 +712,11 @@ paint_struct* PaintAddImageAsParent(
|
||||
* @param bound_box_offset_x (0x009DEA52)
|
||||
* @param bound_box_offset_y (0x009DEA54)
|
||||
* @param bound_box_offset_z (0x009DEA56)
|
||||
* @return (ebp) paint_struct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
* @return (ebp) PaintStruct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
*/
|
||||
// Track Pieces, Shops.
|
||||
paint_struct* PaintAddImageAsParent(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
PaintStruct* PaintAddImageAsParent(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
{
|
||||
session.LastPS = nullptr;
|
||||
session.LastAttachedPS = nullptr;
|
||||
@@ -747,19 +746,19 @@ paint_struct* PaintAddImageAsParent(
|
||||
* @param bound_box_offset_x (0x009DEA52)
|
||||
* @param bound_box_offset_y (0x009DEA54)
|
||||
* @param bound_box_offset_z (0x009DEA56)
|
||||
* @return (ebp) paint_struct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
* @return (ebp) PaintStruct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
* Creates a paint struct but does not allocate to a paint quadrant. Result cannot be ignored!
|
||||
*/
|
||||
[[nodiscard]] paint_struct* PaintAddImageAsOrphan(
|
||||
paint_session& session, const ImageId& imageId, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
[[nodiscard]] PaintStruct* PaintAddImageAsOrphan(
|
||||
PaintSession& session, const ImageId& imageId, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
{
|
||||
session.LastPS = nullptr;
|
||||
session.LastAttachedPS = nullptr;
|
||||
return CreateNormalPaintStruct(session, imageId, offset, boundBox);
|
||||
}
|
||||
|
||||
paint_struct* PaintAddImageAsChild(
|
||||
paint_session& session, const ImageId& imageId, const CoordsXYZ& offset, const CoordsXYZ& boundBoxLength,
|
||||
PaintStruct* PaintAddImageAsChild(
|
||||
PaintSession& session, const ImageId& imageId, const CoordsXYZ& offset, const CoordsXYZ& boundBoxLength,
|
||||
const CoordsXYZ& boundBoxOffset)
|
||||
{
|
||||
return PaintAddImageAsChild(session, imageId, offset, { boundBoxOffset, boundBoxLength });
|
||||
@@ -779,13 +778,13 @@ paint_struct* PaintAddImageAsChild(
|
||||
* @param bound_box_offset_x (0x009DEA52)
|
||||
* @param bound_box_offset_y (0x009DEA54)
|
||||
* @param bound_box_offset_z (0x009DEA56)
|
||||
* @return (ebp) paint_struct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
* @return (ebp) PaintStruct on success (CF == 0), nullptr on failure (CF == 1)
|
||||
* If there is no parent paint struct then image is added as a parent
|
||||
*/
|
||||
paint_struct* PaintAddImageAsChild(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
PaintStruct* PaintAddImageAsChild(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox)
|
||||
{
|
||||
paint_struct* parentPS = session.LastPS;
|
||||
PaintStruct* parentPS = session.LastPS;
|
||||
if (parentPS == nullptr)
|
||||
{
|
||||
return PaintAddImageAsParent(session, image_id, offset, boundBox);
|
||||
@@ -810,7 +809,7 @@ paint_struct* PaintAddImageAsChild(
|
||||
* @param y (cx)
|
||||
* @return (!CF) success
|
||||
*/
|
||||
bool PaintAttachToPreviousAttach(paint_session& session, const ImageId& imageId, int32_t x, int32_t y)
|
||||
bool PaintAttachToPreviousAttach(PaintSession& session, const ImageId& imageId, int32_t x, int32_t y)
|
||||
{
|
||||
auto* previousAttachedPS = session.LastAttachedPS;
|
||||
if (previousAttachedPS == nullptr)
|
||||
@@ -843,7 +842,7 @@ bool PaintAttachToPreviousAttach(paint_session& session, const ImageId& imageId,
|
||||
* @param y (cx)
|
||||
* @return (!CF) success
|
||||
*/
|
||||
bool PaintAttachToPreviousPS(paint_session& session, const ImageId& image_id, int32_t x, int32_t y)
|
||||
bool PaintAttachToPreviousPS(PaintSession& session, const ImageId& image_id, int32_t x, int32_t y)
|
||||
{
|
||||
auto* masterPs = session.LastPS;
|
||||
if (masterPs == nullptr)
|
||||
@@ -862,7 +861,7 @@ bool PaintAttachToPreviousPS(paint_session& session, const ImageId& image_id, in
|
||||
ps->y = y;
|
||||
ps->IsMasked = false;
|
||||
|
||||
attached_paint_struct* oldFirstAttached = masterPs->attached_ps;
|
||||
AttachedPaintStruct* oldFirstAttached = masterPs->attached_ps;
|
||||
masterPs->attached_ps = ps;
|
||||
ps->next = oldFirstAttached;
|
||||
|
||||
@@ -880,7 +879,7 @@ bool PaintAttachToPreviousPS(paint_session& session, const ImageId& image_id, in
|
||||
* @param rotation (ebp)
|
||||
*/
|
||||
void PaintFloatingMoneyEffect(
|
||||
paint_session& session, money64 amount, StringId string_id, int32_t y, int32_t z, int8_t y_offsets[], int32_t offset_x,
|
||||
PaintSession& session, money64 amount, StringId string_id, int32_t y, int32_t z, int8_t y_offsets[], int32_t offset_x,
|
||||
uint32_t rotation)
|
||||
{
|
||||
auto* ps = session.AllocateStringPaintEntry();
|
||||
@@ -910,7 +909,7 @@ void PaintFloatingMoneyEffect(
|
||||
*
|
||||
* rct2: 0x006860C3
|
||||
*/
|
||||
void PaintDrawMoneyStructs(rct_drawpixelinfo* dpi, paint_string_struct* ps)
|
||||
void PaintDrawMoneyStructs(rct_drawpixelinfo* dpi, PaintStringStruct* ps)
|
||||
{
|
||||
do
|
||||
{
|
||||
@@ -958,7 +957,7 @@ PaintEntryPool::Chain& PaintEntryPool::Chain::operator=(Chain&& chain) noexcept
|
||||
return *this;
|
||||
}
|
||||
|
||||
paint_entry* PaintEntryPool::Chain::Allocate()
|
||||
PaintEntry* PaintEntryPool::Chain::Allocate()
|
||||
{
|
||||
if (Pool == nullptr)
|
||||
{
|
||||
|
||||
+74
-74
@@ -25,9 +25,9 @@ struct TileElement;
|
||||
enum class RailingEntrySupportType : uint8_t;
|
||||
enum class ViewportInteractionItem : uint8_t;
|
||||
|
||||
struct attached_paint_struct
|
||||
struct AttachedPaintStruct
|
||||
{
|
||||
attached_paint_struct* next;
|
||||
AttachedPaintStruct* next;
|
||||
ImageId image_id;
|
||||
ImageId ColourImageId;
|
||||
int32_t x;
|
||||
@@ -35,7 +35,7 @@ struct attached_paint_struct
|
||||
bool IsMasked;
|
||||
};
|
||||
|
||||
struct paint_struct_bound_box
|
||||
struct PaintStructBoundBox
|
||||
{
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
@@ -45,12 +45,12 @@ struct paint_struct_bound_box
|
||||
int32_t z_end;
|
||||
};
|
||||
|
||||
struct paint_struct
|
||||
struct PaintStruct
|
||||
{
|
||||
paint_struct_bound_box bounds;
|
||||
attached_paint_struct* attached_ps;
|
||||
paint_struct* children;
|
||||
paint_struct* next_quadrant_ps;
|
||||
PaintStructBoundBox bounds;
|
||||
AttachedPaintStruct* attached_ps;
|
||||
PaintStruct* children;
|
||||
PaintStruct* next_quadrant_ps;
|
||||
TileElement* tileElement;
|
||||
EntityBase* entity;
|
||||
ImageId image_id;
|
||||
@@ -63,46 +63,46 @@ struct paint_struct
|
||||
ViewportInteractionItem sprite_type;
|
||||
};
|
||||
|
||||
struct paint_string_struct
|
||||
struct PaintStringStruct
|
||||
{
|
||||
StringId string_id;
|
||||
paint_string_struct* next;
|
||||
PaintStringStruct* next;
|
||||
int32_t x;
|
||||
int32_t y;
|
||||
uint32_t args[4];
|
||||
uint8_t* y_offsets;
|
||||
};
|
||||
|
||||
struct paint_entry
|
||||
struct PaintEntry
|
||||
{
|
||||
private:
|
||||
std::array<uint8_t, std::max({ sizeof(paint_struct), sizeof(attached_paint_struct), sizeof(paint_string_struct) })> data;
|
||||
std::array<uint8_t, std::max({ sizeof(PaintStruct), sizeof(AttachedPaintStruct), sizeof(PaintStringStruct) })> data;
|
||||
|
||||
public:
|
||||
paint_struct* AsBasic()
|
||||
PaintStruct* AsBasic()
|
||||
{
|
||||
auto* res = reinterpret_cast<paint_struct*>(data.data());
|
||||
::new (res) paint_struct();
|
||||
auto* res = reinterpret_cast<PaintStruct*>(data.data());
|
||||
::new (res) PaintStruct();
|
||||
return res;
|
||||
}
|
||||
attached_paint_struct* AsAttached()
|
||||
AttachedPaintStruct* AsAttached()
|
||||
{
|
||||
auto* res = reinterpret_cast<attached_paint_struct*>(data.data());
|
||||
::new (res) attached_paint_struct();
|
||||
auto* res = reinterpret_cast<AttachedPaintStruct*>(data.data());
|
||||
::new (res) AttachedPaintStruct();
|
||||
return res;
|
||||
}
|
||||
paint_string_struct* AsString()
|
||||
PaintStringStruct* AsString()
|
||||
{
|
||||
auto* res = reinterpret_cast<paint_string_struct*>(data.data());
|
||||
::new (res) paint_string_struct();
|
||||
auto* res = reinterpret_cast<PaintStringStruct*>(data.data());
|
||||
::new (res) PaintStringStruct();
|
||||
return res;
|
||||
}
|
||||
};
|
||||
static_assert(sizeof(paint_entry) >= sizeof(paint_struct));
|
||||
static_assert(sizeof(paint_entry) >= sizeof(attached_paint_struct));
|
||||
static_assert(sizeof(paint_entry) >= sizeof(paint_string_struct));
|
||||
static_assert(sizeof(PaintEntry) >= sizeof(PaintStruct));
|
||||
static_assert(sizeof(PaintEntry) >= sizeof(AttachedPaintStruct));
|
||||
static_assert(sizeof(PaintEntry) >= sizeof(PaintStringStruct));
|
||||
|
||||
struct sprite_bb
|
||||
struct SpriteBb
|
||||
{
|
||||
uint32_t sprite_id;
|
||||
CoordsXYZ offset;
|
||||
@@ -110,14 +110,14 @@ struct sprite_bb
|
||||
CoordsXYZ bb_size;
|
||||
};
|
||||
|
||||
struct support_height
|
||||
struct SupportHeight
|
||||
{
|
||||
uint16_t height;
|
||||
uint8_t slope;
|
||||
uint8_t pad;
|
||||
};
|
||||
|
||||
struct tunnel_entry
|
||||
struct TunnelEntry
|
||||
{
|
||||
uint8_t height;
|
||||
uint8_t type;
|
||||
@@ -130,7 +130,7 @@ static constexpr int32_t MaxPaintQuadrants = MAXIMUM_MAP_SIZE_TECHNICAL * 2;
|
||||
#define TUNNEL_MAX_COUNT 65
|
||||
|
||||
/**
|
||||
* A pool of paint_entry instances that can be rented out.
|
||||
* A pool of PaintEntry instances that can be rented out.
|
||||
* The internal implementation uses an unrolled linked list so that each
|
||||
* paint session can quickly allocate a new paint entry until it requires
|
||||
* another node / block of paint entries. Only the node allocation needs to
|
||||
@@ -145,7 +145,7 @@ public:
|
||||
{
|
||||
Node* Next{};
|
||||
size_t Count{};
|
||||
paint_entry PaintStructs[NodeSize]{};
|
||||
PaintEntry PaintStructs[NodeSize]{};
|
||||
};
|
||||
|
||||
struct Chain
|
||||
@@ -161,7 +161,7 @@ public:
|
||||
|
||||
Chain& operator=(Chain&& chain) noexcept;
|
||||
|
||||
paint_entry* Allocate();
|
||||
PaintEntry* Allocate();
|
||||
void Clear();
|
||||
size_t GetCount() const;
|
||||
};
|
||||
@@ -181,29 +181,29 @@ public:
|
||||
|
||||
struct PaintSessionCore
|
||||
{
|
||||
paint_struct PaintHead;
|
||||
paint_struct* Quadrants[MaxPaintQuadrants];
|
||||
paint_struct* LastPS;
|
||||
paint_string_struct* PSStringHead;
|
||||
paint_string_struct* LastPSString;
|
||||
attached_paint_struct* LastAttachedPS;
|
||||
PaintStruct PaintHead;
|
||||
PaintStruct* Quadrants[MaxPaintQuadrants];
|
||||
PaintStruct* LastPS;
|
||||
PaintStringStruct* PSStringHead;
|
||||
PaintStringStruct* LastPSString;
|
||||
AttachedPaintStruct* LastAttachedPS;
|
||||
const TileElement* SurfaceElement;
|
||||
EntityBase* CurrentlyDrawnEntity;
|
||||
TileElement* CurrentlyDrawnTileElement;
|
||||
const TileElement* PathElementOnSameHeight;
|
||||
const TileElement* TrackElementOnSameHeight;
|
||||
paint_struct* WoodenSupportsPrependTo;
|
||||
PaintStruct* WoodenSupportsPrependTo;
|
||||
CoordsXY SpritePosition;
|
||||
CoordsXY MapPosition;
|
||||
uint32_t ViewFlags;
|
||||
uint32_t QuadrantBackIndex;
|
||||
uint32_t QuadrantFrontIndex;
|
||||
ImageId TrackColours[4];
|
||||
support_height SupportSegments[9];
|
||||
support_height Support;
|
||||
SupportHeight SupportSegments[9];
|
||||
SupportHeight Support;
|
||||
uint16_t WaterHeight;
|
||||
tunnel_entry LeftTunnels[TUNNEL_MAX_COUNT];
|
||||
tunnel_entry RightTunnels[TUNNEL_MAX_COUNT];
|
||||
TunnelEntry LeftTunnels[TUNNEL_MAX_COUNT];
|
||||
TunnelEntry RightTunnels[TUNNEL_MAX_COUNT];
|
||||
uint8_t LeftTunnelCount;
|
||||
uint8_t RightTunnelCount;
|
||||
uint8_t VerticalTunnelHeight;
|
||||
@@ -212,12 +212,12 @@ struct PaintSessionCore
|
||||
ViewportInteractionItem InteractionType;
|
||||
};
|
||||
|
||||
struct paint_session : public PaintSessionCore
|
||||
struct PaintSession : public PaintSessionCore
|
||||
{
|
||||
rct_drawpixelinfo DPI;
|
||||
PaintEntryPool::Chain PaintEntryChain;
|
||||
|
||||
paint_struct* AllocateNormalPaintEntry() noexcept
|
||||
PaintStruct* AllocateNormalPaintEntry() noexcept
|
||||
{
|
||||
auto* entry = PaintEntryChain.Allocate();
|
||||
if (entry != nullptr)
|
||||
@@ -228,7 +228,7 @@ struct paint_session : public PaintSessionCore
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
attached_paint_struct* AllocateAttachedPaintEntry() noexcept
|
||||
AttachedPaintStruct* AllocateAttachedPaintEntry() noexcept
|
||||
{
|
||||
auto* entry = PaintEntryChain.Allocate();
|
||||
if (entry != nullptr)
|
||||
@@ -239,7 +239,7 @@ struct paint_session : public PaintSessionCore
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
paint_string_struct* AllocateStringPaintEntry() noexcept
|
||||
PaintStringStruct* AllocateStringPaintEntry() noexcept
|
||||
{
|
||||
auto* entry = PaintEntryChain.Allocate();
|
||||
if (entry != nullptr)
|
||||
@@ -275,10 +275,10 @@ struct FootpathPaintInfo
|
||||
struct RecordedPaintSession
|
||||
{
|
||||
PaintSessionCore Session;
|
||||
std::vector<paint_entry> Entries;
|
||||
std::vector<PaintEntry> Entries;
|
||||
};
|
||||
|
||||
extern paint_session gPaintSession;
|
||||
extern PaintSession gPaintSession;
|
||||
|
||||
// Globals for paint clipping
|
||||
extern uint8_t gClipHeight;
|
||||
@@ -294,42 +294,42 @@ extern bool gPaintBoundingBoxes;
|
||||
extern bool gPaintBlockedTiles;
|
||||
extern bool gPaintWidePathsAsGhost;
|
||||
|
||||
paint_struct* PaintAddImageAsParent(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize);
|
||||
paint_struct* PaintAddImageAsParent(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize,
|
||||
PaintStruct* PaintAddImageAsParent(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize);
|
||||
PaintStruct* PaintAddImageAsParent(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxSize,
|
||||
const CoordsXYZ& boundBoxOffset);
|
||||
paint_struct* PaintAddImageAsParent(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox);
|
||||
[[nodiscard]] paint_struct* PaintAddImageAsOrphan(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox);
|
||||
paint_struct* PaintAddImageAsChild(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxLength,
|
||||
PaintStruct* PaintAddImageAsParent(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox);
|
||||
[[nodiscard]] PaintStruct* PaintAddImageAsOrphan(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox);
|
||||
PaintStruct* PaintAddImageAsChild(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const CoordsXYZ& boundBoxLength,
|
||||
const CoordsXYZ& boundBoxOffset);
|
||||
paint_struct* PaintAddImageAsChild(
|
||||
paint_session& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox);
|
||||
PaintStruct* PaintAddImageAsChild(
|
||||
PaintSession& session, const ImageId& image_id, const CoordsXYZ& offset, const BoundBoxXYZ& boundBox);
|
||||
|
||||
paint_struct* PaintAddImageAsChildRotated(
|
||||
paint_session& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
PaintStruct* PaintAddImageAsChildRotated(
|
||||
PaintSession& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
const CoordsXYZ& boundBoxSize, const CoordsXYZ& boundBoxOffset);
|
||||
paint_struct* PaintAddImageAsParentRotated(
|
||||
paint_session& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
PaintStruct* PaintAddImageAsParentRotated(
|
||||
PaintSession& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
const CoordsXYZ& boundBoxSize);
|
||||
paint_struct* PaintAddImageAsParentRotated(
|
||||
paint_session& session, const uint8_t direction, const ImageId& imageId, const CoordsXYZ& offset,
|
||||
PaintStruct* PaintAddImageAsParentRotated(
|
||||
PaintSession& session, const uint8_t direction, const ImageId& imageId, const CoordsXYZ& offset,
|
||||
const CoordsXYZ& boundBoxSize, const CoordsXYZ& boundBoxOffset);
|
||||
|
||||
void PaintUtilPushTunnelRotated(paint_session& session, uint8_t direction, uint16_t height, uint8_t type);
|
||||
void PaintUtilPushTunnelRotated(PaintSession& session, uint8_t direction, uint16_t height, uint8_t type);
|
||||
|
||||
bool PaintAttachToPreviousAttach(paint_session& session, const ImageId& imageId, int32_t x, int32_t y);
|
||||
bool PaintAttachToPreviousPS(paint_session& session, const ImageId& image_id, int32_t x, int32_t y);
|
||||
bool PaintAttachToPreviousAttach(PaintSession& session, const ImageId& imageId, int32_t x, int32_t y);
|
||||
bool PaintAttachToPreviousPS(PaintSession& session, const ImageId& image_id, int32_t x, int32_t y);
|
||||
void PaintFloatingMoneyEffect(
|
||||
paint_session& session, money64 amount, StringId string_id, int32_t y, int32_t z, int8_t y_offsets[], int32_t offset_x,
|
||||
PaintSession& session, money64 amount, StringId string_id, int32_t y, int32_t z, int8_t y_offsets[], int32_t offset_x,
|
||||
uint32_t rotation);
|
||||
|
||||
paint_session* PaintSessionAlloc(rct_drawpixelinfo* dpi, uint32_t viewFlags);
|
||||
void PaintSessionFree(paint_session* session);
|
||||
void PaintSessionGenerate(paint_session& session);
|
||||
PaintSession* PaintSessionAlloc(rct_drawpixelinfo* dpi, uint32_t viewFlags);
|
||||
void PaintSessionFree(PaintSession* session);
|
||||
void PaintSessionGenerate(PaintSession& session);
|
||||
void PaintSessionArrange(PaintSessionCore& session);
|
||||
void PaintDrawStructs(paint_session& session);
|
||||
void PaintDrawMoneyStructs(rct_drawpixelinfo* dpi, paint_string_struct* ps);
|
||||
void PaintDrawStructs(PaintSession& session);
|
||||
void PaintDrawMoneyStructs(rct_drawpixelinfo* dpi, PaintStringStruct* ps);
|
||||
@@ -11,8 +11,8 @@
|
||||
#include "../ride/TrackPaint.h"
|
||||
#include "Paint.h"
|
||||
|
||||
paint_struct* PaintAddImageAsParentRotated(
|
||||
paint_session& session, const uint8_t direction, const ImageId& imageId, const CoordsXYZ& offset,
|
||||
PaintStruct* PaintAddImageAsParentRotated(
|
||||
PaintSession& session, const uint8_t direction, const ImageId& imageId, const CoordsXYZ& offset,
|
||||
const CoordsXYZ& boundBoxSize, const CoordsXYZ& boundBoxOffset)
|
||||
{
|
||||
if (direction & 1)
|
||||
@@ -25,8 +25,8 @@ paint_struct* PaintAddImageAsParentRotated(
|
||||
return PaintAddImageAsParent(session, imageId, offset, boundBoxSize, boundBoxOffset);
|
||||
}
|
||||
|
||||
paint_struct* PaintAddImageAsParentRotated(
|
||||
paint_session& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
PaintStruct* PaintAddImageAsParentRotated(
|
||||
PaintSession& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
const CoordsXYZ& boundBoxSize)
|
||||
{
|
||||
if (direction & 1)
|
||||
@@ -38,8 +38,8 @@ paint_struct* PaintAddImageAsParentRotated(
|
||||
return PaintAddImageAsParent(session, image_id, offset, boundBoxSize);
|
||||
}
|
||||
|
||||
paint_struct* PaintAddImageAsChildRotated(
|
||||
paint_session& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
PaintStruct* PaintAddImageAsChildRotated(
|
||||
PaintSession& session, const uint8_t direction, const ImageId& image_id, const CoordsXYZ& offset,
|
||||
const CoordsXYZ& boundBoxSize, const CoordsXYZ& boundBoxOffset)
|
||||
{
|
||||
if (direction & 1)
|
||||
@@ -52,7 +52,7 @@ paint_struct* PaintAddImageAsChildRotated(
|
||||
return PaintAddImageAsChild(session, image_id, offset, boundBoxSize, boundBoxOffset);
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRotated(paint_session& session, uint8_t direction, uint16_t height, uint8_t type)
|
||||
void PaintUtilPushTunnelRotated(PaintSession& session, uint8_t direction, uint16_t height, uint8_t type)
|
||||
{
|
||||
if (direction & 1)
|
||||
{
|
||||
|
||||
@@ -131,11 +131,11 @@ void Painter::MeasureFPS()
|
||||
_lastSecond = currentTime;
|
||||
}
|
||||
|
||||
paint_session* Painter::CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags)
|
||||
PaintSession* Painter::CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
paint_session* session = nullptr;
|
||||
PaintSession* session = nullptr;
|
||||
|
||||
if (_freePaintSessions.empty() == false)
|
||||
{
|
||||
@@ -148,7 +148,7 @@ paint_session* Painter::CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags
|
||||
else
|
||||
{
|
||||
// Create new one in pool.
|
||||
_paintSessionPool.emplace_back(std::make_unique<paint_session>());
|
||||
_paintSessionPool.emplace_back(std::make_unique<PaintSession>());
|
||||
session = _paintSessionPool.back().get();
|
||||
}
|
||||
|
||||
@@ -172,7 +172,7 @@ paint_session* Painter::CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags
|
||||
return session;
|
||||
}
|
||||
|
||||
void Painter::ReleaseSession(paint_session* session)
|
||||
void Painter::ReleaseSession(PaintSession* session)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -36,8 +36,8 @@ namespace OpenRCT2
|
||||
{
|
||||
private:
|
||||
std::shared_ptr<Ui::IUiContext> const _uiContext;
|
||||
std::vector<std::unique_ptr<paint_session>> _paintSessionPool;
|
||||
std::vector<paint_session*> _freePaintSessions;
|
||||
std::vector<std::unique_ptr<PaintSession>> _paintSessionPool;
|
||||
std::vector<PaintSession*> _freePaintSessions;
|
||||
PaintEntryPool _paintStructPool;
|
||||
time_t _lastSecond = 0;
|
||||
int32_t _currentFPS = 0;
|
||||
@@ -47,8 +47,8 @@ namespace OpenRCT2
|
||||
explicit Painter(const std::shared_ptr<Ui::IUiContext>& uiContext);
|
||||
void Paint(Drawing::IDrawingEngine& de);
|
||||
|
||||
paint_session* CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags);
|
||||
void ReleaseSession(paint_session* session);
|
||||
PaintSession* CreateSession(rct_drawpixelinfo* dpi, uint32_t viewFlags);
|
||||
void ReleaseSession(PaintSession* session);
|
||||
~Painter();
|
||||
|
||||
private:
|
||||
|
||||
@@ -456,7 +456,7 @@ static constexpr const uint16_t word_97B3C4[] = {
|
||||
* @returns (al) true if any supports have been drawn, otherwise false.
|
||||
*/
|
||||
bool WoodenASupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
if (!(session.Flags & PaintSessionFlags::PassedSurface))
|
||||
{
|
||||
@@ -617,7 +617,7 @@ bool WoodenASupportsPaintSetup(
|
||||
* @return (al) whether supports have been drawn
|
||||
*/
|
||||
bool WoodenBSupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
if (!(session.Flags & PaintSessionFlags::PassedSurface))
|
||||
{
|
||||
@@ -786,9 +786,9 @@ bool WoodenBSupportsPaintSetup(
|
||||
* rct2: 0x00663105
|
||||
*/
|
||||
bool MetalASupportsPaintSetup(
|
||||
paint_session& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
PaintSession& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
support_height* supportSegments = session.SupportSegments;
|
||||
SupportHeight* supportSegments = session.SupportSegments;
|
||||
|
||||
if (!(session.Flags & PaintSessionFlags::PassedSurface))
|
||||
{
|
||||
@@ -987,9 +987,9 @@ bool MetalASupportsPaintSetup(
|
||||
* @return (Carry Flag)
|
||||
*/
|
||||
bool MetalBSupportsPaintSetup(
|
||||
paint_session& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
PaintSession& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
support_height* supportSegments = session.SupportSegments;
|
||||
SupportHeight* supportSegments = session.SupportSegments;
|
||||
uint8_t originalSegment = segment;
|
||||
|
||||
if (!(session.Flags & PaintSessionFlags::PassedSurface))
|
||||
@@ -1169,7 +1169,7 @@ bool MetalBSupportsPaintSetup(
|
||||
* @return Whether supports were drawn
|
||||
*/
|
||||
bool PathASupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
const FootpathPaintInfo& pathPaintInfo, bool* underground)
|
||||
{
|
||||
if (underground != nullptr)
|
||||
@@ -1295,7 +1295,7 @@ bool PathASupportsPaintSetup(
|
||||
}
|
||||
else
|
||||
{
|
||||
paint_struct* paintStruct = PaintAddImageAsOrphan(
|
||||
PaintStruct* paintStruct = PaintAddImageAsOrphan(
|
||||
session, imageTemplate.WithIndex(imageIndex), { 0, 0, baseHeight }, boundBox);
|
||||
hasSupports = true;
|
||||
if (paintStruct != nullptr)
|
||||
@@ -1324,10 +1324,10 @@ bool PathASupportsPaintSetup(
|
||||
* @return Whether supports were drawn
|
||||
*/
|
||||
bool PathBSupportsPaintSetup(
|
||||
paint_session& session, int32_t segment, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
PaintSession& session, int32_t segment, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
const FootpathPaintInfo& pathPaintInfo)
|
||||
{
|
||||
support_height* supportSegments = session.SupportSegments;
|
||||
SupportHeight* supportSegments = session.SupportSegments;
|
||||
|
||||
if (!(session.Flags & PaintSessionFlags::PassedSurface))
|
||||
{
|
||||
|
||||
@@ -18,18 +18,18 @@ struct FootpathPaintInfo;
|
||||
constexpr const uint8_t NumVanillaWoodenSupportTypes = 49;
|
||||
|
||||
bool WoodenASupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
bool WoodenBSupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
bool MetalASupportsPaintSetup(
|
||||
paint_session& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
PaintSession& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
bool MetalBSupportsPaintSetup(
|
||||
paint_session& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
PaintSession& session, uint8_t supportType, uint8_t segment, int32_t special, int32_t height, ImageId imageTemplate);
|
||||
bool PathASupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
const FootpathPaintInfo& pathPaintInfo, bool* underground);
|
||||
bool PathBSupportsPaintSetup(
|
||||
paint_session& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
PaintSession& session, int32_t supportType, int32_t special, int32_t height, ImageId imageTemplate,
|
||||
const FootpathPaintInfo& pathPaintInfo);
|
||||
|
||||
// There are 13 types of metal supports. A graphic showing all of them is available here:
|
||||
|
||||
@@ -292,7 +292,7 @@ static void VirtualFloorGetTileProperties(
|
||||
}
|
||||
}
|
||||
|
||||
void VirtualFloorPaint(paint_session& session)
|
||||
void VirtualFloorPaint(PaintSession& session)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -20,7 +20,7 @@ enum class VirtualFloorStyles : int32_t
|
||||
Glassy
|
||||
};
|
||||
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
uint16_t VirtualFloorGetHeight();
|
||||
|
||||
@@ -33,4 +33,4 @@ void VirtualFloorInvalidate();
|
||||
|
||||
bool VirtualFloorTileIsFloor(const CoordsXY& loc);
|
||||
|
||||
void VirtualFloorPaint(paint_session& session);
|
||||
void VirtualFloorPaint(PaintSession& session);
|
||||
@@ -32,7 +32,7 @@ constexpr CoordsXY BannerBoundBoxes[][2] = {
|
||||
};
|
||||
|
||||
static void PaintBannerScrollingText(
|
||||
paint_session& session, const BannerSceneryEntry& bannerEntry, Banner& banner, const BannerElement& bannerElement,
|
||||
PaintSession& session, const BannerSceneryEntry& bannerEntry, Banner& banner, const BannerElement& bannerElement,
|
||||
Direction direction, int32_t height, const CoordsXYZ& bbOffset)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -67,7 +67,7 @@ static void PaintBannerScrollingText(
|
||||
PaintAddImageAsChild(session, imageId, { 0, 0, height + 22 }, { 1, 1, 21 }, bbOffset);
|
||||
}
|
||||
|
||||
void PaintBanner(paint_session& session, uint8_t direction, int32_t height, const BannerElement& bannerElement)
|
||||
void PaintBanner(PaintSession& session, uint8_t direction, int32_t height, const BannerElement& bannerElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -34,7 +34,7 @@
|
||||
using namespace OpenRCT2;
|
||||
|
||||
static void PaintRideEntranceExitScrollingText(
|
||||
paint_session& session, const EntranceElement& entranceEl, const StationObject& stationObj, Direction direction,
|
||||
PaintSession& session, const EntranceElement& entranceEl, const StationObject& stationObj, Direction direction,
|
||||
int32_t height)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -77,7 +77,7 @@ static void PaintRideEntranceExitScrollingText(
|
||||
{ 0, 0, height + stationObj.Height }, { 28, 28, 51 }, { 2, 2, height + stationObj.Height });
|
||||
}
|
||||
|
||||
static void PaintRideEntranceExitLightEffects(paint_session& session, int32_t height, const EntranceElement& entranceEl)
|
||||
static void PaintRideEntranceExitLightEffects(PaintSession& session, int32_t height, const EntranceElement& entranceEl)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -106,7 +106,7 @@ static void PaintRideEntranceExitLightEffects(paint_session& session, int32_t he
|
||||
}
|
||||
}
|
||||
|
||||
static void PaintRideEntranceExit(paint_session& session, uint8_t direction, int32_t height, const EntranceElement& entranceEl)
|
||||
static void PaintRideEntranceExit(PaintSession& session, uint8_t direction, int32_t height, const EntranceElement& entranceEl)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -206,7 +206,7 @@ static void PaintRideEntranceExit(paint_session& session, uint8_t direction, int
|
||||
}
|
||||
|
||||
static void PaintParkEntranceScrollingText(
|
||||
paint_session& session, const EntranceObject& entrance, Direction direction, int32_t height)
|
||||
PaintSession& session, const EntranceObject& entrance, Direction direction, int32_t height)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -249,7 +249,7 @@ static void PaintParkEntranceScrollingText(
|
||||
PaintAddImageAsChild(session, imageIndex, { 0, 0, textHeight }, { { 2, 2, textHeight }, { 28, 28, 47 } });
|
||||
}
|
||||
|
||||
static void PaintParkEntranceLightEffects(paint_session& session)
|
||||
static void PaintParkEntranceLightEffects(PaintSession& session)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -259,7 +259,7 @@ static void PaintParkEntranceLightEffects(paint_session& session)
|
||||
}
|
||||
}
|
||||
|
||||
static void PaintParkEntrance(paint_session& session, uint8_t direction, int32_t height, const EntranceElement& entranceEl)
|
||||
static void PaintParkEntrance(PaintSession& session, uint8_t direction, int32_t height, const EntranceElement& entranceEl)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -332,7 +332,7 @@ static void PaintParkEntrance(paint_session& session, uint8_t direction, int32_t
|
||||
PaintUtilSetGeneralSupportHeight(session, height + 80, 0x20);
|
||||
}
|
||||
|
||||
static void PaintHeightMarkers(paint_session& session, const EntranceElement& entranceEl, int32_t height)
|
||||
static void PaintHeightMarkers(PaintSession& session, const EntranceElement& entranceEl, int32_t height)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -351,7 +351,7 @@ static void PaintHeightMarkers(paint_session& session, const EntranceElement& en
|
||||
}
|
||||
}
|
||||
|
||||
void PaintEntrance(paint_session& session, uint8_t direction, int32_t height, const EntranceElement& entranceElement)
|
||||
void PaintEntrance(PaintSession& session, uint8_t direction, int32_t height, const EntranceElement& entranceElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -53,7 +53,7 @@ static constexpr const BoundBoxXY LargeSceneryBoundBoxes[] = {
|
||||
// clang-format on
|
||||
|
||||
static void PaintLargeScenerySupports(
|
||||
paint_session& session, uint8_t direction, uint16_t height, const LargeSceneryElement& tileElement, ImageId imageTemplate,
|
||||
PaintSession& session, uint8_t direction, uint16_t height, const LargeSceneryElement& tileElement, ImageId imageTemplate,
|
||||
const rct_large_scenery_tile& tile)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -105,7 +105,7 @@ static int32_t DivToMinusInfinity(int32_t a, int32_t b)
|
||||
}
|
||||
|
||||
static void PaintLargeScenery3DTextLine(
|
||||
paint_session& session, const LargeSceneryEntry& sceneryEntry, const LargeSceneryText& text, std::string_view line,
|
||||
PaintSession& session, const LargeSceneryEntry& sceneryEntry, const LargeSceneryText& text, std::string_view line,
|
||||
ImageId imageTemplate, Direction direction, int32_t offsetY)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -181,7 +181,7 @@ static bool Is3DTextSingleLine(const LargeSceneryText& text, std::string_view s)
|
||||
}
|
||||
|
||||
static void PaintLargeScenery3DText(
|
||||
paint_session& session, const LargeSceneryEntry& sceneryEntry, const rct_large_scenery_tile& tile,
|
||||
PaintSession& session, const LargeSceneryEntry& sceneryEntry, const rct_large_scenery_tile& tile,
|
||||
const LargeSceneryElement& tileElement, uint8_t direction, uint16_t height, bool isGhost)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -295,7 +295,7 @@ static void PaintLargeScenery3DText(
|
||||
}
|
||||
|
||||
static void PaintLargeSceneryScrollingText(
|
||||
paint_session& session, const LargeSceneryEntry& sceneryEntry, const LargeSceneryElement& tileElement, uint8_t direction,
|
||||
PaintSession& session, const LargeSceneryEntry& sceneryEntry, const LargeSceneryElement& tileElement, uint8_t direction,
|
||||
uint16_t height, const CoordsXYZ& bbOffset, bool isGhost)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -327,7 +327,7 @@ static void PaintLargeSceneryScrollingText(
|
||||
PaintAddImageAsChild(session, imageId, { 0, 0, height + 25 }, { 1, 1, 21 }, bbOffset);
|
||||
}
|
||||
|
||||
void PaintLargeScenery(paint_session& session, uint8_t direction, uint16_t height, const LargeSceneryElement& tileElement)
|
||||
void PaintLargeScenery(PaintSession& session, uint8_t direction, uint16_t height, const LargeSceneryElement& tileElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -89,10 +89,10 @@ static constexpr const uint8_t byte_98D8A4[] = {
|
||||
// clang-format on
|
||||
|
||||
void PathPaintBoxSupport(
|
||||
paint_session& session, const PathElement& pathElement, int32_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
PaintSession& session, const PathElement& pathElement, int32_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
bool hasSupports, ImageId imageTemplate, ImageId sceneryImageTemplate);
|
||||
void PathPaintPoleSupport(
|
||||
paint_session& session, const PathElement& pathElement, int16_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
PaintSession& session, const PathElement& pathElement, int16_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
bool hasSupports, ImageId imageTemplate, ImageId sceneryImageTemplate);
|
||||
|
||||
static ImageIndex GetEdgeImageOffset(edge_t edge)
|
||||
@@ -140,7 +140,7 @@ static ImageIndex GetFootpathBenchImage(const PathBitEntry& pathBitEntry, edge_t
|
||||
|
||||
/* rct2: 0x006A5AE5 */
|
||||
static void PathBitLightsPaint(
|
||||
paint_session& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges,
|
||||
PaintSession& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges,
|
||||
ImageId imageTemplate)
|
||||
{
|
||||
if (pathElement.IsSloped())
|
||||
@@ -173,7 +173,7 @@ static void PathBitLightsPaint(
|
||||
}
|
||||
}
|
||||
|
||||
static bool IsBinFull(paint_session& session, const PathElement& pathElement, edge_t edge)
|
||||
static bool IsBinFull(PaintSession& session, const PathElement& pathElement, edge_t edge)
|
||||
{
|
||||
switch (edge)
|
||||
{
|
||||
@@ -192,7 +192,7 @@ static bool IsBinFull(paint_session& session, const PathElement& pathElement, ed
|
||||
|
||||
/* rct2: 0x006A5C94 */
|
||||
static void PathBitBinsPaint(
|
||||
paint_session& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges,
|
||||
PaintSession& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges,
|
||||
ImageId imageTemplate)
|
||||
{
|
||||
if (pathElement.IsSloped())
|
||||
@@ -237,7 +237,7 @@ static void PathBitBinsPaint(
|
||||
|
||||
/* rct2: 0x006A5E81 */
|
||||
static void PathBitBenchesPaint(
|
||||
paint_session& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges,
|
||||
PaintSession& session, const PathBitEntry& pathBitEntry, const PathElement& pathElement, int32_t height, uint8_t edges,
|
||||
ImageId imageTemplate)
|
||||
{
|
||||
auto isBroken = pathElement.IsBroken();
|
||||
@@ -271,7 +271,7 @@ static void PathBitBenchesPaint(
|
||||
|
||||
/* rct2: 0x006A6008 */
|
||||
static void PathBitJumpingFountainsPaint(
|
||||
paint_session& session, const PathBitEntry& pathBitEntry, int32_t height, ImageId imageTemplate, rct_drawpixelinfo* dpi)
|
||||
PaintSession& session, const PathBitEntry& pathBitEntry, int32_t height, ImageId imageTemplate, rct_drawpixelinfo* dpi)
|
||||
{
|
||||
if (dpi->zoom_level > ZoomLevel{ 0 })
|
||||
return;
|
||||
@@ -288,7 +288,7 @@ static void PathBitJumpingFountainsPaint(
|
||||
* @param tile_element (esi)
|
||||
*/
|
||||
static void sub_6A4101(
|
||||
paint_session& session, const PathElement& pathElement, uint16_t height, uint32_t connectedEdges, bool hasSupports,
|
||||
PaintSession& session, const PathElement& pathElement, uint16_t height, uint32_t connectedEdges, bool hasSupports,
|
||||
const FootpathPaintInfo& pathPaintInfo, ImageId imageTemplate)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -709,7 +709,7 @@ static void sub_6A4101(
|
||||
* @param sceneryImageFlags (0x00F3EF74)
|
||||
*/
|
||||
static void sub_6A3F61(
|
||||
paint_session& session, const PathElement& pathElement, uint16_t connectedEdges, uint16_t height,
|
||||
PaintSession& session, const PathElement& pathElement, uint16_t connectedEdges, uint16_t height,
|
||||
const FootpathPaintInfo& pathPaintInfo, ImageId imageTemplate, ImageId sceneryImageTemplate, bool hasSupports)
|
||||
{
|
||||
// eax --
|
||||
@@ -866,7 +866,7 @@ static FootpathPaintInfo GetFootpathPaintInfo(const PathElement& pathEl)
|
||||
return pathPaintInfo;
|
||||
}
|
||||
|
||||
static bool ShouldDrawSupports(paint_session& session, const PathElement& pathEl, uint16_t height)
|
||||
static bool ShouldDrawSupports(PaintSession& session, const PathElement& pathEl, uint16_t height)
|
||||
{
|
||||
auto surface = MapGetSurfaceElementAt(session.MapPosition);
|
||||
if (surface == nullptr)
|
||||
@@ -896,7 +896,7 @@ static bool ShouldDrawSupports(paint_session& session, const PathElement& pathEl
|
||||
return false;
|
||||
}
|
||||
|
||||
static void PaintPatrolAreas(paint_session& session, const PathElement& pathEl)
|
||||
static void PaintPatrolAreas(PaintSession& session, const PathElement& pathEl)
|
||||
{
|
||||
auto colour = GetPatrolAreaTileColour(session.MapPosition);
|
||||
if (colour)
|
||||
@@ -914,7 +914,7 @@ static void PaintPatrolAreas(paint_session& session, const PathElement& pathEl)
|
||||
}
|
||||
}
|
||||
|
||||
static void PaintHeightMarkers(paint_session& session, const PathElement& pathEl)
|
||||
static void PaintHeightMarkers(PaintSession& session, const PathElement& pathEl)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -935,7 +935,7 @@ static void PaintHeightMarkers(paint_session& session, const PathElement& pathEl
|
||||
}
|
||||
}
|
||||
|
||||
static void PaintLampLightEffects(paint_session& session, const PathElement& pathEl, uint16_t height)
|
||||
static void PaintLampLightEffects(PaintSession& session, const PathElement& pathEl, uint16_t height)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -970,7 +970,7 @@ static void PaintLampLightEffects(paint_session& session, const PathElement& pat
|
||||
/**
|
||||
* rct2: 0x0006A3590
|
||||
*/
|
||||
void PaintPath(paint_session& session, uint16_t height, const PathElement& tileElement)
|
||||
void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -1042,7 +1042,7 @@ void PaintPath(paint_session& session, uint16_t height, const PathElement& tileE
|
||||
}
|
||||
|
||||
void PathPaintBoxSupport(
|
||||
paint_session& session, const PathElement& pathElement, int32_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
PaintSession& session, const PathElement& pathElement, int32_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
bool hasSupports, ImageId imageTemplate, ImageId sceneryImageTemplate)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -1180,7 +1180,7 @@ void PathPaintBoxSupport(
|
||||
}
|
||||
|
||||
void PathPaintPoleSupport(
|
||||
paint_session& session, const PathElement& pathElement, int16_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
PaintSession& session, const PathElement& pathElement, int16_t height, const FootpathPaintInfo& pathPaintInfo,
|
||||
bool hasSupports, ImageId imageTemplate, ImageId sceneryImageTemplate)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -31,7 +31,7 @@ static constexpr const CoordsXY lengths[] = {
|
||||
};
|
||||
|
||||
static void PaintSmallScenerySupports(
|
||||
paint_session& session, const SmallSceneryEntry& sceneryEntry, const SmallSceneryElement& sceneryElement,
|
||||
PaintSession& session, const SmallSceneryEntry& sceneryEntry, const SmallSceneryElement& sceneryElement,
|
||||
Direction direction, int32_t height, ImageId imageTemplate)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -65,7 +65,7 @@ static void PaintSmallScenerySupports(
|
||||
}
|
||||
|
||||
static void SetSupportHeights(
|
||||
paint_session& session, const SmallSceneryEntry& sceneryEntry, const SmallSceneryElement& sceneryElement, int32_t height)
|
||||
PaintSession& session, const SmallSceneryEntry& sceneryEntry, const SmallSceneryElement& sceneryElement, int32_t height)
|
||||
{
|
||||
height += sceneryEntry.height;
|
||||
|
||||
@@ -104,7 +104,7 @@ static void SetSupportHeights(
|
||||
}
|
||||
|
||||
static void PaintSmallSceneryBody(
|
||||
paint_session& session, uint8_t direction, int32_t height, const SmallSceneryElement& sceneryElement,
|
||||
PaintSession& session, uint8_t direction, int32_t height, const SmallSceneryElement& sceneryElement,
|
||||
const SmallSceneryEntry* sceneryEntry, ImageId imageTemplate)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -317,7 +317,7 @@ static void PaintSmallSceneryBody(
|
||||
}
|
||||
}
|
||||
|
||||
void PaintSmallScenery(paint_session& session, uint8_t direction, int32_t height, const SmallSceneryElement& sceneryElement)
|
||||
void PaintSmallScenery(PaintSession& session, uint8_t direction, int32_t height, const SmallSceneryElement& sceneryElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -314,7 +314,7 @@ static const TerrainSurfaceObject* GetSurfaceObject(size_t index)
|
||||
}
|
||||
|
||||
static ImageId GetSurfaceImage(
|
||||
const paint_session& session, ObjectEntryIndex index, int32_t offset, uint8_t rotation, int32_t grassLength, bool grid,
|
||||
const PaintSession& session, ObjectEntryIndex index, int32_t offset, uint8_t rotation, int32_t grassLength, bool grid,
|
||||
bool underground)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -444,7 +444,7 @@ static uint8_t ViewportSurfacePaintSetupGetRelativeSlope(const SurfaceElement& s
|
||||
* rct2: 0x0065E890, 0x0065E946, 0x0065E9FC, 0x0065EAB2
|
||||
*/
|
||||
static void ViewportSurfaceSmoothenEdge(
|
||||
paint_session& session, enum edge_t edge, struct tile_descriptor self, struct tile_descriptor neighbour)
|
||||
PaintSession& session, enum edge_t edge, struct tile_descriptor self, struct tile_descriptor neighbour)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -539,7 +539,7 @@ static void ViewportSurfaceSmoothenEdge(
|
||||
|
||||
if (PaintAttachToPreviousPS(session, image_id, 0, 0))
|
||||
{
|
||||
attached_paint_struct* out = session.LastAttachedPS;
|
||||
AttachedPaintStruct* out = session.LastAttachedPS;
|
||||
// set content and enable masking
|
||||
out->ColourImageId = GetSurfacePattern(neighbour.terrain, cl);
|
||||
out->IsMasked = true;
|
||||
@@ -564,7 +564,7 @@ static bool TileIsInsideClipView(const tile_descriptor& tile)
|
||||
}
|
||||
|
||||
static void ViewportSurfaceDrawTileSideBottom(
|
||||
paint_session& session, enum edge_t edge, uint16_t height, uint8_t edgeStyle, struct tile_descriptor self,
|
||||
PaintSession& session, enum edge_t edge, uint16_t height, uint8_t edgeStyle, struct tile_descriptor self,
|
||||
struct tile_descriptor neighbour, bool isWater)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -578,7 +578,7 @@ static void ViewportSurfaceDrawTileSideBottom(
|
||||
CoordsXY tunnelBounds = { 1, 1 };
|
||||
CoordsXY tunnelTopBoundBoxOffset = { 0, 0 };
|
||||
|
||||
const tunnel_entry* tunnelArray;
|
||||
const TunnelEntry* tunnelArray;
|
||||
switch (edge)
|
||||
{
|
||||
case EDGE_BOTTOMLEFT:
|
||||
@@ -763,7 +763,7 @@ static void ViewportSurfaceDrawTileSideBottom(
|
||||
* rct2: 0x0065EB7D, 0x0065F0D8
|
||||
*/
|
||||
static void ViewportSurfaceDrawLandSideBottom(
|
||||
paint_session& session, enum edge_t edge, uint16_t height, uint8_t edgeStyle, struct tile_descriptor self,
|
||||
PaintSession& session, enum edge_t edge, uint16_t height, uint8_t edgeStyle, struct tile_descriptor self,
|
||||
struct tile_descriptor neighbour)
|
||||
{
|
||||
ViewportSurfaceDrawTileSideBottom(session, edge, height, edgeStyle, self, neighbour, false);
|
||||
@@ -773,14 +773,14 @@ static void ViewportSurfaceDrawLandSideBottom(
|
||||
* rct2: 0x0065F8B9, 0x0065FE26
|
||||
*/
|
||||
static void ViewportSurfaceDrawWaterSideBottom(
|
||||
paint_session& session, enum edge_t edge, uint16_t height, uint8_t edgeStyle, struct tile_descriptor self,
|
||||
PaintSession& session, enum edge_t edge, uint16_t height, uint8_t edgeStyle, struct tile_descriptor self,
|
||||
struct tile_descriptor neighbour)
|
||||
{
|
||||
ViewportSurfaceDrawTileSideBottom(session, edge, height, edgeStyle, self, neighbour, true);
|
||||
}
|
||||
|
||||
static void ViewportSurfaceDrawTileSideTop(
|
||||
paint_session& session, enum edge_t edge, uint16_t height, uint8_t terrain, struct tile_descriptor self,
|
||||
PaintSession& session, enum edge_t edge, uint16_t height, uint8_t terrain, struct tile_descriptor self,
|
||||
struct tile_descriptor neighbour, bool isWater)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -922,7 +922,7 @@ static void ViewportSurfaceDrawTileSideTop(
|
||||
* rct2: 0x0065F63B, 0x0065F77D
|
||||
*/
|
||||
static void ViewportSurfaceDrawLandSideTop(
|
||||
paint_session& session, enum edge_t edge, uint16_t height, uint8_t terrain, struct tile_descriptor self,
|
||||
PaintSession& session, enum edge_t edge, uint16_t height, uint8_t terrain, struct tile_descriptor self,
|
||||
struct tile_descriptor neighbour)
|
||||
{
|
||||
ViewportSurfaceDrawTileSideTop(session, edge, height, terrain, self, neighbour, false);
|
||||
@@ -932,7 +932,7 @@ static void ViewportSurfaceDrawLandSideTop(
|
||||
* rct2: 0x0066039B, 0x006604F1
|
||||
*/
|
||||
static void ViewportSurfaceDrawWaterSideTop(
|
||||
paint_session& session, enum edge_t edge, uint16_t height, uint8_t terrain, struct tile_descriptor self,
|
||||
PaintSession& session, enum edge_t edge, uint16_t height, uint8_t terrain, struct tile_descriptor self,
|
||||
struct tile_descriptor neighbour)
|
||||
{
|
||||
ViewportSurfaceDrawTileSideTop(session, edge, height, terrain, self, neighbour, true);
|
||||
@@ -995,7 +995,7 @@ std::optional<colour_t> GetPatrolAreaTileColour(const CoordsXY& pos)
|
||||
return {};
|
||||
}
|
||||
|
||||
static void PaintPatrolArea(paint_session& session, const SurfaceElement& element, int32_t height, uint8_t surfaceShape)
|
||||
static void PaintPatrolArea(PaintSession& session, const SurfaceElement& element, int32_t height, uint8_t surfaceShape)
|
||||
{
|
||||
auto colour = GetPatrolAreaTileColour(session.MapPosition);
|
||||
if (colour)
|
||||
@@ -1014,7 +1014,7 @@ static void PaintPatrolArea(paint_session& session, const SurfaceElement& elemen
|
||||
/**
|
||||
* rct2: 0x0066062C
|
||||
*/
|
||||
void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, const SurfaceElement& tileElement)
|
||||
void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, const SurfaceElement& tileElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -1175,7 +1175,7 @@ void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, co
|
||||
{
|
||||
const CoordsXY& pos = session.MapPosition;
|
||||
const int32_t height2 = (TileElementHeight({ pos.x + 16, pos.y + 16 })) + 3;
|
||||
paint_struct* backup = session.LastPS;
|
||||
PaintStruct* backup = session.LastPS;
|
||||
PaintAddImageAsParent(session, ImageId(SPR_LAND_OWNERSHIP_AVAILABLE), { 16, 16, height2 }, { 1, 1, 0 });
|
||||
session.LastPS = backup;
|
||||
}
|
||||
@@ -1192,7 +1192,7 @@ void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, co
|
||||
{
|
||||
const CoordsXY& pos = session.MapPosition;
|
||||
const int32_t height2 = TileElementHeight({ pos.x + 16, pos.y + 16 });
|
||||
paint_struct* backup = session.LastPS;
|
||||
PaintStruct* backup = session.LastPS;
|
||||
PaintAddImageAsParent(
|
||||
session, ImageId(SPR_LAND_CONSTRUCTION_RIGHTS_AVAILABLE), { 16, 16, height2 + 3 }, { 1, 1, 0 });
|
||||
session.LastPS = backup;
|
||||
@@ -1249,7 +1249,7 @@ void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, co
|
||||
const auto fpId = static_cast<FilterPaletteID>(38);
|
||||
const auto image_id = ImageId(SPR_TERRAIN_SELECTION_CORNER + byte_97B444[local_surfaceShape], fpId);
|
||||
|
||||
paint_struct* backup = session.LastPS;
|
||||
PaintStruct* backup = session.LastPS;
|
||||
PaintAddImageAsParent(session, image_id, { 0, 0, local_height }, { 32, 32, 1 });
|
||||
session.LastPS = backup;
|
||||
}
|
||||
|
||||
@@ -34,8 +34,8 @@
|
||||
|
||||
#include <algorithm>
|
||||
|
||||
static void BlankTilesPaint(paint_session& session, int32_t x, int32_t y);
|
||||
static void PaintTileElementBase(paint_session& session, const CoordsXY& origCoords);
|
||||
static void BlankTilesPaint(PaintSession& session, int32_t x, int32_t y);
|
||||
static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoords);
|
||||
|
||||
const int32_t SEGMENTS_ALL = SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 | SEGMENT_C4 | SEGMENT_C8 | SEGMENT_CC
|
||||
| SEGMENT_D0 | SEGMENT_D4;
|
||||
@@ -44,7 +44,7 @@ const int32_t SEGMENTS_ALL = SEGMENT_B4 | SEGMENT_B8 | SEGMENT_BC | SEGMENT_C0 |
|
||||
*
|
||||
* rct2: 0x0068B35F
|
||||
*/
|
||||
void TileElementPaintSetup(paint_session& session, const CoordsXY& mapCoords, bool isTrackPiecePreview)
|
||||
void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, bool isTrackPiecePreview)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -67,7 +67,7 @@ void TileElementPaintSetup(paint_session& session, const CoordsXY& mapCoords, bo
|
||||
*
|
||||
* rct2: 0x0068B60E
|
||||
*/
|
||||
static void BlankTilesPaint(paint_session& session, int32_t x, int32_t y)
|
||||
static void BlankTilesPaint(PaintSession& session, int32_t x, int32_t y)
|
||||
{
|
||||
int32_t dx = 0;
|
||||
switch (session.CurrentRotation)
|
||||
@@ -113,7 +113,7 @@ bool gShowSupportSegmentHeights = false;
|
||||
*
|
||||
* rct2: 0x0068B3FB
|
||||
*/
|
||||
static void PaintTileElementBase(paint_session& session, const CoordsXY& origCoords)
|
||||
static void PaintTileElementBase(PaintSession& session, const CoordsXY& origCoords)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
@@ -330,7 +330,7 @@ static void PaintTileElementBase(paint_session& session, const CoordsXY& origCoo
|
||||
|
||||
int32_t xOffset = sy * 10;
|
||||
int32_t yOffset = -22 + sx * 10;
|
||||
paint_struct* ps = PaintAddImageAsParent(
|
||||
PaintStruct* ps = PaintAddImageAsParent(
|
||||
session, imageColourFlats, { xOffset, yOffset, segmentHeight }, { 10, 10, 1 },
|
||||
{ xOffset + 1, yOffset + 16, segmentHeight });
|
||||
if (ps != nullptr)
|
||||
@@ -341,7 +341,7 @@ static void PaintTileElementBase(paint_session& session, const CoordsXY& origCoo
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelLeft(paint_session& session, uint16_t height, uint8_t type)
|
||||
void PaintUtilPushTunnelLeft(PaintSession& session, uint16_t height, uint8_t type)
|
||||
{
|
||||
session.LeftTunnels[session.LeftTunnelCount] = { static_cast<uint8_t>((height / 16)), type };
|
||||
if (session.LeftTunnelCount < TUNNEL_MAX_COUNT - 1)
|
||||
@@ -351,7 +351,7 @@ void PaintUtilPushTunnelLeft(paint_session& session, uint16_t height, uint8_t ty
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilPushTunnelRight(paint_session& session, uint16_t height, uint8_t type)
|
||||
void PaintUtilPushTunnelRight(PaintSession& session, uint16_t height, uint8_t type)
|
||||
{
|
||||
session.RightTunnels[session.RightTunnelCount] = { static_cast<uint8_t>((height / 16)), type };
|
||||
if (session.RightTunnelCount < TUNNEL_MAX_COUNT - 1)
|
||||
@@ -361,12 +361,12 @@ void PaintUtilPushTunnelRight(paint_session& session, uint16_t height, uint8_t t
|
||||
}
|
||||
}
|
||||
|
||||
void PaintUtilSetVerticalTunnel(paint_session& session, uint16_t height)
|
||||
void PaintUtilSetVerticalTunnel(PaintSession& session, uint16_t height)
|
||||
{
|
||||
session.VerticalTunnelHeight = height / 16;
|
||||
}
|
||||
|
||||
void PaintUtilSetGeneralSupportHeight(paint_session& session, int16_t height, uint8_t slope)
|
||||
void PaintUtilSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope)
|
||||
{
|
||||
if (session.Support.height >= height)
|
||||
{
|
||||
@@ -376,7 +376,7 @@ void PaintUtilSetGeneralSupportHeight(paint_session& session, int16_t height, ui
|
||||
PaintUtilForceSetGeneralSupportHeight(session, height, slope);
|
||||
}
|
||||
|
||||
void PaintUtilForceSetGeneralSupportHeight(paint_session& session, int16_t height, uint8_t slope)
|
||||
void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope)
|
||||
{
|
||||
session.Support.height = height;
|
||||
session.Support.slope = slope;
|
||||
@@ -386,9 +386,9 @@ const uint16_t segment_offsets[9] = {
|
||||
SEGMENT_B4, SEGMENT_B8, SEGMENT_BC, SEGMENT_C0, SEGMENT_C4, SEGMENT_C8, SEGMENT_CC, SEGMENT_D0, SEGMENT_D4,
|
||||
};
|
||||
|
||||
void PaintUtilSetSegmentSupportHeight(paint_session& session, int32_t segments, uint16_t height, uint8_t slope)
|
||||
void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope)
|
||||
{
|
||||
support_height* supportSegments = session.SupportSegments;
|
||||
SupportHeight* supportSegments = session.SupportSegments;
|
||||
for (int32_t s = 0; s < 9; s++)
|
||||
{
|
||||
if (segments & segment_offsets[s])
|
||||
@@ -410,7 +410,7 @@ uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation)
|
||||
return (segments & 0xFF00) | temp;
|
||||
}
|
||||
|
||||
bool PaintShouldShowHeightMarkers(const paint_session& session, const uint32_t viewportFlag)
|
||||
bool PaintShouldShowHeightMarkers(const PaintSession& session, const uint32_t viewportFlag)
|
||||
{
|
||||
auto dpi = &session.DPI;
|
||||
return (session.ViewFlags & viewportFlag) && (dpi->zoom_level <= ZoomLevel{ 0 });
|
||||
|
||||
@@ -12,7 +12,7 @@
|
||||
#include "../../common.h"
|
||||
#include "../../world/Map.h"
|
||||
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
enum edge_t
|
||||
{
|
||||
@@ -86,24 +86,24 @@ extern const CoordsXY BannerBoundBoxes[][2];
|
||||
|
||||
extern const uint8_t PathSlopeToLandSlope[4];
|
||||
|
||||
void PaintUtilPushTunnelLeft(paint_session& session, uint16_t height, uint8_t type);
|
||||
void PaintUtilPushTunnelRight(paint_session& session, uint16_t height, uint8_t type);
|
||||
void PaintUtilSetVerticalTunnel(paint_session& session, uint16_t height);
|
||||
void PaintUtilPushTunnelLeft(PaintSession& session, uint16_t height, uint8_t type);
|
||||
void PaintUtilPushTunnelRight(PaintSession& session, uint16_t height, uint8_t type);
|
||||
void PaintUtilSetVerticalTunnel(PaintSession& session, uint16_t height);
|
||||
|
||||
void PaintUtilSetGeneralSupportHeight(paint_session& session, int16_t height, uint8_t slope);
|
||||
void PaintUtilForceSetGeneralSupportHeight(paint_session& session, int16_t height, uint8_t slope);
|
||||
void PaintUtilSetSegmentSupportHeight(paint_session& session, int32_t segments, uint16_t height, uint8_t slope);
|
||||
void PaintUtilSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope);
|
||||
void PaintUtilForceSetGeneralSupportHeight(PaintSession& session, int16_t height, uint8_t slope);
|
||||
void PaintUtilSetSegmentSupportHeight(PaintSession& session, int32_t segments, uint16_t height, uint8_t slope);
|
||||
uint16_t PaintUtilRotateSegments(uint16_t segments, uint8_t rotation);
|
||||
|
||||
void TileElementPaintSetup(paint_session& session, const CoordsXY& mapCoords, bool isTrackPiecePreview = false);
|
||||
void TileElementPaintSetup(PaintSession& session, const CoordsXY& mapCoords, bool isTrackPiecePreview = false);
|
||||
|
||||
void PaintEntrance(paint_session& session, uint8_t direction, int32_t height, const EntranceElement& entranceElement);
|
||||
void PaintBanner(paint_session& session, uint8_t direction, int32_t height, const BannerElement& bannerElement);
|
||||
void PaintSurface(paint_session& session, uint8_t direction, uint16_t height, const SurfaceElement& tileElement);
|
||||
void PaintPath(paint_session& session, uint16_t height, const PathElement& tileElement);
|
||||
void PaintSmallScenery(paint_session& session, uint8_t direction, int32_t height, const SmallSceneryElement& sceneryElement);
|
||||
void PaintWall(paint_session& session, uint8_t direction, int32_t height, const WallElement& tileElement);
|
||||
void PaintLargeScenery(paint_session& session, uint8_t direction, uint16_t height, const LargeSceneryElement& tileElement);
|
||||
void PaintTrack(paint_session& session, uint8_t direction, int32_t height, const TrackElement& tileElement);
|
||||
void PaintEntrance(PaintSession& session, uint8_t direction, int32_t height, const EntranceElement& entranceElement);
|
||||
void PaintBanner(PaintSession& session, uint8_t direction, int32_t height, const BannerElement& bannerElement);
|
||||
void PaintSurface(PaintSession& session, uint8_t direction, uint16_t height, const SurfaceElement& tileElement);
|
||||
void PaintPath(PaintSession& session, uint16_t height, const PathElement& tileElement);
|
||||
void PaintSmallScenery(PaintSession& session, uint8_t direction, int32_t height, const SmallSceneryElement& sceneryElement);
|
||||
void PaintWall(PaintSession& session, uint8_t direction, int32_t height, const WallElement& tileElement);
|
||||
void PaintLargeScenery(PaintSession& session, uint8_t direction, uint16_t height, const LargeSceneryElement& tileElement);
|
||||
void PaintTrack(PaintSession& session, uint8_t direction, int32_t height, const TrackElement& tileElement);
|
||||
|
||||
bool PaintShouldShowHeightMarkers(const paint_session& session, const uint32_t viewportFlag);
|
||||
bool PaintShouldShowHeightMarkers(const PaintSession& session, const uint32_t viewportFlag);
|
||||
@@ -46,7 +46,7 @@ static constexpr const uint8_t* DirectionToDoorImageOffset[] = { DirectionToDoor
|
||||
DirectionToDoorImageOffset2, DirectionToDoorImageOffset3 };
|
||||
|
||||
static void PaintWallDoor(
|
||||
paint_session& session, const WallSceneryEntry& wallEntry, ImageId imageId, CoordsXYZ offset, BoundBoxXYZ bbR1,
|
||||
PaintSession& session, const WallSceneryEntry& wallEntry, ImageId imageId, CoordsXYZ offset, BoundBoxXYZ bbR1,
|
||||
BoundBoxXYZ bbR2, BoundBoxXYZ bbL)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -66,7 +66,7 @@ static void PaintWallDoor(
|
||||
}
|
||||
|
||||
static void PaintWallDoor(
|
||||
paint_session& session, const WallSceneryEntry& wallEntry, const WallElement& wallElement, ImageId imageTemplate,
|
||||
PaintSession& session, const WallSceneryEntry& wallEntry, const WallElement& wallElement, ImageId imageTemplate,
|
||||
Direction direction, int32_t height)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -130,7 +130,7 @@ static void PaintWallDoor(
|
||||
}
|
||||
|
||||
static void PaintWallWall(
|
||||
paint_session& session, const WallSceneryEntry& wallEntry, ImageId imageTemplate, uint32_t imageOffset, CoordsXYZ offset,
|
||||
PaintSession& session, const WallSceneryEntry& wallEntry, ImageId imageTemplate, uint32_t imageOffset, CoordsXYZ offset,
|
||||
BoundBoxXYZ boundBox, bool isGhost)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -146,7 +146,7 @@ static void PaintWallWall(
|
||||
}
|
||||
|
||||
static void PaintWallScrollingText(
|
||||
paint_session& session, const WallSceneryEntry& wallEntry, const WallElement& wallElement, Direction direction,
|
||||
PaintSession& session, const WallSceneryEntry& wallEntry, const WallElement& wallElement, Direction direction,
|
||||
int32_t height, const CoordsXYZ& boundsOffset, bool isGhost)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -188,7 +188,7 @@ static void PaintWallScrollingText(
|
||||
}
|
||||
|
||||
static void PaintWallWall(
|
||||
paint_session& session, const WallSceneryEntry& wallEntry, const WallElement& wallElement, ImageId imageTemplate,
|
||||
PaintSession& session, const WallSceneryEntry& wallEntry, const WallElement& wallElement, ImageId imageTemplate,
|
||||
Direction direction, int32_t height, bool isGhost)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
@@ -296,7 +296,7 @@ static void PaintWallWall(
|
||||
PaintWallScrollingText(session, wallEntry, wallElement, direction, height, boundBox.offset, isGhost);
|
||||
}
|
||||
|
||||
void PaintWall(paint_session& session, uint8_t direction, int32_t height, const WallElement& wallElement)
|
||||
void PaintWall(PaintSession& session, uint8_t direction, int32_t height, const WallElement& wallElement)
|
||||
{
|
||||
PROFILED_FUNCTION();
|
||||
|
||||
|
||||
@@ -262,7 +262,7 @@ bool track_paint_util_has_fence(
|
||||
}
|
||||
|
||||
void track_paint_util_paint_floor(
|
||||
paint_session& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4],
|
||||
PaintSession& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4],
|
||||
const StationObject* stationStyle)
|
||||
{
|
||||
if (stationStyle != nullptr && stationStyle->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)
|
||||
@@ -291,7 +291,7 @@ void track_paint_util_paint_floor(
|
||||
}
|
||||
|
||||
void track_paint_util_paint_fences(
|
||||
paint_session& session, uint8_t edges, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride,
|
||||
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))
|
||||
@@ -329,31 +329,31 @@ bool track_paint_util_should_paint_supports(const CoordsXY& position)
|
||||
}
|
||||
|
||||
static void track_paint_util_draw_station_impl(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
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(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement)
|
||||
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);
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_2(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement,
|
||||
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);
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_3(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
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);
|
||||
}
|
||||
|
||||
static void track_paint_util_draw_station_impl(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
const TrackElement& trackElement, int32_t fenceOffsetA, int32_t fenceOffsetB)
|
||||
{
|
||||
CoordsXY position = session.MapPosition;
|
||||
@@ -556,7 +556,7 @@ static void track_paint_util_draw_station_impl(
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_inverted(
|
||||
paint_session& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement,
|
||||
PaintSession& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement,
|
||||
uint8_t stationVariant)
|
||||
{
|
||||
CoordsXY position = session.MapPosition;
|
||||
@@ -759,13 +759,13 @@ void track_paint_util_draw_station_inverted(
|
||||
}
|
||||
|
||||
bool track_paint_util_draw_station_covers(
|
||||
paint_session& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height)
|
||||
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);
|
||||
}
|
||||
|
||||
bool track_paint_util_draw_station_covers_2(
|
||||
paint_session& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height,
|
||||
PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height,
|
||||
uint8_t stationVariant)
|
||||
{
|
||||
if (stationObject == nullptr)
|
||||
@@ -831,7 +831,7 @@ bool track_paint_util_draw_station_covers_2(
|
||||
}
|
||||
|
||||
void track_paint_util_draw_narrow_station_platform(
|
||||
paint_session& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset,
|
||||
PaintSession& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
CoordsXY position = session.MapPosition;
|
||||
@@ -880,7 +880,7 @@ void track_paint_util_draw_narrow_station_platform(
|
||||
}
|
||||
|
||||
void track_paint_util_draw_pier(
|
||||
paint_session& session, const Ride& ride, const StationObject* stationObj, const CoordsXY& position, Direction direction,
|
||||
PaintSession& session, const Ride& ride, const StationObject* stationObj, const CoordsXY& position, Direction direction,
|
||||
int32_t height, const TrackElement& trackElement, uint8_t rotation)
|
||||
{
|
||||
if (stationObj != nullptr && stationObj->Flags & STATION_OBJECT_FLAGS::NO_PLATFORMS)
|
||||
@@ -929,13 +929,13 @@ void track_paint_util_draw_pier(
|
||||
}
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_metal_supports(paint_session& session, Direction direction, uint16_t height, ImageId colour)
|
||||
void track_paint_util_draw_station_metal_supports(PaintSession& session, Direction direction, uint16_t height, ImageId colour)
|
||||
{
|
||||
track_paint_util_draw_station_metal_supports_2(session, direction, height, colour, 3);
|
||||
}
|
||||
|
||||
void track_paint_util_draw_station_metal_supports_2(
|
||||
paint_session& session, Direction direction, uint16_t height, ImageId colour, uint8_t type)
|
||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, uint8_t type)
|
||||
{
|
||||
if (direction & 1)
|
||||
{
|
||||
@@ -1003,7 +1003,7 @@ static constexpr const int8_t right_helix_up_small_quarter_tiles_sprite_map[] =
|
||||
};
|
||||
|
||||
void track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||
paint_session& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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])
|
||||
{
|
||||
@@ -1103,7 +1103,7 @@ static constexpr const int8_t right_helix_up_large_quarter_sprite_map[] = {
|
||||
0, -1, 1, 2, -1, 3, 4,
|
||||
};
|
||||
void track_paint_util_right_helix_up_large_quarter_tiles_paint(
|
||||
paint_session& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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])
|
||||
{
|
||||
@@ -1280,7 +1280,7 @@ static constexpr const int8_t eighth_to_diag_sprite_map[] = {
|
||||
0, 1, 2, -1, 3,
|
||||
};
|
||||
void track_paint_util_eighth_to_diag_tiles_paint(
|
||||
paint_session& session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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])
|
||||
{
|
||||
@@ -1322,7 +1322,7 @@ static constexpr const int8_t diag_sprite_map[4][4] = {
|
||||
};
|
||||
|
||||
void track_paint_util_diag_tiles_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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])
|
||||
{
|
||||
@@ -1444,7 +1444,7 @@ static constexpr const int8_t right_quarter_turn_5_tiles_sprite_map[] = {
|
||||
};
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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])
|
||||
{
|
||||
@@ -1465,8 +1465,8 @@ void track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[][5])
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const SpriteBb sprites[][5])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_5_tiles_sprite_map[trackSequence];
|
||||
if (sprite < 0)
|
||||
@@ -1474,7 +1474,7 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||
return;
|
||||
}
|
||||
|
||||
const sprite_bb* spriteBB = &sprites[direction][sprite];
|
||||
const SpriteBb* spriteBB = &sprites[direction][sprite];
|
||||
const auto imageId = colourFlags.WithIndex(spriteBB->sprite_id);
|
||||
const auto& offset = spriteBB->offset;
|
||||
const auto& bbOffset = spriteBB->bb_offset;
|
||||
@@ -1484,8 +1484,8 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_2(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[][5])
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const SpriteBb sprites[][5])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_5_tiles_sprite_map[trackSequence];
|
||||
if (sprite < 0)
|
||||
@@ -1493,14 +1493,14 @@ void track_paint_util_right_quarter_turn_5_tiles_paint_3(
|
||||
return;
|
||||
}
|
||||
|
||||
const sprite_bb* spriteBB = &sprites[direction][sprite];
|
||||
const SpriteBb* spriteBB = &sprites[direction][sprite];
|
||||
const auto imageId = colourFlags.WithIndex(spriteBB->sprite_id);
|
||||
const auto& offset = spriteBB->offset;
|
||||
PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size);
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_tunnel(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1521,7 +1521,7 @@ void track_paint_util_right_quarter_turn_5_tiles_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence)
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (trackSequence != 1 && trackSequence != 4)
|
||||
{
|
||||
@@ -1620,7 +1620,7 @@ static constexpr const int8_t right_quarter_turn_3_tiles_sprite_map[] = {
|
||||
};
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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])
|
||||
{
|
||||
@@ -1641,7 +1641,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_2(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
@@ -1649,7 +1649,7 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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)
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
@@ -1737,15 +1737,15 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_2_with_height_offset(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_3(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[4][3])
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const SpriteBb sprites[4][3])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
if (sprite < 0)
|
||||
{
|
||||
return;
|
||||
}
|
||||
const sprite_bb* spriteBB = &sprites[direction][sprite];
|
||||
const SpriteBb* spriteBB = &sprites[direction][sprite];
|
||||
const auto& offset = spriteBB->offset;
|
||||
const auto& bbOffset = spriteBB->bb_offset;
|
||||
PaintAddImageAsParent(
|
||||
@@ -1754,8 +1754,8 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_3(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_paint_4(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[4][3])
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const SpriteBb sprites[4][3])
|
||||
{
|
||||
int8_t sprite = right_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
if (sprite < 0)
|
||||
@@ -1763,14 +1763,14 @@ void track_paint_util_right_quarter_turn_3_tiles_paint_4(
|
||||
return;
|
||||
}
|
||||
|
||||
const sprite_bb* spriteBB = &sprites[direction][sprite];
|
||||
const SpriteBb* spriteBB = &sprites[direction][sprite];
|
||||
const auto imageId = colourFlags.WithIndex(spriteBB->sprite_id);
|
||||
const auto& offset = spriteBB->offset;
|
||||
PaintAddImageAsParent(session, imageId, { offset.x, offset.y, height + offset.z }, spriteBB->bb_size);
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_tunnel(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1794,8 +1794,7 @@ void track_paint_util_right_quarter_turn_3_tiles_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3)
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1816,8 +1815,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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
uint8_t tunnelType3)
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0, uint8_t tunnelType3)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1845,7 +1843,7 @@ static constexpr const int8_t left_quarter_turn_3_tiles_sprite_map[] = {
|
||||
};
|
||||
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
@@ -1853,7 +1851,7 @@ void track_paint_util_left_quarter_turn_3_tiles_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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)
|
||||
{
|
||||
int8_t sprite = left_quarter_turn_3_tiles_sprite_map[trackSequence];
|
||||
@@ -1941,7 +1939,7 @@ void track_paint_util_left_quarter_turn_3_tiles_paint_with_height_offset(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_3_tiles_tunnel(
|
||||
paint_session& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence)
|
||||
PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (direction == 0 && trackSequence == 0)
|
||||
{
|
||||
@@ -1965,7 +1963,7 @@ void track_paint_util_left_quarter_turn_3_tiles_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_1_tile_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
PaintSession& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
const ImageId& colourFlags, const uint32_t* sprites)
|
||||
{
|
||||
auto imageId = colourFlags.WithIndex(sprites[direction]);
|
||||
@@ -1992,7 +1990,7 @@ void track_paint_util_left_quarter_turn_1_tile_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_right_quarter_turn_1_tile_tunnel(
|
||||
paint_session& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
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(
|
||||
@@ -2000,7 +1998,7 @@ void track_paint_util_right_quarter_turn_1_tile_tunnel(
|
||||
}
|
||||
|
||||
void track_paint_util_left_quarter_turn_1_tile_tunnel(
|
||||
paint_session& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
PaintSession& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
uint8_t endTunnel)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2018,7 +2016,7 @@ void track_paint_util_left_quarter_turn_1_tile_tunnel(
|
||||
}
|
||||
}
|
||||
|
||||
void track_paint_util_spinning_tunnel_paint(paint_session& session, int8_t thickness, int16_t height, Direction direction)
|
||||
void track_paint_util_spinning_tunnel_paint(PaintSession& session, int8_t thickness, int16_t height, Direction direction)
|
||||
{
|
||||
int32_t frame = gCurrentTicks >> 2 & 3;
|
||||
auto colourFlags = session.TrackColours[SCHEME_SUPPORTS];
|
||||
@@ -2051,7 +2049,7 @@ void track_paint_util_spinning_tunnel_paint(paint_session& session, int8_t thick
|
||||
}
|
||||
|
||||
void track_paint_util_onride_photo_small_paint(
|
||||
paint_session& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
{ SPR_ON_RIDE_PHOTO_SIGN_SMALL_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_SMALL_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_SMALL_S },
|
||||
@@ -2089,7 +2087,7 @@ void track_paint_util_onride_photo_small_paint(
|
||||
}
|
||||
|
||||
void track_paint_util_onride_photo_paint(
|
||||
paint_session& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
{ SPR_ON_RIDE_PHOTO_SIGN_SW_NE, SPR_ON_RIDE_PHOTO_CAMERA_S, SPR_ON_RIDE_PHOTO_CAMERA_FLASH_S },
|
||||
@@ -2139,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(paint_session& session, Direction direction, uint8_t trackSequence)
|
||||
void track_paint_util_right_vertical_loop_segments(PaintSession& session, Direction direction, uint8_t trackSequence)
|
||||
{
|
||||
if (trackSequence > 9)
|
||||
{
|
||||
@@ -2151,7 +2149,7 @@ void track_paint_util_right_vertical_loop_segments(paint_session& session, Direc
|
||||
session, PaintUtilRotateSegments(RightVerticalLoopSegments[trackSequence], direction), 0xFFFF, 0);
|
||||
}
|
||||
|
||||
void track_paint_util_left_corkscrew_up_supports(paint_session& session, Direction direction, uint16_t height)
|
||||
void track_paint_util_left_corkscrew_up_supports(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)
|
||||
@@ -2173,7 +2171,7 @@ void track_paint_util_left_corkscrew_up_supports(paint_session& session, Directi
|
||||
*
|
||||
* rct2: 0x006C4794
|
||||
*/
|
||||
void PaintTrack(paint_session& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
void PaintTrack(PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement)
|
||||
{
|
||||
RideId rideIndex = trackElement.GetRideIndex();
|
||||
auto ride = get_ride(rideIndex);
|
||||
|
||||
@@ -282,122 +282,122 @@ extern const size_t MiniGolfPeepAnimationLengths[];
|
||||
bool track_paint_util_has_fence(
|
||||
enum edge_t edge, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride, uint8_t rotation);
|
||||
void track_paint_util_paint_floor(
|
||||
paint_session& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4],
|
||||
PaintSession& session, uint8_t edges, ImageId colourFlags, uint16_t height, const uint32_t floorSprites[4],
|
||||
const StationObject* stationStyle);
|
||||
void track_paint_util_paint_fences(
|
||||
paint_session& session, uint8_t edges, const CoordsXY& position, const TrackElement& trackElement, const Ride& ride,
|
||||
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(
|
||||
paint_session& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height);
|
||||
PaintSession& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height);
|
||||
bool track_paint_util_draw_station_covers_2(
|
||||
paint_session& session, enum edge_t edge, bool hasFence, const StationObject* stationObject, uint16_t height,
|
||||
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(
|
||||
paint_session& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset,
|
||||
PaintSession& session, const Ride& ride, Direction direction, int32_t height, int32_t zOffset,
|
||||
const TrackElement& trackElement);
|
||||
void track_paint_util_draw_station(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement);
|
||||
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement);
|
||||
void track_paint_util_draw_station_2(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, const TrackElement& trackElement,
|
||||
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(
|
||||
paint_session& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
PaintSession& session, const Ride& ride, Direction direction, uint16_t height, uint16_t coverHeight,
|
||||
const TrackElement& trackElement);
|
||||
void track_paint_util_draw_station_inverted(
|
||||
paint_session& session, const Ride& ride, Direction direction, int32_t height, const TrackElement& trackElement,
|
||||
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(
|
||||
paint_session& session, const Ride& ride, const StationObject* stationObject, const CoordsXY& position, Direction direction,
|
||||
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(paint_session& session, Direction direction, uint16_t height, ImageId colour);
|
||||
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(
|
||||
paint_session& session, Direction direction, uint16_t height, ImageId colour, uint8_t type);
|
||||
PaintSession& session, Direction direction, uint16_t height, ImageId colour, uint8_t type);
|
||||
|
||||
void track_paint_util_right_quarter_turn_5_tiles_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[][5]);
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[][5]);
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
void track_paint_util_right_quarter_turn_5_tiles_wooden_supports(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence);
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence);
|
||||
void track_paint_util_right_quarter_turn_3_tiles_25_deg_up_tunnel(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType0,
|
||||
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(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[4][3]);
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, const ImageId& colourFlags,
|
||||
const sprite_bb sprites[4][3]);
|
||||
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(
|
||||
paint_session& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
PaintSession& session, int16_t height, Direction direction, uint8_t trackSequence, uint8_t tunnelType);
|
||||
void track_paint_util_left_quarter_turn_3_tiles_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence);
|
||||
PaintSession& session, int16_t height, uint8_t tunnelType, Direction direction, uint8_t trackSequence);
|
||||
void track_paint_util_left_quarter_turn_1_tile_paint(
|
||||
paint_session& session, int8_t thickness, int16_t height, int16_t boundBoxZOffset, Direction direction,
|
||||
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(paint_session& session, int8_t thickness, int16_t height, Direction direction);
|
||||
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(
|
||||
paint_session& session, Direction direction, int32_t height, const TrackElement& trackElement);
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement);
|
||||
void track_paint_util_onride_photo_paint(
|
||||
paint_session& session, Direction direction, int32_t height, const TrackElement& trackElement);
|
||||
PaintSession& session, Direction direction, int32_t height, const TrackElement& trackElement);
|
||||
void track_paint_util_right_helix_up_small_quarter_tiles_paint(
|
||||
paint_session& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, const int8_t thickness[2], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, const int8_t thickness[4][4], int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, int8_t thickness, int16_t height, Direction direction, uint8_t trackSequence,
|
||||
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(
|
||||
paint_session& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
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(
|
||||
paint_session& session, Direction direction, uint16_t baseHeight, int8_t startOffset, uint8_t startTunnel, int8_t endOffset,
|
||||
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(paint_session& session, Direction direction, uint8_t trackSequence);
|
||||
void track_paint_util_right_vertical_loop_segments(PaintSession& session, Direction direction, uint8_t trackSequence);
|
||||
|
||||
void track_paint_util_left_corkscrew_up_supports(paint_session& session, Direction direction, uint16_t height);
|
||||
void track_paint_util_left_corkscrew_up_supports(PaintSession& session, Direction direction, uint16_t height);
|
||||
|
||||
using TRACK_PAINT_FUNCTION = void (*)(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
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);
|
||||
|
||||
|
||||
@@ -30,7 +30,7 @@ struct Ride;
|
||||
struct rct_ride_entry;
|
||||
struct CarEntry;
|
||||
class DataSerialiser;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
|
||||
struct GForces
|
||||
{
|
||||
@@ -270,7 +270,7 @@ struct Vehicle : EntityBase
|
||||
}
|
||||
void ApplyMass(int16_t appliedMass);
|
||||
void Serialise(DataSerialiser& stream);
|
||||
void Paint(paint_session& session, int32_t imageDirection) const;
|
||||
void Paint(PaintSession& session, int32_t imageDirection) const;
|
||||
|
||||
friend void UpdateRotatingDefault(Vehicle& vehicle);
|
||||
friend void UpdateRotatingEnterprise(Vehicle& vehicle);
|
||||
|
||||
+137
-137
File diff suppressed because it is too large.
Load diff
@@ -11,7 +11,7 @@
|
||||
|
||||
#include "../common.h"
|
||||
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
struct CarEntry;
|
||||
struct Vehicle;
|
||||
|
||||
@@ -28,33 +28,33 @@ struct vehicle_boundbox
|
||||
extern const vehicle_boundbox VehicleBoundboxes[16][224];
|
||||
|
||||
void vehicle_visual_default(
|
||||
paint_session& session, int32_t imageDirection, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
|
||||
PaintSession& session, int32_t imageDirection, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
|
||||
void vehicle_visual_roto_drop(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void VehicleVisualObservationTower(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_river_rapids(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_reverser(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_splash_boats_or_water_coaster(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_launched_freefall(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_splash_effect(paint_session& session, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
|
||||
void vehicle_visual_splash_effect(PaintSession& session, int32_t z, const Vehicle* vehicle, const CarEntry* carEntry);
|
||||
void vehicle_visual_virginia_reel(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_submarine(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry);
|
||||
void vehicle_visual_mini_golf_player(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
|
||||
void VehicleVisualMiniGolfBall(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle);
|
||||
@@ -164,7 +164,7 @@ enum
|
||||
SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_FRONT_SE_NE_PART_0 = 22333,
|
||||
};
|
||||
|
||||
static ImageId air_powered_vertical_rc_get_support_colour(paint_session& session)
|
||||
static ImageId air_powered_vertical_rc_get_support_colour(PaintSession& session)
|
||||
{
|
||||
auto colourFlags = session.TrackColours[SCHEME_SUPPORTS];
|
||||
auto trackColour = session.TrackColours[SCHEME_TRACK];
|
||||
@@ -177,7 +177,7 @@ static ImageId air_powered_vertical_rc_get_support_colour(paint_session& session
|
||||
|
||||
/** rct2: 0x008AFAD4 */
|
||||
static void air_powered_vertical_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -199,7 +199,7 @@ static void air_powered_vertical_rc_track_flat(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_station(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -227,10 +227,10 @@ static void air_powered_vertical_rc_track_station(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb imageIds[4][5] = {
|
||||
static constexpr const SpriteBb imageIds[4][5] = {
|
||||
{
|
||||
{ SPR_AIR_POWERED_VERTICAL_RC_QUARTER_TURN_5_SW_SE_PART_0, { 0, 2, 0 }, { 0, 0, 0 }, { 32, 32, 2 } },
|
||||
{ SPR_AIR_POWERED_VERTICAL_RC_QUARTER_TURN_5_SW_SE_PART_1, { 0, 16, 0 }, { 0, 0, 0 }, { 32, 16, 2 } },
|
||||
@@ -308,7 +308,7 @@ static void air_powered_vertical_rc_track_right_quarter_turn_5(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -317,7 +317,7 @@ static void air_powered_vertical_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AFB74 */
|
||||
static void air_powered_vertical_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -346,7 +346,7 @@ static void air_powered_vertical_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AFB84 */
|
||||
static void air_powered_vertical_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -374,7 +374,7 @@ static void air_powered_vertical_rc_track_flat_to_right_bank(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
air_powered_vertical_rc_track_flat_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -382,17 +382,17 @@ static void air_powered_vertical_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008AFBA4 */
|
||||
static void air_powered_vertical_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
air_powered_vertical_rc_track_flat_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb imageIds[4][5] = {
|
||||
static constexpr const SpriteBb imageIds[4][5] = {
|
||||
{
|
||||
{ SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 3 } },
|
||||
{ SPR_AIR_POWERED_VERTICAL_RC_BANKED_QUARTER_TURN_5_SW_SE_PART_1, { 0, 0, 0 }, { 0, 16, 0 }, { 32, 16, 3 } },
|
||||
@@ -484,7 +484,7 @@ static void air_powered_vertical_rc_track_banked_right_quarter_turn_5(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -494,7 +494,7 @@ static void air_powered_vertical_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AFBD4 */
|
||||
static void air_powered_vertical_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -523,14 +523,14 @@ static void air_powered_vertical_rc_track_left_bank(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
air_powered_vertical_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -552,7 +552,7 @@ static void air_powered_vertical_rc_track_brakes(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_vertical_slope_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t trackImageIds[7][4] = {
|
||||
@@ -774,7 +774,7 @@ static void air_powered_vertical_rc_track_vertical_slope_up(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_vertical_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -811,7 +811,7 @@ static void air_powered_vertical_rc_track_vertical_up(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_vertical_top(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (direction == 2 || direction == 3)
|
||||
@@ -901,14 +901,14 @@ static void air_powered_vertical_rc_track_vertical_top(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_vertical_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
air_powered_vertical_rc_track_vertical_up(session, ride, trackSequence ^ 1, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_vertical_slope_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
air_powered_vertical_rc_track_vertical_slope_up(
|
||||
@@ -916,7 +916,7 @@ static void air_powered_vertical_rc_track_vertical_slope_down(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_booster(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
// The booster piece is borrowed from the Reverse Freefall Colour.
|
||||
@@ -946,7 +946,7 @@ static void air_powered_vertical_rc_track_booster(
|
||||
}
|
||||
|
||||
static void air_powered_vertical_rc_track_onride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
namespace AlpineRC
|
||||
{
|
||||
static void TrackFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -93,7 +93,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackStation(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -126,7 +126,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void Track25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -209,7 +209,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackFlatTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -290,7 +290,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void Track25DegUpToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -371,28 +371,28 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void Track25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
Track25DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackFlatTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
Track25DegUpToFlat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void Track25DegDownToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
TrackFlatTo25DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -519,7 +519,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -527,7 +527,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -727,7 +727,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -735,7 +735,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftEighthToDiag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -899,7 +899,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightEighthToDiag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1063,7 +1063,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftEighthToOrthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1071,7 +1071,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightEighthToOrthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1079,7 +1079,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1232,7 +1232,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1385,7 +1385,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegUpToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1538,7 +1538,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagFlatTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1691,7 +1691,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1844,7 +1844,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagFlatTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1995,7 +1995,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegDownToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2148,7 +2148,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackFlatToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2193,7 +2193,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackFlatToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2240,21 +2240,21 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftBankToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
TrackFlatToRightBank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackRightBankToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
TrackFlatToLeftBank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackLeftBankTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2312,7 +2312,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightBankTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2370,7 +2370,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void Track25DegUpToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2428,7 +2428,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void Track25DegUpToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2486,35 +2486,35 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftBankTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
Track25DegUpToRightBank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackRightBankTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
Track25DegUpToLeftBank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void Track25DegDownToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
TrackRightBankTo25DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void Track25DegDownToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
TrackLeftBankTo25DegUp(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2557,14 +2557,14 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
TrackLeftBank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void TrackDiagFlatToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2647,7 +2647,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagFlatToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2730,7 +2730,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagLeftBankToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2813,7 +2813,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagRightBankToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2896,7 +2896,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagLeftBankTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2979,7 +2979,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagRightBankTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3062,7 +3062,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegUpToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3145,7 +3145,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegUpToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3228,7 +3228,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagLeftBankTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3309,7 +3309,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagRightBankTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3390,7 +3390,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegDownToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3473,7 +3473,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiag25DegDownToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3556,7 +3556,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3635,7 +3635,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackDiagRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3714,7 +3714,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn3Bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3849,7 +3849,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn3Bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3857,7 +3857,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackBankedLeftQuarterTurn5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4065,7 +4065,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackBankedRightQuarterTurn5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -4073,7 +4073,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftEighthBankToDiag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4237,7 +4237,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightEighthBankToDiag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4401,7 +4401,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftEighthBankToOrthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -4409,7 +4409,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightEighthBankToOrthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -4417,7 +4417,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn3Tile25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4515,7 +4515,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn3Tile25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4618,7 +4618,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn3Tile25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -4626,7 +4626,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn3Tile25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -4634,7 +4634,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn525DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4834,7 +4834,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn525DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5034,7 +5034,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn525DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -5042,7 +5042,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn525DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -5050,7 +5050,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackSBendLeft(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5204,7 +5204,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackSBendRight(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5358,7 +5358,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftHalfBankedHelixUpSmall(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5623,7 +5623,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightHalfBankedHelixUpSmall(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5888,7 +5888,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftHalfBankedHelixDownSmall(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -5901,7 +5901,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightHalfBankedHelixDownSmall(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -5914,7 +5914,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftHalfBankedHelixUpLarge(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6324,7 +6324,7 @@ namespace AlpineRC
|
||||
}
|
||||
}
|
||||
static void TrackRightHalfBankedHelixUpLarge(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6745,7 +6745,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftHalfBankedHelixDownLarge(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -6758,7 +6758,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightHalfBankedHelixDownLarge(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -6771,7 +6771,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackBrakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -6802,7 +6802,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftBankToLeftQuarterTurn3Tile25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6904,7 +6904,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightBankToRightQuarterTurn3Tile25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7006,7 +7006,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackLeftQuarterTurn3Tile25DegDownToLeftBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7108,7 +7108,7 @@ namespace AlpineRC
|
||||
}
|
||||
|
||||
static void TrackRightQuarterTurn3Tile25DegDownToRightBank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
|
||||
@@ -32,7 +32,7 @@ static constexpr const uint32_t _BobsleighBlockBrakeImages[NumOrthogonalDirectio
|
||||
|
||||
/** rct2: 0x006FE5B4 */
|
||||
static void bobsleigh_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -98,7 +98,7 @@ static void bobsleigh_rc_track_flat(
|
||||
}
|
||||
|
||||
static void bobsleigh_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -123,7 +123,7 @@ static void bobsleigh_rc_track_station(
|
||||
|
||||
/** rct2: 0x006FE5C4 */
|
||||
static void bobsleigh_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -225,7 +225,7 @@ static void bobsleigh_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x006FE5D4 */
|
||||
static void bobsleigh_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -327,7 +327,7 @@ static void bobsleigh_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x006FE5E4 */
|
||||
static void bobsleigh_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -429,7 +429,7 @@ static void bobsleigh_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x006FE5F4 */
|
||||
static void bobsleigh_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -437,7 +437,7 @@ static void bobsleigh_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x006FE604 */
|
||||
static void bobsleigh_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -445,7 +445,7 @@ static void bobsleigh_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x006FE614 */
|
||||
static void bobsleigh_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -453,7 +453,7 @@ static void bobsleigh_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x006FE624 */
|
||||
static void bobsleigh_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -688,7 +688,7 @@ static void bobsleigh_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x006FE634 */
|
||||
static void bobsleigh_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -697,7 +697,7 @@ static void bobsleigh_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x006FE644 */
|
||||
static void bobsleigh_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -747,7 +747,7 @@ static void bobsleigh_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x006FE654 */
|
||||
static void bobsleigh_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -797,7 +797,7 @@ static void bobsleigh_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x006FE664 */
|
||||
static void bobsleigh_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -847,7 +847,7 @@ static void bobsleigh_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x006FE674 */
|
||||
static void bobsleigh_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -897,7 +897,7 @@ static void bobsleigh_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x006FE684 */
|
||||
static void bobsleigh_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1132,7 +1132,7 @@ static void bobsleigh_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x006FE694 */
|
||||
static void bobsleigh_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1141,7 +1141,7 @@ static void bobsleigh_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x006FE6A4 */
|
||||
static void bobsleigh_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1198,7 +1198,7 @@ static void bobsleigh_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x006FE6B4 */
|
||||
static void bobsleigh_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1255,7 +1255,7 @@ static void bobsleigh_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x006FE6C4 */
|
||||
static void bobsleigh_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1312,7 +1312,7 @@ static void bobsleigh_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x006FE6D4 */
|
||||
static void bobsleigh_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1369,7 +1369,7 @@ static void bobsleigh_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x006FE6E4 */
|
||||
static void bobsleigh_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1377,7 +1377,7 @@ static void bobsleigh_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x006FE6F4 */
|
||||
static void bobsleigh_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1385,7 +1385,7 @@ static void bobsleigh_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x006FE704 */
|
||||
static void bobsleigh_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1393,7 +1393,7 @@ static void bobsleigh_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x006FE714 */
|
||||
static void bobsleigh_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1401,7 +1401,7 @@ static void bobsleigh_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x006FE724 */
|
||||
static void bobsleigh_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1451,7 +1451,7 @@ static void bobsleigh_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x006FE734 */
|
||||
static void bobsleigh_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bobsleigh_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1459,7 +1459,7 @@ static void bobsleigh_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x006FE744 */
|
||||
static void bobsleigh_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1656,7 +1656,7 @@ static void bobsleigh_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x006FE754 */
|
||||
static void bobsleigh_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1853,7 +1853,7 @@ static void bobsleigh_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x006FE794 */
|
||||
static void bobsleigh_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2001,7 +2001,7 @@ static void bobsleigh_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x006FE7A4 */
|
||||
static void bobsleigh_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2010,7 +2010,7 @@ static void bobsleigh_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x006FE7B4 */
|
||||
static void bobsleigh_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2158,7 +2158,7 @@ static void bobsleigh_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x006FE7C4 */
|
||||
static void bobsleigh_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2167,7 +2167,7 @@ static void bobsleigh_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x006FE7D4 */
|
||||
static void bobsleigh_rc_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2457,7 +2457,7 @@ static void bobsleigh_rc_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x006FE7E4 */
|
||||
static void bobsleigh_rc_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2747,7 +2747,7 @@ static void bobsleigh_rc_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x006FE7F4 */
|
||||
static void bobsleigh_rc_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -2762,7 +2762,7 @@ static void bobsleigh_rc_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x006FE804 */
|
||||
static void bobsleigh_rc_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -2776,7 +2776,7 @@ static void bobsleigh_rc_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x006FE814 */
|
||||
static void bobsleigh_rc_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3240,7 +3240,7 @@ static void bobsleigh_rc_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x006FE824 */
|
||||
static void bobsleigh_rc_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3704,7 +3704,7 @@ static void bobsleigh_rc_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x006FE834 */
|
||||
static void bobsleigh_rc_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -3719,7 +3719,7 @@ static void bobsleigh_rc_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x006FE844 */
|
||||
static void bobsleigh_rc_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -3733,7 +3733,7 @@ static void bobsleigh_rc_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x006FE854 */
|
||||
static void bobsleigh_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -3769,7 +3769,7 @@ static void bobsleigh_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x006FE864 */
|
||||
static void bobsleigh_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
@@ -3807,7 +3807,7 @@ static void bobsleigh_rc_track_block_brakes(
|
||||
}
|
||||
|
||||
static void bobsleigh_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -228,7 +228,7 @@ enum
|
||||
};
|
||||
|
||||
static void classic_wooden_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
|
||||
{
|
||||
@@ -259,7 +259,7 @@ static void classic_wooden_rc_track_flat_to_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][1][2] = {
|
||||
@@ -292,21 +292,21 @@ static void classic_wooden_rc_track_flat_to_right_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_flat_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_flat_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][1][2] = {
|
||||
@@ -338,14 +338,14 @@ static void classic_wooden_rc_track_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][1][2] = {
|
||||
@@ -385,7 +385,7 @@ static void classic_wooden_rc_track_left_bank_to_25_deg_up(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][1][2] = {
|
||||
@@ -426,7 +426,7 @@ static void classic_wooden_rc_track_right_bank_to_25_deg_up(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][1][2] = {
|
||||
@@ -467,7 +467,7 @@ static void classic_wooden_rc_track_25_deg_up_to_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][1][2] = {
|
||||
@@ -508,35 +508,35 @@ static void classic_wooden_rc_track_25_deg_up_to_right_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][7][2] = {
|
||||
@@ -704,7 +704,7 @@ static void classic_wooden_rc_track_banked_right_quarter_turn_5(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -713,7 +713,7 @@ static void classic_wooden_rc_track_banked_left_quarter_turn_5(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -824,7 +824,7 @@ static void classic_wooden_rc_track_right_quarter_turn_3_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -832,7 +832,7 @@ static void classic_wooden_rc_track_left_quarter_turn_3_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][5][2] = {
|
||||
@@ -963,7 +963,7 @@ static void classic_wooden_rc_track_left_eighth_bank_to_diag(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][5][2] = {
|
||||
@@ -1102,7 +1102,7 @@ static void classic_wooden_rc_track_right_eighth_bank_to_diag(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1110,7 +1110,7 @@ static void classic_wooden_rc_track_left_eighth_bank_to_orthogonal(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1118,7 +1118,7 @@ static void classic_wooden_rc_track_right_eighth_bank_to_orthogonal(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1216,7 +1216,7 @@ static void classic_wooden_rc_track_diag_flat_to_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1314,7 +1314,7 @@ static void classic_wooden_rc_track_diag_flat_to_right_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_flat_to_right_bank(
|
||||
@@ -1322,14 +1322,14 @@ static void classic_wooden_rc_track_diag_left_bank_to_flat(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_flat_to_left_bank(session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1427,14 +1427,14 @@ static void classic_wooden_rc_track_diag_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_left_bank(session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1532,7 +1532,7 @@ static void classic_wooden_rc_track_diag_left_bank_to_25_deg_up(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1630,7 +1630,7 @@ static void classic_wooden_rc_track_diag_right_bank_to_25_deg_up(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1728,7 +1728,7 @@ static void classic_wooden_rc_track_diag_25_deg_up_to_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb_2 imageIds[4][4][2] = {
|
||||
@@ -1826,7 +1826,7 @@ static void classic_wooden_rc_track_diag_25_deg_up_to_right_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_25_deg_up_to_right_bank(
|
||||
@@ -1834,7 +1834,7 @@ static void classic_wooden_rc_track_diag_left_bank_to_25_deg_down(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_25_deg_up_to_left_bank(
|
||||
@@ -1842,7 +1842,7 @@ static void classic_wooden_rc_track_diag_right_bank_to_25_deg_down(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_right_bank_to_25_deg_up(
|
||||
@@ -1850,7 +1850,7 @@ static void classic_wooden_rc_track_diag_25_deg_down_to_left_bank(
|
||||
}
|
||||
|
||||
static void classic_wooden_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, Direction direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
classic_wooden_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x008AE6E0 */
|
||||
static void compact_inverted_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -74,7 +74,7 @@ static void compact_inverted_rc_track_flat(
|
||||
|
||||
/** rct2: 0x008AE950, 0x008AE960, 0x008AE970 */
|
||||
static void compact_inverted_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -102,7 +102,7 @@ static void compact_inverted_rc_track_station(
|
||||
|
||||
/** rct2: 0x008AE6F0 */
|
||||
static void compact_inverted_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -196,7 +196,7 @@ static void compact_inverted_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE700 */
|
||||
static void compact_inverted_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -266,7 +266,7 @@ static void compact_inverted_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AE710 */
|
||||
static void compact_inverted_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -360,7 +360,7 @@ static void compact_inverted_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE720 */
|
||||
static void compact_inverted_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -442,7 +442,7 @@ static void compact_inverted_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AE730 */
|
||||
static void compact_inverted_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -548,7 +548,7 @@ static void compact_inverted_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE740 */
|
||||
static void compact_inverted_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -642,7 +642,7 @@ static void compact_inverted_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008AE750 */
|
||||
static void compact_inverted_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -650,7 +650,7 @@ static void compact_inverted_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE760 */
|
||||
static void compact_inverted_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -658,7 +658,7 @@ static void compact_inverted_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AE770 */
|
||||
static void compact_inverted_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -666,7 +666,7 @@ static void compact_inverted_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE780 */
|
||||
static void compact_inverted_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -674,7 +674,7 @@ static void compact_inverted_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AE790 */
|
||||
static void compact_inverted_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -682,7 +682,7 @@ static void compact_inverted_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE7A0 */
|
||||
static void compact_inverted_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -690,7 +690,7 @@ static void compact_inverted_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008AE7B0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -873,7 +873,7 @@ static void compact_inverted_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AE7C0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -882,7 +882,7 @@ static void compact_inverted_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AE7D0 */
|
||||
static void compact_inverted_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -925,7 +925,7 @@ static void compact_inverted_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AE7E0 */
|
||||
static void compact_inverted_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -968,7 +968,7 @@ static void compact_inverted_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008AE7F0 */
|
||||
static void compact_inverted_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1011,7 +1011,7 @@ static void compact_inverted_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008AE800 */
|
||||
static void compact_inverted_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1054,7 +1054,7 @@ static void compact_inverted_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008AE810 */
|
||||
static void compact_inverted_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1237,7 +1237,7 @@ static void compact_inverted_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AE820 */
|
||||
static void compact_inverted_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1247,7 +1247,7 @@ static void compact_inverted_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AE830 */
|
||||
static void compact_inverted_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1314,7 +1314,7 @@ static void compact_inverted_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE840 */
|
||||
static void compact_inverted_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1381,7 +1381,7 @@ static void compact_inverted_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE850 */
|
||||
static void compact_inverted_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1448,7 +1448,7 @@ static void compact_inverted_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AE860 */
|
||||
static void compact_inverted_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1515,7 +1515,7 @@ static void compact_inverted_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008AE870 */
|
||||
static void compact_inverted_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1523,7 +1523,7 @@ static void compact_inverted_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE880 */
|
||||
static void compact_inverted_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1531,7 +1531,7 @@ static void compact_inverted_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE890 */
|
||||
static void compact_inverted_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1539,7 +1539,7 @@ static void compact_inverted_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AE8A0 */
|
||||
static void compact_inverted_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1547,7 +1547,7 @@ static void compact_inverted_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008AE8B0 */
|
||||
static void compact_inverted_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1590,7 +1590,7 @@ static void compact_inverted_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x008AE8C0 */
|
||||
static void compact_inverted_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1598,7 +1598,7 @@ static void compact_inverted_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x008AE8D0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1781,7 +1781,7 @@ static void compact_inverted_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE8E0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1964,7 +1964,7 @@ static void compact_inverted_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE8F0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1974,7 +1974,7 @@ static void compact_inverted_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE900 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1984,7 +1984,7 @@ static void compact_inverted_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE910 */
|
||||
static void compact_inverted_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2157,7 +2157,7 @@ static void compact_inverted_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008AE920 */
|
||||
static void compact_inverted_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2330,7 +2330,7 @@ static void compact_inverted_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008AE930 */
|
||||
static void compact_inverted_rc_track_left_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2635,7 +2635,7 @@ static void compact_inverted_rc_track_left_vertical_loop(
|
||||
|
||||
/** rct2: 0x008AE940 */
|
||||
static void compact_inverted_rc_track_right_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2940,7 +2940,7 @@ static void compact_inverted_rc_track_right_vertical_loop(
|
||||
|
||||
/** rct2: 0x008AE980 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3060,7 +3060,7 @@ static void compact_inverted_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008AE990 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3069,7 +3069,7 @@ static void compact_inverted_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008AE9A0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3189,7 +3189,7 @@ static void compact_inverted_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008AE9B0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3198,7 +3198,7 @@ static void compact_inverted_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008AE9C0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3293,7 +3293,7 @@ static void compact_inverted_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE9D0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3388,7 +3388,7 @@ static void compact_inverted_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AE9E0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3398,7 +3398,7 @@ static void compact_inverted_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AE9F0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3408,7 +3408,7 @@ static void compact_inverted_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AEA00 */
|
||||
static void compact_inverted_rc_track_left_twist_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3527,7 +3527,7 @@ static void compact_inverted_rc_track_left_twist_down_to_up(
|
||||
|
||||
/** rct2: 0x008AEA10 */
|
||||
static void compact_inverted_rc_track_right_twist_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3646,7 +3646,7 @@ static void compact_inverted_rc_track_right_twist_down_to_up(
|
||||
|
||||
/** rct2: 0x008AEA20 */
|
||||
static void compact_inverted_rc_track_left_twist_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3765,7 +3765,7 @@ static void compact_inverted_rc_track_left_twist_up_to_down(
|
||||
|
||||
/** rct2: 0x008AEA30 */
|
||||
static void compact_inverted_rc_track_right_twist_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3884,7 +3884,7 @@ static void compact_inverted_rc_track_right_twist_up_to_down(
|
||||
|
||||
/** rct2: 0x008AEA40 */
|
||||
static void compact_inverted_rc_track_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4036,7 +4036,7 @@ static void compact_inverted_rc_track_half_loop_up(
|
||||
|
||||
/** rct2: 0x008AEA50 */
|
||||
static void compact_inverted_rc_track_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_half_loop_up(session, ride, 3 - trackSequence, direction, height, trackElement);
|
||||
@@ -4044,7 +4044,7 @@ static void compact_inverted_rc_track_half_loop_down(
|
||||
|
||||
/** rct2: 0x008AEA60 */
|
||||
static void compact_inverted_rc_track_left_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4162,7 +4162,7 @@ static void compact_inverted_rc_track_left_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008AEA70 */
|
||||
static void compact_inverted_rc_track_right_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4280,7 +4280,7 @@ static void compact_inverted_rc_track_right_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008AEA80 */
|
||||
static void compact_inverted_rc_track_left_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_right_corkscrew_up(session, ride, 2 - trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
@@ -4288,7 +4288,7 @@ static void compact_inverted_rc_track_left_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008AEA90 */
|
||||
static void compact_inverted_rc_track_right_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_left_corkscrew_up(session, ride, 2 - trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -4296,7 +4296,7 @@ static void compact_inverted_rc_track_right_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008AEAD0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4341,7 +4341,7 @@ static void compact_inverted_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AEAB0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4387,7 +4387,7 @@ static void compact_inverted_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AEAC0 */
|
||||
static void compact_inverted_rc_track_left_quarter_turn_1_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
@@ -4396,7 +4396,7 @@ static void compact_inverted_rc_track_left_quarter_turn_1_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AEAE0 */
|
||||
static void compact_inverted_rc_track_right_quarter_turn_1_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
@@ -4405,7 +4405,7 @@ static void compact_inverted_rc_track_right_quarter_turn_1_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AEAA0 */
|
||||
static void compact_inverted_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4438,7 +4438,7 @@ static void compact_inverted_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x008AEAF0 */
|
||||
static void compact_inverted_rc_track_left_quarter_banked_helix_large_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4621,7 +4621,7 @@ static void compact_inverted_rc_track_left_quarter_banked_helix_large_up(
|
||||
|
||||
/** rct2: 0x008AEB00 */
|
||||
static void compact_inverted_rc_track_right_quarter_banked_helix_large_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4804,7 +4804,7 @@ static void compact_inverted_rc_track_right_quarter_banked_helix_large_up(
|
||||
|
||||
/** rct2: 0x008AEB10 */
|
||||
static void compact_inverted_rc_track_left_quarter_banked_helix_large_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4987,7 +4987,7 @@ static void compact_inverted_rc_track_left_quarter_banked_helix_large_down(
|
||||
|
||||
/** rct2: 0x008AEB20 */
|
||||
static void compact_inverted_rc_track_right_quarter_banked_helix_large_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5170,7 +5170,7 @@ static void compact_inverted_rc_track_right_quarter_banked_helix_large_down(
|
||||
|
||||
/** rct2: 0x008AEB30 */
|
||||
static void compact_inverted_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -5228,7 +5228,7 @@ static void compact_inverted_rc_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x008AEDB0 */
|
||||
static void compact_inverted_rc_track_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5298,7 +5298,7 @@ static void compact_inverted_rc_track_90_deg_up(
|
||||
|
||||
/** rct2: 0x008AEDC0 */
|
||||
static void compact_inverted_rc_track_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -5306,7 +5306,7 @@ static void compact_inverted_rc_track_90_deg_down(
|
||||
|
||||
/** rct2: 0x008AED70 */
|
||||
static void compact_inverted_rc_track_60_deg_up_to_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5380,7 +5380,7 @@ static void compact_inverted_rc_track_60_deg_up_to_90_deg_up(
|
||||
|
||||
/** rct2: 0x008AED80 */
|
||||
static void compact_inverted_rc_track_90_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
compact_inverted_rc_track_60_deg_up_to_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -5388,7 +5388,7 @@ static void compact_inverted_rc_track_90_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AED90 */
|
||||
static void compact_inverted_rc_track_90_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -5459,7 +5459,7 @@ static void compact_inverted_rc_track_90_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AEDA0 */
|
||||
static void compact_inverted_rc_track_60_deg_down_to_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5532,7 +5532,7 @@ static void compact_inverted_rc_track_60_deg_down_to_90_deg_down(
|
||||
|
||||
/** rct2: 0x008AEB40 */
|
||||
static void compact_inverted_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5693,7 +5693,7 @@ static void compact_inverted_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008AEB50 */
|
||||
static void compact_inverted_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5854,7 +5854,7 @@ static void compact_inverted_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008AEB60 */
|
||||
static void compact_inverted_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5863,7 +5863,7 @@ static void compact_inverted_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008AEB70 */
|
||||
static void compact_inverted_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5872,7 +5872,7 @@ static void compact_inverted_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008AED30 */
|
||||
static void compact_inverted_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6034,7 +6034,7 @@ static void compact_inverted_rc_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008AED40 */
|
||||
static void compact_inverted_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6196,7 +6196,7 @@ static void compact_inverted_rc_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008AED50 */
|
||||
static void compact_inverted_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -6206,7 +6206,7 @@ static void compact_inverted_rc_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008AED60 */
|
||||
static void compact_inverted_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -6215,7 +6215,7 @@ static void compact_inverted_rc_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008AEB80 */
|
||||
static void compact_inverted_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6354,7 +6354,7 @@ static void compact_inverted_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008AEBB0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6493,7 +6493,7 @@ static void compact_inverted_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AEC10 */
|
||||
static void compact_inverted_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6576,7 +6576,7 @@ static void compact_inverted_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AEB90 */
|
||||
static void compact_inverted_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6715,7 +6715,7 @@ static void compact_inverted_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AEBF0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6798,7 +6798,7 @@ static void compact_inverted_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008AEC00 */
|
||||
static void compact_inverted_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6881,7 +6881,7 @@ static void compact_inverted_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AEBA0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7020,7 +7020,7 @@ static void compact_inverted_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008AEBE0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7159,7 +7159,7 @@ static void compact_inverted_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AEC40 */
|
||||
static void compact_inverted_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7242,7 +7242,7 @@ static void compact_inverted_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AEBC0 */
|
||||
static void compact_inverted_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7378,7 +7378,7 @@ static void compact_inverted_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AEC20 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7461,7 +7461,7 @@ static void compact_inverted_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008AEC30 */
|
||||
static void compact_inverted_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7544,7 +7544,7 @@ static void compact_inverted_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AEBD0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7683,7 +7683,7 @@ static void compact_inverted_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008AEC70 */
|
||||
static void compact_inverted_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7767,7 +7767,7 @@ static void compact_inverted_rc_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AEC80 */
|
||||
static void compact_inverted_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7851,7 +7851,7 @@ static void compact_inverted_rc_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008AEC90 */
|
||||
static void compact_inverted_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7935,7 +7935,7 @@ static void compact_inverted_rc_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008AECA0 */
|
||||
static void compact_inverted_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8019,7 +8019,7 @@ static void compact_inverted_rc_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008AECD0 */
|
||||
static void compact_inverted_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8102,7 +8102,7 @@ static void compact_inverted_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AECE0 */
|
||||
static void compact_inverted_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8185,7 +8185,7 @@ static void compact_inverted_rc_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AECB0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8268,7 +8268,7 @@ static void compact_inverted_rc_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AECC0 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8351,7 +8351,7 @@ static void compact_inverted_rc_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008AECF0 */
|
||||
static void compact_inverted_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8431,7 +8431,7 @@ static void compact_inverted_rc_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AED00 */
|
||||
static void compact_inverted_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8511,7 +8511,7 @@ static void compact_inverted_rc_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AED10 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8594,7 +8594,7 @@ static void compact_inverted_rc_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008AED20 */
|
||||
static void compact_inverted_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8677,7 +8677,7 @@ static void compact_inverted_rc_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008AEC50 */
|
||||
static void compact_inverted_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8761,7 +8761,7 @@ static void compact_inverted_rc_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x008AEC60 */
|
||||
static void compact_inverted_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8845,7 +8845,7 @@ static void compact_inverted_rc_track_diag_right_bank(
|
||||
|
||||
/** rct2: 0x008AEAA0 */
|
||||
static void compact_inverted_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
|
||||
@@ -32,7 +32,7 @@ static constexpr const uint32_t _CorkscrewRCBlockBrakeImages[NumOrthogonalDirect
|
||||
|
||||
/** rct2: 0x008A7AF8 */
|
||||
static void corkscrew_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -95,7 +95,7 @@ static void corkscrew_rc_track_flat(
|
||||
|
||||
/** rct2: 0x008A7D68, 0x008A7D78, 0x008A7D88 */
|
||||
static void corkscrew_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -130,7 +130,7 @@ static void corkscrew_rc_track_station(
|
||||
|
||||
/** rct2: 0x008A7B08 */
|
||||
static void corkscrew_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -208,7 +208,7 @@ static void corkscrew_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7B18 */
|
||||
static void corkscrew_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -286,7 +286,7 @@ static void corkscrew_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7B28 */
|
||||
static void corkscrew_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -364,7 +364,7 @@ static void corkscrew_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7B38 */
|
||||
static void corkscrew_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -454,7 +454,7 @@ static void corkscrew_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7B48 */
|
||||
static void corkscrew_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -544,7 +544,7 @@ static void corkscrew_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7B58 */
|
||||
static void corkscrew_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -622,7 +622,7 @@ static void corkscrew_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A7B68 */
|
||||
static void corkscrew_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -630,7 +630,7 @@ static void corkscrew_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7B78 */
|
||||
static void corkscrew_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -638,7 +638,7 @@ static void corkscrew_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A7B88 */
|
||||
static void corkscrew_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -646,7 +646,7 @@ static void corkscrew_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7B98 */
|
||||
static void corkscrew_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -654,7 +654,7 @@ static void corkscrew_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A7BA8 */
|
||||
static void corkscrew_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -662,7 +662,7 @@ static void corkscrew_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7BB8 */
|
||||
static void corkscrew_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -670,7 +670,7 @@ static void corkscrew_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A7BC8 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -845,7 +845,7 @@ static void corkscrew_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7BD8 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -854,7 +854,7 @@ static void corkscrew_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7BE8 */
|
||||
static void corkscrew_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -898,7 +898,7 @@ static void corkscrew_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7BF8 */
|
||||
static void corkscrew_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -942,7 +942,7 @@ static void corkscrew_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A7C08 */
|
||||
static void corkscrew_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -986,7 +986,7 @@ static void corkscrew_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A7C18 */
|
||||
static void corkscrew_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1030,7 +1030,7 @@ static void corkscrew_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A7C28 */
|
||||
static void corkscrew_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1211,7 +1211,7 @@ static void corkscrew_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7C38 */
|
||||
static void corkscrew_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1220,7 +1220,7 @@ static void corkscrew_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7C48 */
|
||||
static void corkscrew_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1271,7 +1271,7 @@ static void corkscrew_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7C58 */
|
||||
static void corkscrew_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1322,7 +1322,7 @@ static void corkscrew_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7C68 */
|
||||
static void corkscrew_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1373,7 +1373,7 @@ static void corkscrew_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7C78 */
|
||||
static void corkscrew_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1424,7 +1424,7 @@ static void corkscrew_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A7C88 */
|
||||
static void corkscrew_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1432,7 +1432,7 @@ static void corkscrew_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7C98 */
|
||||
static void corkscrew_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1440,7 +1440,7 @@ static void corkscrew_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7CA8 */
|
||||
static void corkscrew_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1448,7 +1448,7 @@ static void corkscrew_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7CB8 */
|
||||
static void corkscrew_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1456,7 +1456,7 @@ static void corkscrew_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A7CC8 */
|
||||
static void corkscrew_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1494,7 +1494,7 @@ static void corkscrew_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x008A7CD8 */
|
||||
static void corkscrew_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1502,7 +1502,7 @@ static void corkscrew_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x008A7CE8 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1677,7 +1677,7 @@ static void corkscrew_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7CF8 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1852,7 +1852,7 @@ static void corkscrew_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7D08 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1861,7 +1861,7 @@ static void corkscrew_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7D18 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1870,7 +1870,7 @@ static void corkscrew_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7D28 */
|
||||
static void corkscrew_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2019,7 +2019,7 @@ static void corkscrew_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008A7D38 */
|
||||
static void corkscrew_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2168,7 +2168,7 @@ static void corkscrew_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008A7D48 */
|
||||
static void corkscrew_rc_track_left_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2465,7 +2465,7 @@ static void corkscrew_rc_track_left_vertical_loop(
|
||||
|
||||
/** rct2: 0x008A7D58 */
|
||||
static void corkscrew_rc_track_right_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2722,7 +2722,7 @@ static void corkscrew_rc_track_right_vertical_loop(
|
||||
|
||||
/** rct2: 0x008A7D98 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2834,7 +2834,7 @@ static void corkscrew_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A7DA8 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2843,7 +2843,7 @@ static void corkscrew_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A7DB8 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2961,7 +2961,7 @@ static void corkscrew_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008A7DC8 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2970,7 +2970,7 @@ static void corkscrew_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008A7DD8 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3057,7 +3057,7 @@ static void corkscrew_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7DE8 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3151,7 +3151,7 @@ static void corkscrew_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7DF8 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3160,7 +3160,7 @@ static void corkscrew_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7E08 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3169,7 +3169,7 @@ static void corkscrew_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7E18 */
|
||||
static void corkscrew_rc_track_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3309,7 +3309,7 @@ static void corkscrew_rc_track_half_loop_up(
|
||||
|
||||
/** rct2: 0x008A7E28 */
|
||||
static void corkscrew_rc_track_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_half_loop_up(session, ride, 3 - trackSequence, direction, height, trackElement);
|
||||
@@ -3317,7 +3317,7 @@ static void corkscrew_rc_track_half_loop_down(
|
||||
|
||||
/** rct2: 0x008A7E38 */
|
||||
static void corkscrew_rc_track_left_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3428,7 +3428,7 @@ static void corkscrew_rc_track_left_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008A7E48 */
|
||||
static void corkscrew_rc_track_right_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3540,7 +3540,7 @@ static void corkscrew_rc_track_right_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008A7E58 */
|
||||
static void corkscrew_rc_track_left_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_right_corkscrew_up(session, ride, 2 - trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
@@ -3548,7 +3548,7 @@ static void corkscrew_rc_track_left_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008A7E68 */
|
||||
static void corkscrew_rc_track_right_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_left_corkscrew_up(session, ride, 2 - trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -3556,7 +3556,7 @@ static void corkscrew_rc_track_right_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008A7E78 */
|
||||
static void corkscrew_rc_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3786,7 +3786,7 @@ static void corkscrew_rc_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x008A7E88 */
|
||||
static void corkscrew_rc_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4016,7 +4016,7 @@ static void corkscrew_rc_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x008A7E98 */
|
||||
static void corkscrew_rc_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -4031,7 +4031,7 @@ static void corkscrew_rc_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x008A7EA8 */
|
||||
static void corkscrew_rc_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -4045,7 +4045,7 @@ static void corkscrew_rc_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x008A7EB8 */
|
||||
static void corkscrew_rc_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4401,7 +4401,7 @@ static void corkscrew_rc_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x008A7EC8 */
|
||||
static void corkscrew_rc_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4757,7 +4757,7 @@ static void corkscrew_rc_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x008A7ED8 */
|
||||
static void corkscrew_rc_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -4772,7 +4772,7 @@ static void corkscrew_rc_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x008A7EE8 */
|
||||
static void corkscrew_rc_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -4786,7 +4786,7 @@ static void corkscrew_rc_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x008A7F18 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4831,7 +4831,7 @@ static void corkscrew_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7EF8 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4876,7 +4876,7 @@ static void corkscrew_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7F08 */
|
||||
static void corkscrew_rc_track_left_quarter_turn_1_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_right_quarter_turn_1_60_deg_up(session, ride, trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
@@ -4884,7 +4884,7 @@ static void corkscrew_rc_track_left_quarter_turn_1_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A7F28 */
|
||||
static void corkscrew_rc_track_right_quarter_turn_1_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_left_quarter_turn_1_60_deg_up(session, ride, trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -4892,7 +4892,7 @@ static void corkscrew_rc_track_right_quarter_turn_1_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A7F38 */
|
||||
static void corkscrew_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4922,7 +4922,7 @@ static void corkscrew_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x008A7F48 */
|
||||
static void corkscrew_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4972,7 +4972,7 @@ static void corkscrew_rc_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x008A8198 */
|
||||
static void corkscrew_rc_track_flat_to_60_deg_up_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5123,7 +5123,7 @@ static void corkscrew_rc_track_flat_to_60_deg_up_long_base(
|
||||
|
||||
/** rct2: 0x008A81A8 */
|
||||
static void corkscrew_rc_track_60_deg_up_to_flat_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5274,7 +5274,7 @@ static void corkscrew_rc_track_60_deg_up_to_flat_long_base(
|
||||
|
||||
/** rct2: 0x008A81B8 */
|
||||
static void corkscrew_rc_track_60_deg_down_to_flat_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_flat_to_60_deg_up_long_base(session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -5282,7 +5282,7 @@ static void corkscrew_rc_track_60_deg_down_to_flat_long_base(
|
||||
|
||||
/** rct2: 0x008A81C8 */
|
||||
static void corkscrew_rc_track_flat_to_60_deg_down_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
corkscrew_rc_track_60_deg_up_to_flat_long_base(session, ride, 3 - trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -5290,7 +5290,7 @@ static void corkscrew_rc_track_flat_to_60_deg_down_long_base(
|
||||
|
||||
/** rct2: 0x008A7F68 */
|
||||
static void corkscrew_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5435,7 +5435,7 @@ static void corkscrew_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A7F78 */
|
||||
static void corkscrew_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5580,7 +5580,7 @@ static void corkscrew_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A7F88 */
|
||||
static void corkscrew_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5589,7 +5589,7 @@ static void corkscrew_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A7F98 */
|
||||
static void corkscrew_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5598,7 +5598,7 @@ static void corkscrew_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A7FA8 */
|
||||
static void corkscrew_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5743,7 +5743,7 @@ static void corkscrew_rc_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008A7FB8 */
|
||||
static void corkscrew_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5888,7 +5888,7 @@ static void corkscrew_rc_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008A7FC8 */
|
||||
static void corkscrew_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5897,7 +5897,7 @@ static void corkscrew_rc_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A7FD8 */
|
||||
static void corkscrew_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5906,7 +5906,7 @@ static void corkscrew_rc_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A7F58 */
|
||||
static void corkscrew_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6052,7 +6052,7 @@ static void corkscrew_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008A8008 */
|
||||
static void corkscrew_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6198,7 +6198,7 @@ static void corkscrew_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8068 */
|
||||
static void corkscrew_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6344,7 +6344,7 @@ static void corkscrew_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7FE8 */
|
||||
static void corkscrew_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6490,7 +6490,7 @@ static void corkscrew_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8048 */
|
||||
static void corkscrew_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6636,7 +6636,7 @@ static void corkscrew_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A8058 */
|
||||
static void corkscrew_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6782,7 +6782,7 @@ static void corkscrew_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7FF8 */
|
||||
static void corkscrew_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6928,7 +6928,7 @@ static void corkscrew_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A8038 */
|
||||
static void corkscrew_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7074,7 +7074,7 @@ static void corkscrew_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8098 */
|
||||
static void corkscrew_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7220,7 +7220,7 @@ static void corkscrew_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A8018 */
|
||||
static void corkscrew_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7364,7 +7364,7 @@ static void corkscrew_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8078 */
|
||||
static void corkscrew_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7510,7 +7510,7 @@ static void corkscrew_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A8088 */
|
||||
static void corkscrew_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7656,7 +7656,7 @@ static void corkscrew_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8028 */
|
||||
static void corkscrew_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7802,7 +7802,7 @@ static void corkscrew_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A80C8 */
|
||||
static void corkscrew_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7881,7 +7881,7 @@ static void corkscrew_rc_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A80D8 */
|
||||
static void corkscrew_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7960,7 +7960,7 @@ static void corkscrew_rc_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A80E8 */
|
||||
static void corkscrew_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8039,7 +8039,7 @@ static void corkscrew_rc_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A80F8 */
|
||||
static void corkscrew_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8118,7 +8118,7 @@ static void corkscrew_rc_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A8128 */
|
||||
static void corkscrew_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8197,7 +8197,7 @@ static void corkscrew_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8138 */
|
||||
static void corkscrew_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8276,7 +8276,7 @@ static void corkscrew_rc_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8108 */
|
||||
static void corkscrew_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8355,7 +8355,7 @@ static void corkscrew_rc_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A8118 */
|
||||
static void corkscrew_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8434,7 +8434,7 @@ static void corkscrew_rc_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A8148 */
|
||||
static void corkscrew_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8511,7 +8511,7 @@ static void corkscrew_rc_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8158 */
|
||||
static void corkscrew_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8588,7 +8588,7 @@ static void corkscrew_rc_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8168 */
|
||||
static void corkscrew_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8667,7 +8667,7 @@ static void corkscrew_rc_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A8178 */
|
||||
static void corkscrew_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8746,7 +8746,7 @@ static void corkscrew_rc_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A80A8 */
|
||||
static void corkscrew_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8822,7 +8822,7 @@ static void corkscrew_rc_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x008A80B8 */
|
||||
static void corkscrew_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8898,7 +8898,7 @@ static void corkscrew_rc_track_diag_right_bank(
|
||||
|
||||
/** rct2: 0x008A8188 */
|
||||
static void corkscrew_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
@@ -8913,7 +8913,7 @@ static void corkscrew_rc_track_block_brakes(
|
||||
}
|
||||
|
||||
static void corkscrew_rc_track_booster(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!is_csg_loaded())
|
||||
@@ -8959,7 +8959,7 @@ static void corkscrew_rc_track_booster(
|
||||
}
|
||||
|
||||
static void corkscrew_rc_track_left_twist_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -9076,7 +9076,7 @@ static void corkscrew_rc_track_left_twist_down_to_up(
|
||||
}
|
||||
|
||||
static void corkscrew_rc_track_right_twist_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -9193,7 +9193,7 @@ static void corkscrew_rc_track_right_twist_down_to_up(
|
||||
}
|
||||
|
||||
static void corkscrew_rc_track_left_twist_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -9310,7 +9310,7 @@ static void corkscrew_rc_track_left_twist_up_to_down(
|
||||
}
|
||||
|
||||
static void corkscrew_rc_track_right_twist_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x0087694C */
|
||||
static void heartline_twister_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -97,7 +97,7 @@ static void heartline_twister_rc_track_flat(
|
||||
}
|
||||
|
||||
static void heartline_twister_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -122,7 +122,7 @@ static void heartline_twister_rc_track_station(
|
||||
|
||||
/** rct2: 0x0087695C */
|
||||
static void heartline_twister_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -223,7 +223,7 @@ static void heartline_twister_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008769FC */
|
||||
static void heartline_twister_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -324,7 +324,7 @@ static void heartline_twister_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x0087696C */
|
||||
static void heartline_twister_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -425,7 +425,7 @@ static void heartline_twister_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008769BC */
|
||||
static void heartline_twister_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -526,7 +526,7 @@ static void heartline_twister_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008769CC */
|
||||
static void heartline_twister_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -627,7 +627,7 @@ static void heartline_twister_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0087697C */
|
||||
static void heartline_twister_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -728,7 +728,7 @@ static void heartline_twister_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0087698C */
|
||||
static void heartline_twister_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
heartline_twister_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -736,7 +736,7 @@ static void heartline_twister_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x00876A0C */
|
||||
static void heartline_twister_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
heartline_twister_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -744,7 +744,7 @@ static void heartline_twister_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x0087699C */
|
||||
static void heartline_twister_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
heartline_twister_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -752,7 +752,7 @@ static void heartline_twister_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008769DC */
|
||||
static void heartline_twister_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
heartline_twister_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -760,7 +760,7 @@ static void heartline_twister_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008769EC */
|
||||
static void heartline_twister_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
heartline_twister_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -768,7 +768,7 @@ static void heartline_twister_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008769AC */
|
||||
static void heartline_twister_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
heartline_twister_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -776,7 +776,7 @@ static void heartline_twister_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x00876A6C */
|
||||
static void heartline_twister_rc_track_heartline_transfer_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -994,7 +994,7 @@ static void heartline_twister_rc_track_heartline_transfer_up(
|
||||
|
||||
/** rct2: 0x00876A7C */
|
||||
static void heartline_twister_rc_track_heartline_transfer_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1212,7 +1212,7 @@ static void heartline_twister_rc_track_heartline_transfer_down(
|
||||
|
||||
/** rct2: 0x00876A4C */
|
||||
static void heartline_twister_rc_track_left_heartline_roll(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1482,7 +1482,7 @@ static void heartline_twister_rc_track_left_heartline_roll(
|
||||
|
||||
/** rct2: 0x00876A5C */
|
||||
static void heartline_twister_rc_track_right_heartline_roll(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x00890CB4 */
|
||||
static void inverted_hairpin_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -82,7 +82,7 @@ static void inverted_hairpin_rc_track_flat(
|
||||
|
||||
/** rct2: 0x00890D84, 0x00890D94, 0x00890DA4 */
|
||||
static void inverted_hairpin_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -110,7 +110,7 @@ static void inverted_hairpin_rc_track_station(
|
||||
|
||||
/** rct2: 0x00890CC4 */
|
||||
static void inverted_hairpin_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -204,7 +204,7 @@ static void inverted_hairpin_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x00890CD4 */
|
||||
static void inverted_hairpin_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -274,7 +274,7 @@ static void inverted_hairpin_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x00890CE4 */
|
||||
static void inverted_hairpin_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -368,7 +368,7 @@ static void inverted_hairpin_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00890CF4 */
|
||||
static void inverted_hairpin_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -450,7 +450,7 @@ static void inverted_hairpin_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x00890D04 */
|
||||
static void inverted_hairpin_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -556,7 +556,7 @@ static void inverted_hairpin_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00890D14 */
|
||||
static void inverted_hairpin_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -650,7 +650,7 @@ static void inverted_hairpin_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x00890D24 */
|
||||
static void inverted_hairpin_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -658,7 +658,7 @@ static void inverted_hairpin_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x00890D34 */
|
||||
static void inverted_hairpin_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -666,7 +666,7 @@ static void inverted_hairpin_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x00890D44 */
|
||||
static void inverted_hairpin_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -674,7 +674,7 @@ static void inverted_hairpin_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00890D54 */
|
||||
static void inverted_hairpin_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -682,7 +682,7 @@ static void inverted_hairpin_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x00890D64 */
|
||||
static void inverted_hairpin_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -690,7 +690,7 @@ static void inverted_hairpin_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00890D74 */
|
||||
static void inverted_hairpin_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -698,7 +698,7 @@ static void inverted_hairpin_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x00890DB4 */
|
||||
static void inverted_hairpin_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -818,7 +818,7 @@ static void inverted_hairpin_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x00890DC4 */
|
||||
static void inverted_hairpin_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -827,7 +827,7 @@ static void inverted_hairpin_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x00890DD4 */
|
||||
static void inverted_hairpin_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -922,7 +922,7 @@ static void inverted_hairpin_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x00890DE4 */
|
||||
static void inverted_hairpin_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1017,7 +1017,7 @@ static void inverted_hairpin_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x00890DF4 */
|
||||
static void inverted_hairpin_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1027,7 +1027,7 @@ static void inverted_hairpin_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x00890E04 */
|
||||
static void inverted_hairpin_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1037,7 +1037,7 @@ static void inverted_hairpin_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x00890E64 */
|
||||
static void inverted_hairpin_rc_track_left_quarter_turn_1(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1086,7 +1086,7 @@ static void inverted_hairpin_rc_track_left_quarter_turn_1(
|
||||
|
||||
/** rct2: 0x00890E74 */
|
||||
static void inverted_hairpin_rc_track_right_quarter_turn_1(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_left_quarter_turn_1(session, ride, trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -1094,7 +1094,7 @@ static void inverted_hairpin_rc_track_right_quarter_turn_1(
|
||||
|
||||
/** rct2: 0x00890E24 */
|
||||
static void inverted_hairpin_rc_track_flat_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -1176,7 +1176,7 @@ static void inverted_hairpin_rc_track_flat_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x00890E34 */
|
||||
static void inverted_hairpin_rc_track_60_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -1279,7 +1279,7 @@ static void inverted_hairpin_rc_track_60_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x00890E44 */
|
||||
static void inverted_hairpin_rc_track_flat_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_60_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1287,7 +1287,7 @@ static void inverted_hairpin_rc_track_flat_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x00890E54 */
|
||||
static void inverted_hairpin_rc_track_60_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_hairpin_rc_track_flat_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1295,7 +1295,7 @@ static void inverted_hairpin_rc_track_60_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x00890E14 */
|
||||
static void inverted_hairpin_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1328,7 +1328,7 @@ static void inverted_hairpin_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x00890E84 */
|
||||
static void inverted_hairpin_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x008B0460 */
|
||||
static void inverted_impulse_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -53,7 +53,7 @@ static void inverted_impulse_rc_track_flat(
|
||||
|
||||
/** rct2: 0x008B0470, 0x008B0480, 0x008B0490 */
|
||||
static void inverted_impulse_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -81,7 +81,7 @@ static void inverted_impulse_rc_track_station(
|
||||
|
||||
/** rct2: 0x008B04A0 */
|
||||
static void inverted_impulse_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -146,7 +146,7 @@ static void inverted_impulse_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B04B0 */
|
||||
static void inverted_impulse_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -187,7 +187,7 @@ static void inverted_impulse_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x008B04C0 */
|
||||
static void inverted_impulse_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -249,7 +249,7 @@ static void inverted_impulse_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B04D0 */
|
||||
static void inverted_impulse_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -296,7 +296,7 @@ static void inverted_impulse_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008B04E0 */
|
||||
static void inverted_impulse_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -343,7 +343,7 @@ static void inverted_impulse_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B04F0 */
|
||||
static void inverted_impulse_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -405,7 +405,7 @@ static void inverted_impulse_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008B0500 */
|
||||
static void inverted_impulse_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -413,7 +413,7 @@ static void inverted_impulse_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0510 */
|
||||
static void inverted_impulse_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -421,7 +421,7 @@ static void inverted_impulse_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008B0520 */
|
||||
static void inverted_impulse_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -429,7 +429,7 @@ static void inverted_impulse_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0530 */
|
||||
static void inverted_impulse_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -437,7 +437,7 @@ static void inverted_impulse_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008B0540 */
|
||||
static void inverted_impulse_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -445,7 +445,7 @@ static void inverted_impulse_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0550 */
|
||||
static void inverted_impulse_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -453,7 +453,7 @@ static void inverted_impulse_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008B05A0 */
|
||||
static void inverted_impulse_rc_track_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -494,7 +494,7 @@ static void inverted_impulse_rc_track_90_deg_up(
|
||||
|
||||
/** rct2: 0x008B05B0 */
|
||||
static void inverted_impulse_rc_track_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -502,7 +502,7 @@ static void inverted_impulse_rc_track_90_deg_down(
|
||||
|
||||
/** rct2: 0x008B0560 */
|
||||
static void inverted_impulse_rc_track_60_deg_up_to_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -547,7 +547,7 @@ static void inverted_impulse_rc_track_60_deg_up_to_90_deg_up(
|
||||
|
||||
/** rct2: 0x008B0570 */
|
||||
static void inverted_impulse_rc_track_90_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_60_deg_up_to_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -555,7 +555,7 @@ static void inverted_impulse_rc_track_90_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008B0580 */
|
||||
static void inverted_impulse_rc_track_90_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -597,7 +597,7 @@ static void inverted_impulse_rc_track_90_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008B0590 */
|
||||
static void inverted_impulse_rc_track_60_deg_down_to_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -641,7 +641,7 @@ static void inverted_impulse_rc_track_60_deg_down_to_90_deg_down(
|
||||
|
||||
/** rct2: 0x008B05C0 */
|
||||
static void inverted_impulse_rc_track_left_quarter_turn_1_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -691,7 +691,7 @@ static void inverted_impulse_rc_track_left_quarter_turn_1_90_deg_up(
|
||||
|
||||
/** rct2: 0x008B05D0 */
|
||||
static void inverted_impulse_rc_track_right_quarter_turn_1_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -741,7 +741,7 @@ static void inverted_impulse_rc_track_right_quarter_turn_1_90_deg_up(
|
||||
|
||||
/** rct2: 0x008B05E0 */
|
||||
static void inverted_impulse_rc_track_left_quarter_turn_1_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_right_quarter_turn_1_90_deg_up(
|
||||
@@ -750,7 +750,7 @@ static void inverted_impulse_rc_track_left_quarter_turn_1_90_deg_down(
|
||||
|
||||
/** rct2: 0x008B05F0 */
|
||||
static void inverted_impulse_rc_track_right_quarter_turn_1_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
inverted_impulse_rc_track_left_quarter_turn_1_90_deg_up(
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
File diff suppressed because it is too large.
Load diff
@@ -19,97 +19,97 @@ enum class JuniorRcChainType : uint8_t
|
||||
};
|
||||
|
||||
struct Ride;
|
||||
struct paint_session;
|
||||
struct PaintSession;
|
||||
struct TrackElement;
|
||||
|
||||
void junior_rc_paint_station(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, bool drawBlockBrake);
|
||||
|
||||
void junior_rc_paint_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
|
||||
void junior_rc_paint_track_left_quarter_turn_5_tiles_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_right_quarter_turn_5_tiles_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
|
||||
void junior_rc_paint_track_right_quarter_turn_3_tiles_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_right_quarter_turn_3_tiles_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
|
||||
void junior_rc_paint_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_flat_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_60_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_flat_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
void junior_rc_paint_track_diag_60_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, uint16_t height,
|
||||
const TrackElement& trackElement, JuniorRcChainType chainType);
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x0082491C */
|
||||
static void lay_down_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -138,7 +138,7 @@ static void lay_down_rc_track_flat(
|
||||
|
||||
/** rct2: 0x00824B8C, 0x00824B9C, 0x00824BAC */
|
||||
static void lay_down_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.IsInverted())
|
||||
@@ -197,7 +197,7 @@ static void lay_down_rc_track_station(
|
||||
|
||||
/** rct2: 0x0082492C */
|
||||
static void lay_down_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -370,7 +370,7 @@ static void lay_down_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x0082493C */
|
||||
static void lay_down_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -490,7 +490,7 @@ static void lay_down_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x0082494C */
|
||||
static void lay_down_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -663,7 +663,7 @@ static void lay_down_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0082495C */
|
||||
static void lay_down_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -801,7 +801,7 @@ static void lay_down_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x0082496C */
|
||||
static void lay_down_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -963,7 +963,7 @@ static void lay_down_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0082497C */
|
||||
static void lay_down_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1136,7 +1136,7 @@ static void lay_down_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0082498C */
|
||||
static void lay_down_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1144,7 +1144,7 @@ static void lay_down_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x0082499C */
|
||||
static void lay_down_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1152,7 +1152,7 @@ static void lay_down_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008249AC */
|
||||
static void lay_down_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1160,7 +1160,7 @@ static void lay_down_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008249BC */
|
||||
static void lay_down_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1168,7 +1168,7 @@ static void lay_down_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008249CC */
|
||||
static void lay_down_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1176,7 +1176,7 @@ static void lay_down_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008249DC */
|
||||
static void lay_down_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1184,7 +1184,7 @@ static void lay_down_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008249EC */
|
||||
static void lay_down_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1547,7 +1547,7 @@ static void lay_down_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008249FC */
|
||||
static void lay_down_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1556,7 +1556,7 @@ static void lay_down_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00824A0C */
|
||||
static void lay_down_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1643,7 +1643,7 @@ static void lay_down_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x00824A1C */
|
||||
static void lay_down_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1730,7 +1730,7 @@ static void lay_down_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x00824A2C */
|
||||
static void lay_down_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1817,7 +1817,7 @@ static void lay_down_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00824A3C */
|
||||
static void lay_down_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1904,7 +1904,7 @@ static void lay_down_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00824A4C */
|
||||
static void lay_down_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2273,7 +2273,7 @@ static void lay_down_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00824A5C */
|
||||
static void lay_down_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -2282,7 +2282,7 @@ static void lay_down_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00824A6C */
|
||||
static void lay_down_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2400,7 +2400,7 @@ static void lay_down_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824A7C */
|
||||
static void lay_down_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2518,7 +2518,7 @@ static void lay_down_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824A8C */
|
||||
static void lay_down_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2636,7 +2636,7 @@ static void lay_down_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x00824A9C */
|
||||
static void lay_down_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2754,7 +2754,7 @@ static void lay_down_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x00824AAC */
|
||||
static void lay_down_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2762,7 +2762,7 @@ static void lay_down_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824ABC */
|
||||
static void lay_down_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2770,7 +2770,7 @@ static void lay_down_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824ACC */
|
||||
static void lay_down_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2778,7 +2778,7 @@ static void lay_down_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x00824ADC */
|
||||
static void lay_down_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2786,7 +2786,7 @@ static void lay_down_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x00824AEC */
|
||||
static void lay_down_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2867,7 +2867,7 @@ static void lay_down_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x00824AFC */
|
||||
static void lay_down_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2875,7 +2875,7 @@ static void lay_down_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x00824B0C */
|
||||
static void lay_down_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -3238,7 +3238,7 @@ static void lay_down_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824B1C */
|
||||
static void lay_down_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -3601,7 +3601,7 @@ static void lay_down_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824B2C */
|
||||
static void lay_down_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -3610,7 +3610,7 @@ static void lay_down_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824B3C */
|
||||
static void lay_down_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -3619,7 +3619,7 @@ static void lay_down_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824B4C */
|
||||
static void lay_down_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -3946,7 +3946,7 @@ static void lay_down_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x00824B5C */
|
||||
static void lay_down_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -4273,7 +4273,7 @@ static void lay_down_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x00824B6C */
|
||||
static void lay_down_rc_track_left_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4570,7 +4570,7 @@ static void lay_down_rc_track_left_vertical_loop(
|
||||
|
||||
/** rct2: 0x00824B7C */
|
||||
static void lay_down_rc_track_right_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4829,7 +4829,7 @@ static void lay_down_rc_track_right_vertical_loop(
|
||||
|
||||
/** rct2: 0x00824BBC */
|
||||
static void lay_down_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5062,7 +5062,7 @@ static void lay_down_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x00824BCC */
|
||||
static void lay_down_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -5071,7 +5071,7 @@ static void lay_down_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x00824BDC */
|
||||
static void lay_down_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5310,7 +5310,7 @@ static void lay_down_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x00824BEC */
|
||||
static void lay_down_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -5319,7 +5319,7 @@ static void lay_down_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x00824BFC */
|
||||
static void lay_down_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5502,7 +5502,7 @@ static void lay_down_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824C0C */
|
||||
static void lay_down_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5691,7 +5691,7 @@ static void lay_down_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824C1C */
|
||||
static void lay_down_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -5700,7 +5700,7 @@ static void lay_down_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824C2C */
|
||||
static void lay_down_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -5709,7 +5709,7 @@ static void lay_down_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824C9C */
|
||||
static void lay_down_rc_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5943,7 +5943,7 @@ static void lay_down_rc_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x00824CAC */
|
||||
static void lay_down_rc_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6177,7 +6177,7 @@ static void lay_down_rc_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x00824CBC */
|
||||
static void lay_down_rc_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -6191,7 +6191,7 @@ static void lay_down_rc_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x00824CCC */
|
||||
static void lay_down_rc_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -6205,7 +6205,7 @@ static void lay_down_rc_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x00824CDC */
|
||||
static void lay_down_rc_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6565,7 +6565,7 @@ static void lay_down_rc_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x00824CEC */
|
||||
static void lay_down_rc_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6925,7 +6925,7 @@ static void lay_down_rc_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x00824CFC */
|
||||
static void lay_down_rc_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -6939,7 +6939,7 @@ static void lay_down_rc_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x00824D0C */
|
||||
static void lay_down_rc_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -6953,7 +6953,7 @@ static void lay_down_rc_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x00824D3C */
|
||||
static void lay_down_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7039,7 +7039,7 @@ static void lay_down_rc_track_left_quarter_turn_1_60_deg_up(
|
||||
|
||||
/** rct2: 0x00824D1C */
|
||||
static void lay_down_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7126,7 +7126,7 @@ static void lay_down_rc_track_right_quarter_turn_1_60_deg_up(
|
||||
|
||||
/** rct2: 0x00824D2C */
|
||||
static void lay_down_rc_track_left_quarter_turn_1_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_right_quarter_turn_1_60_deg_up(session, ride, trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
@@ -7134,7 +7134,7 @@ static void lay_down_rc_track_left_quarter_turn_1_60_deg_down(
|
||||
|
||||
/** rct2: 0x00824D4C */
|
||||
static void lay_down_rc_track_right_quarter_turn_1_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_left_quarter_turn_1_60_deg_up(session, ride, trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -7142,7 +7142,7 @@ static void lay_down_rc_track_right_quarter_turn_1_60_deg_down(
|
||||
|
||||
/** rct2: 0x00824D5C */
|
||||
static void lay_down_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7205,7 +7205,7 @@ static void lay_down_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x00824D6C */
|
||||
static void lay_down_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7320,7 +7320,7 @@ static void lay_down_rc_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x00824D8C */
|
||||
static void lay_down_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7630,7 +7630,7 @@ static void lay_down_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x00824D9C */
|
||||
static void lay_down_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7940,7 +7940,7 @@ static void lay_down_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x00824DAC */
|
||||
static void lay_down_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -7949,7 +7949,7 @@ static void lay_down_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x00824DBC */
|
||||
static void lay_down_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -7958,7 +7958,7 @@ static void lay_down_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x00824DCC */
|
||||
static void lay_down_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8268,7 +8268,7 @@ static void lay_down_rc_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x00824DDC */
|
||||
static void lay_down_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8578,7 +8578,7 @@ static void lay_down_rc_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x00824DEC */
|
||||
static void lay_down_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -8587,7 +8587,7 @@ static void lay_down_rc_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x00824DFC */
|
||||
static void lay_down_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -8596,7 +8596,7 @@ static void lay_down_rc_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x00824D7C */
|
||||
static void lay_down_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8880,7 +8880,7 @@ static void lay_down_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x00824E2C */
|
||||
static void lay_down_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9164,7 +9164,7 @@ static void lay_down_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824E8C */
|
||||
static void lay_down_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9392,7 +9392,7 @@ static void lay_down_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x00824E0C */
|
||||
static void lay_down_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9676,7 +9676,7 @@ static void lay_down_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824E6C */
|
||||
static void lay_down_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9904,7 +9904,7 @@ static void lay_down_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x00824E7C */
|
||||
static void lay_down_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10132,7 +10132,7 @@ static void lay_down_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824E1C */
|
||||
static void lay_down_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10416,7 +10416,7 @@ static void lay_down_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x00824E5C */
|
||||
static void lay_down_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10644,7 +10644,7 @@ static void lay_down_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824EBC */
|
||||
static void lay_down_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10872,7 +10872,7 @@ static void lay_down_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x00824E3C */
|
||||
static void lay_down_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11093,7 +11093,7 @@ static void lay_down_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824E9C */
|
||||
static void lay_down_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11321,7 +11321,7 @@ static void lay_down_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x00824EAC */
|
||||
static void lay_down_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11549,7 +11549,7 @@ static void lay_down_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824E4C */
|
||||
static void lay_down_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11777,7 +11777,7 @@ static void lay_down_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x00824EEC */
|
||||
static void lay_down_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11939,7 +11939,7 @@ static void lay_down_rc_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x00824EFC */
|
||||
static void lay_down_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12101,7 +12101,7 @@ static void lay_down_rc_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x00824F0C */
|
||||
static void lay_down_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12263,7 +12263,7 @@ static void lay_down_rc_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00824F1C */
|
||||
static void lay_down_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12425,7 +12425,7 @@ static void lay_down_rc_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00824F4C */
|
||||
static void lay_down_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12586,7 +12586,7 @@ static void lay_down_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824F5C */
|
||||
static void lay_down_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12747,7 +12747,7 @@ static void lay_down_rc_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00824F2C */
|
||||
static void lay_down_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12908,7 +12908,7 @@ static void lay_down_rc_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x00824F3C */
|
||||
static void lay_down_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -13069,7 +13069,7 @@ static void lay_down_rc_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x00824F6C */
|
||||
static void lay_down_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -13223,7 +13223,7 @@ static void lay_down_rc_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824F7C */
|
||||
static void lay_down_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -13377,7 +13377,7 @@ static void lay_down_rc_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00824F8C */
|
||||
static void lay_down_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -13538,7 +13538,7 @@ static void lay_down_rc_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x00824F9C */
|
||||
static void lay_down_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -13699,7 +13699,7 @@ static void lay_down_rc_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x00824ECC */
|
||||
static void lay_down_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -13858,7 +13858,7 @@ static void lay_down_rc_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x00824EDC */
|
||||
static void lay_down_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -14017,7 +14017,7 @@ static void lay_down_rc_track_diag_right_bank(
|
||||
|
||||
/** rct2: 0x00824FAC */
|
||||
static void lay_down_rc_track_left_flyer_twist_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14136,7 +14136,7 @@ static void lay_down_rc_track_left_flyer_twist_up(
|
||||
|
||||
/** rct2: 0x00824FBC */
|
||||
static void lay_down_rc_track_right_flyer_twist_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14255,7 +14255,7 @@ static void lay_down_rc_track_right_flyer_twist_up(
|
||||
|
||||
/** rct2: 0x00824FCC */
|
||||
static void lay_down_rc_track_left_flyer_twist_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14374,7 +14374,7 @@ static void lay_down_rc_track_left_flyer_twist_down(
|
||||
|
||||
/** rct2: 0x00824FDC */
|
||||
static void lay_down_rc_track_right_flyer_twist_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14493,7 +14493,7 @@ static void lay_down_rc_track_right_flyer_twist_down(
|
||||
|
||||
/** rct2: 0x00824C3C */
|
||||
static void lay_down_rc_track_flyer_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14634,7 +14634,7 @@ static void lay_down_rc_track_flyer_half_loop_up(
|
||||
|
||||
/** rct2: 0x00824C4C */
|
||||
static void lay_down_rc_track_flyer_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14775,7 +14775,7 @@ static void lay_down_rc_track_flyer_half_loop_down(
|
||||
|
||||
/** rct2: 0x00824C5C */
|
||||
static void lay_down_rc_track_left_flyer_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -14900,7 +14900,7 @@ static void lay_down_rc_track_left_flyer_corkscrew_up(
|
||||
|
||||
/** rct2: 0x00824C6C */
|
||||
static void lay_down_rc_track_right_flyer_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -15014,7 +15014,7 @@ static void lay_down_rc_track_right_flyer_corkscrew_up(
|
||||
|
||||
/** rct2: 0x00824C7C */
|
||||
static void lay_down_rc_track_left_flyer_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -15128,7 +15128,7 @@ static void lay_down_rc_track_left_flyer_corkscrew_down(
|
||||
|
||||
/** rct2: 0x00824C8C */
|
||||
static void lay_down_rc_track_right_flyer_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_left_flyer_corkscrew_up(session, ride, 2 - trackSequence, (direction + 3) % 4, height, trackElement);
|
||||
@@ -15136,7 +15136,7 @@ static void lay_down_rc_track_right_flyer_corkscrew_down(
|
||||
|
||||
/** rct2: 0x00824FEC */
|
||||
static void lay_down_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -15194,7 +15194,7 @@ static void lay_down_rc_track_block_brakes(
|
||||
}
|
||||
|
||||
static void lay_down_rc_track_left_quarter_banked_helix_large_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -15376,7 +15376,7 @@ static void lay_down_rc_track_left_quarter_banked_helix_large_up(
|
||||
}
|
||||
|
||||
static void lay_down_rc_track_right_quarter_banked_helix_large_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -15558,7 +15558,7 @@ static void lay_down_rc_track_right_quarter_banked_helix_large_up(
|
||||
}
|
||||
|
||||
static void lay_down_rc_track_left_quarter_banked_helix_large_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -15740,7 +15740,7 @@ static void lay_down_rc_track_left_quarter_banked_helix_large_down(
|
||||
}
|
||||
|
||||
static void lay_down_rc_track_right_quarter_banked_helix_large_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -15921,7 +15921,7 @@ static void lay_down_rc_track_right_quarter_banked_helix_large_down(
|
||||
}
|
||||
}
|
||||
static void lay_down_rc_track_half_loop_inverted_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -16072,7 +16072,7 @@ static void lay_down_rc_track_half_loop_inverted_up(
|
||||
}
|
||||
|
||||
static void lay_down_rc_track_half_loop_uninverted_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lay_down_rc_track_half_loop_inverted_up(session, ride, 3 - trackSequence, direction, height, trackElement);
|
||||
|
||||
@@ -32,7 +32,7 @@ static constexpr const uint32_t _LimLauncherBlockBrakeImages[NumOrthogonalDirect
|
||||
|
||||
/** rct2: 0x008A6D50, 0x008A6D60, 0x008A6D70 */
|
||||
static void lim_launched_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -67,7 +67,7 @@ static void lim_launched_rc_track_station(
|
||||
|
||||
/** rct2: 0x008A65E0 */
|
||||
static void lim_launched_rc_track_left_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -348,7 +348,7 @@ static void lim_launched_rc_track_left_vertical_loop(
|
||||
|
||||
/** rct2: 0x008A65F0 */
|
||||
static void lim_launched_rc_track_right_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -589,7 +589,7 @@ static void lim_launched_rc_track_right_vertical_loop(
|
||||
|
||||
/** rct2: 0x008A6D10 */
|
||||
static void lim_launched_rc_track_left_twist_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -737,7 +737,7 @@ static void lim_launched_rc_track_left_twist_down_to_up(
|
||||
|
||||
/** rct2: 0x008A6D20 */
|
||||
static void lim_launched_rc_track_right_twist_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -885,7 +885,7 @@ static void lim_launched_rc_track_right_twist_down_to_up(
|
||||
|
||||
/** rct2: 0x008A6D30 */
|
||||
static void lim_launched_rc_track_left_twist_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1033,7 +1033,7 @@ static void lim_launched_rc_track_left_twist_up_to_down(
|
||||
|
||||
/** rct2: 0x008A6D40 */
|
||||
static void lim_launched_rc_track_right_twist_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1181,7 +1181,7 @@ static void lim_launched_rc_track_right_twist_up_to_down(
|
||||
|
||||
/** rct2: 0x008A6CD0 */
|
||||
static void lim_launched_rc_track_left_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1292,7 +1292,7 @@ static void lim_launched_rc_track_left_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008A6CE0 */
|
||||
static void lim_launched_rc_track_right_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1404,7 +1404,7 @@ static void lim_launched_rc_track_right_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008A6CF0 */
|
||||
static void lim_launched_rc_track_left_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_corkscrew_up(session, ride, 2 - trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
@@ -1412,7 +1412,7 @@ static void lim_launched_rc_track_left_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008A6D00 */
|
||||
static void lim_launched_rc_track_right_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_corkscrew_up(session, ride, 2 - trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -1420,7 +1420,7 @@ static void lim_launched_rc_track_right_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008A6D80 */
|
||||
static void lim_launched_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1450,7 +1450,7 @@ static void lim_launched_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x008A6C10 */
|
||||
static void lim_launched_rc_track_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1491,7 +1491,7 @@ static void lim_launched_rc_track_90_deg_up(
|
||||
|
||||
/** rct2: 0x008A6C20 */
|
||||
static void lim_launched_rc_track_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1499,7 +1499,7 @@ static void lim_launched_rc_track_90_deg_down(
|
||||
|
||||
/** rct2: 0x008A6C30 */
|
||||
static void lim_launched_rc_track_60_deg_up_to_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1544,7 +1544,7 @@ static void lim_launched_rc_track_60_deg_up_to_90_deg_up(
|
||||
|
||||
/** rct2: 0x008A6C40 */
|
||||
static void lim_launched_rc_track_90_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_60_deg_up_to_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1552,7 +1552,7 @@ static void lim_launched_rc_track_90_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A6C50 */
|
||||
static void lim_launched_rc_track_90_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1594,7 +1594,7 @@ static void lim_launched_rc_track_90_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A6C60 */
|
||||
static void lim_launched_rc_track_60_deg_down_to_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1638,7 +1638,7 @@ static void lim_launched_rc_track_60_deg_down_to_90_deg_down(
|
||||
|
||||
/** rct2: 0x008A6C70 */
|
||||
static void lim_launched_rc_track_90_deg_to_inverted_flat_quarter_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1736,7 +1736,7 @@ static void lim_launched_rc_track_90_deg_to_inverted_flat_quarter_loop_up(
|
||||
|
||||
/** rct2: 0x008A6C80 */
|
||||
static void lim_launched_rc_track_inverted_flat_to_90_deg_quarter_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_90_deg_to_inverted_flat_quarter_loop_up(
|
||||
@@ -1745,7 +1745,7 @@ static void lim_launched_rc_track_inverted_flat_to_90_deg_quarter_loop_down(
|
||||
|
||||
/** rct2: 0x008A6D90 */
|
||||
static void lim_launched_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
@@ -1764,7 +1764,7 @@ static void lim_launched_rc_track_block_brakes(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_quarter_turn_1_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1811,7 +1811,7 @@ static void lim_launched_rc_track_left_quarter_turn_1_90_deg_up(
|
||||
|
||||
/** rct2: 0x008A6CA0 */
|
||||
static void lim_launched_rc_track_right_quarter_turn_1_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1858,7 +1858,7 @@ static void lim_launched_rc_track_right_quarter_turn_1_90_deg_up(
|
||||
|
||||
/** rct2: 0x008A6CB0 */
|
||||
static void lim_launched_rc_track_left_quarter_turn_1_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_quarter_turn_1_90_deg_up(
|
||||
@@ -1867,7 +1867,7 @@ static void lim_launched_rc_track_left_quarter_turn_1_90_deg_down(
|
||||
|
||||
/** rct2: 0x008A6CC0 */
|
||||
static void lim_launched_rc_track_right_quarter_turn_1_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_quarter_turn_1_90_deg_up(
|
||||
@@ -1875,7 +1875,7 @@ static void lim_launched_rc_track_right_quarter_turn_1_90_deg_down(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_barrel_roll_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2053,7 +2053,7 @@ static void lim_launched_rc_track_left_barrel_roll_up_to_down(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_barrel_roll_up_to_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2231,7 +2231,7 @@ static void lim_launched_rc_track_right_barrel_roll_up_to_down(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_barrel_roll_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_barrel_roll_up_to_down(
|
||||
@@ -2239,7 +2239,7 @@ static void lim_launched_rc_track_left_barrel_roll_down_to_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_barrel_roll_down_to_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_barrel_roll_up_to_down(
|
||||
@@ -2247,7 +2247,7 @@ static void lim_launched_rc_track_right_barrel_roll_down_to_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2402,14 +2402,14 @@ static void lim_launched_rc_track_half_loop_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_half_loop_up(session, ride, 3 - trackSequence, direction, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_flat_to_60_deg_up_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2574,7 +2574,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up_long_base(
|
||||
}
|
||||
}
|
||||
static void lim_launched_rc_track_60_deg_up_to_flat_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2740,7 +2740,7 @@ static void lim_launched_rc_track_60_deg_up_to_flat_long_base(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_flat_to_60_deg_down_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_60_deg_up_to_flat_long_base(
|
||||
@@ -2748,7 +2748,7 @@ static void lim_launched_rc_track_flat_to_60_deg_down_long_base(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_60_deg_down_to_flat_long_base(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_flat_to_60_deg_up_long_base(
|
||||
@@ -2756,7 +2756,7 @@ static void lim_launched_rc_track_60_deg_down_to_flat_long_base(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_large_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2969,7 +2969,7 @@ static void lim_launched_rc_track_left_large_corkscrew_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_large_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3181,21 +3181,21 @@ static void lim_launched_rc_track_right_large_corkscrew_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_large_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_large_corkscrew_up(session, ride, 5 - trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_large_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_large_corkscrew_up(session, ride, 5 - trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_medium_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3390,7 +3390,7 @@ static void lim_launched_rc_track_left_medium_half_loop_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_medium_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3585,21 +3585,21 @@ static void lim_launched_rc_track_right_medium_half_loop_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_medium_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_medium_half_loop_up(session, ride, 4 - trackSequence, direction, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_medium_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_medium_half_loop_up(session, ride, 4 - trackSequence, direction, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_zero_g_roll_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3747,7 +3747,7 @@ static void lim_launched_rc_track_left_zero_g_roll_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_zero_g_roll_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3894,21 +3894,21 @@ static void lim_launched_rc_track_right_zero_g_roll_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_zero_g_roll_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_zero_g_roll_up(session, ride, 2 - trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_zero_g_roll_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_zero_g_roll_up(session, ride, 2 - trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_large_zero_g_roll_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4087,7 +4087,7 @@ static void lim_launched_rc_track_left_large_zero_g_roll_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_large_zero_g_roll_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4267,7 +4267,7 @@ static void lim_launched_rc_track_right_large_zero_g_roll_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_large_zero_g_roll_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_large_zero_g_roll_up(
|
||||
@@ -4275,7 +4275,7 @@ static void lim_launched_rc_track_left_large_zero_g_roll_down(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_large_zero_g_roll_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_large_zero_g_roll_up(
|
||||
@@ -4283,7 +4283,7 @@ static void lim_launched_rc_track_right_large_zero_g_roll_down(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_bank_to_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4381,7 +4381,7 @@ static void lim_launched_rc_track_left_bank_to_left_quarter_turn_3_25_deg_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_bank_to_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4479,7 +4479,7 @@ static void lim_launched_rc_track_right_bank_to_right_quarter_turn_3_25_deg_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_quarter_turn_3_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4577,7 +4577,7 @@ static void lim_launched_rc_track_left_quarter_turn_3_25_deg_down_to_left_bank(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_quarter_turn_3_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4675,7 +4675,7 @@ static void lim_launched_rc_track_right_quarter_turn_3_25_deg_down_to_right_bank
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_large_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4941,7 +4941,7 @@ static void lim_launched_rc_track_left_large_half_loop_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_large_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5207,21 +5207,21 @@ static void lim_launched_rc_track_right_large_half_loop_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_right_large_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_right_large_half_loop_up(session, ride, 6 - trackSequence, direction, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_left_large_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_left_large_half_loop_up(session, ride, 6 - trackSequence, direction, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_flat_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -5277,7 +5277,7 @@ static void lim_launched_rc_track_flat_to_60_deg_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_60_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -5330,21 +5330,21 @@ static void lim_launched_rc_track_60_deg_up_to_flat(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_flat_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_60_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_60_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
lim_launched_rc_track_flat_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_diag_flat_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5423,7 +5423,7 @@ static void lim_launched_rc_track_diag_flat_to_60_deg_up(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_diag_60_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5502,7 +5502,7 @@ static void lim_launched_rc_track_diag_60_deg_up_to_flat(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_diag_flat_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5581,7 +5581,7 @@ static void lim_launched_rc_track_diag_flat_to_60_deg_down(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_diag_60_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5660,7 +5660,7 @@ static void lim_launched_rc_track_diag_60_deg_down_to_flat(
|
||||
}
|
||||
|
||||
static void lim_launched_rc_track_booster(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x008B08D0 */
|
||||
static void mine_ride_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -53,7 +53,7 @@ static void mine_ride_track_flat(
|
||||
}
|
||||
|
||||
static void mine_ride_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -78,7 +78,7 @@ static void mine_ride_track_station(
|
||||
|
||||
/** rct2: 0x008B08E0 */
|
||||
static void mine_ride_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -137,7 +137,7 @@ static void mine_ride_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B08F0 */
|
||||
static void mine_ride_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -194,7 +194,7 @@ static void mine_ride_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B0900 */
|
||||
static void mine_ride_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -253,7 +253,7 @@ static void mine_ride_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008B0910 */
|
||||
static void mine_ride_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -261,7 +261,7 @@ static void mine_ride_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0920 */
|
||||
static void mine_ride_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -269,7 +269,7 @@ static void mine_ride_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0930 */
|
||||
static void mine_ride_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -277,7 +277,7 @@ static void mine_ride_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008B0940 */
|
||||
static void mine_ride_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -462,7 +462,7 @@ static void mine_ride_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008B0950 */
|
||||
static void mine_ride_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -471,7 +471,7 @@ static void mine_ride_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008B0960 */
|
||||
static void mine_ride_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -527,7 +527,7 @@ static void mine_ride_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008B0970 */
|
||||
static void mine_ride_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -583,7 +583,7 @@ static void mine_ride_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008B0980 */
|
||||
static void mine_ride_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -639,7 +639,7 @@ static void mine_ride_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008B0990 */
|
||||
static void mine_ride_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -695,7 +695,7 @@ static void mine_ride_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008B09A0 */
|
||||
static void mine_ride_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -886,7 +886,7 @@ static void mine_ride_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008B09B0 */
|
||||
static void mine_ride_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -895,7 +895,7 @@ static void mine_ride_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008B09C0 */
|
||||
static void mine_ride_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -958,7 +958,7 @@ static void mine_ride_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B09D0 */
|
||||
static void mine_ride_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1021,7 +1021,7 @@ static void mine_ride_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B09E0 */
|
||||
static void mine_ride_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1086,7 +1086,7 @@ static void mine_ride_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008B09F0 */
|
||||
static void mine_ride_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1151,7 +1151,7 @@ static void mine_ride_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008B0A00 */
|
||||
static void mine_ride_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1159,7 +1159,7 @@ static void mine_ride_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0A10 */
|
||||
static void mine_ride_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1167,7 +1167,7 @@ static void mine_ride_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0A20 */
|
||||
static void mine_ride_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1175,7 +1175,7 @@ static void mine_ride_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008B0A30 */
|
||||
static void mine_ride_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1183,7 +1183,7 @@ static void mine_ride_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008B0A40 */
|
||||
static void mine_ride_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1233,7 +1233,7 @@ static void mine_ride_track_left_bank(
|
||||
|
||||
/** rct2: 0x008B0A50 */
|
||||
static void mine_ride_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_ride_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1241,7 +1241,7 @@ static void mine_ride_track_right_bank(
|
||||
|
||||
/** rct2: 0x008B0A60 */
|
||||
static void mine_ride_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1398,7 +1398,7 @@ static void mine_ride_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008B0A70 */
|
||||
static void mine_ride_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1555,7 +1555,7 @@ static void mine_ride_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008B0AB0 */
|
||||
static void mine_ride_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1677,7 +1677,7 @@ static void mine_ride_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008B0AC0 */
|
||||
static void mine_ride_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1686,7 +1686,7 @@ static void mine_ride_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008B0AD0 */
|
||||
static void mine_ride_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1814,7 +1814,7 @@ static void mine_ride_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008B0AE0 */
|
||||
static void mine_ride_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1823,7 +1823,7 @@ static void mine_ride_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008B0AF0 */
|
||||
static void mine_ride_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2077,7 +2077,7 @@ static void mine_ride_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x008B0B00 */
|
||||
static void mine_ride_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2331,7 +2331,7 @@ static void mine_ride_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x008B0B10 */
|
||||
static void mine_ride_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -2345,7 +2345,7 @@ static void mine_ride_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x008B0B20 */
|
||||
static void mine_ride_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -2359,7 +2359,7 @@ static void mine_ride_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x008B0B30 */
|
||||
static void mine_ride_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2739,7 +2739,7 @@ static void mine_ride_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x008B0B40 */
|
||||
static void mine_ride_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3119,7 +3119,7 @@ static void mine_ride_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x008B0B50 */
|
||||
static void mine_ride_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -3133,7 +3133,7 @@ static void mine_ride_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x008B0B60 */
|
||||
static void mine_ride_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -3147,7 +3147,7 @@ static void mine_ride_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x008B0B70 */
|
||||
static void mine_ride_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -3197,7 +3197,7 @@ static void mine_ride_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x008B0B90 */
|
||||
static void mine_ride_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3345,7 +3345,7 @@ static void mine_ride_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008B0BA0 */
|
||||
static void mine_ride_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3493,7 +3493,7 @@ static void mine_ride_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008B0BB0 */
|
||||
static void mine_ride_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -3502,7 +3502,7 @@ static void mine_ride_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008B0BC0 */
|
||||
static void mine_ride_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -3511,7 +3511,7 @@ static void mine_ride_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008B0BD0 */
|
||||
static void mine_ride_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3659,7 +3659,7 @@ static void mine_ride_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008B0BE0 */
|
||||
static void mine_ride_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3807,7 +3807,7 @@ static void mine_ride_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008B0BF0 */
|
||||
static void mine_ride_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -3816,7 +3816,7 @@ static void mine_ride_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008B0C00 */
|
||||
static void mine_ride_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -3825,7 +3825,7 @@ static void mine_ride_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008B0B80 */
|
||||
static void mine_ride_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3899,7 +3899,7 @@ static void mine_ride_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008B0C30 */
|
||||
static void mine_ride_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3975,7 +3975,7 @@ static void mine_ride_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B0C10 */
|
||||
static void mine_ride_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4049,7 +4049,7 @@ static void mine_ride_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B0C20 */
|
||||
static void mine_ride_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4125,7 +4125,7 @@ static void mine_ride_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008B0C60 */
|
||||
static void mine_ride_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4201,7 +4201,7 @@ static void mine_ride_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0C40 */
|
||||
static void mine_ride_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4275,7 +4275,7 @@ static void mine_ride_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0C50 */
|
||||
static void mine_ride_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4349,7 +4349,7 @@ static void mine_ride_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008B0C90 */
|
||||
static void mine_ride_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4426,7 +4426,7 @@ static void mine_ride_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008B0CA0 */
|
||||
static void mine_ride_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4503,7 +4503,7 @@ static void mine_ride_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008B0CB0 */
|
||||
static void mine_ride_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4580,7 +4580,7 @@ static void mine_ride_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008B0CC0 */
|
||||
static void mine_ride_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4657,7 +4657,7 @@ static void mine_ride_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008B0CF0 */
|
||||
static void mine_ride_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4734,7 +4734,7 @@ static void mine_ride_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B0D00 */
|
||||
static void mine_ride_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4811,7 +4811,7 @@ static void mine_ride_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008B0CD0 */
|
||||
static void mine_ride_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4890,7 +4890,7 @@ static void mine_ride_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008B0CE0 */
|
||||
static void mine_ride_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4969,7 +4969,7 @@ static void mine_ride_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008B0D10 */
|
||||
static void mine_ride_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5046,7 +5046,7 @@ static void mine_ride_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0D20 */
|
||||
static void mine_ride_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5123,7 +5123,7 @@ static void mine_ride_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B0D30 */
|
||||
static void mine_ride_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5200,7 +5200,7 @@ static void mine_ride_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008B0D40 */
|
||||
static void mine_ride_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5277,7 +5277,7 @@ static void mine_ride_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008B0C70 */
|
||||
static void mine_ride_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5351,7 +5351,7 @@ static void mine_ride_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x008B0C80 */
|
||||
static void mine_ride_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
|
||||
@@ -32,7 +32,7 @@ static constexpr const uint32_t _MineTrainBlockBrakeImages[NumOrthogonalDirectio
|
||||
|
||||
/** rct2: 0x0071BFA4 */
|
||||
static void mine_train_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -92,7 +92,7 @@ static void mine_train_rc_track_flat(
|
||||
|
||||
/** rct2: 0x0071C154, 0x0071C164, 0x0071C174 */
|
||||
static void mine_train_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -127,7 +127,7 @@ static void mine_train_rc_track_station(
|
||||
|
||||
/** rct2: 0x0071BFB4 */
|
||||
static void mine_train_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -204,7 +204,7 @@ static void mine_train_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071BFC4 */
|
||||
static void mine_train_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -248,7 +248,7 @@ static void mine_train_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x0071BFD4 */
|
||||
static void mine_train_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -325,7 +325,7 @@ static void mine_train_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071BFE4 */
|
||||
static void mine_train_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -375,7 +375,7 @@ static void mine_train_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x0071BFF4 */
|
||||
static void mine_train_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -425,7 +425,7 @@ static void mine_train_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C004 */
|
||||
static void mine_train_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -502,7 +502,7 @@ static void mine_train_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0071C014 */
|
||||
static void mine_train_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -510,7 +510,7 @@ static void mine_train_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C024 */
|
||||
static void mine_train_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -518,7 +518,7 @@ static void mine_train_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x0071C034 */
|
||||
static void mine_train_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -526,7 +526,7 @@ static void mine_train_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C044 */
|
||||
static void mine_train_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -534,7 +534,7 @@ static void mine_train_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x0071C054 */
|
||||
static void mine_train_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -542,7 +542,7 @@ static void mine_train_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C064 */
|
||||
static void mine_train_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -550,7 +550,7 @@ static void mine_train_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x0071C0B4 */
|
||||
static void mine_train_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -749,7 +749,7 @@ static void mine_train_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0071C0C4 */
|
||||
static void mine_train_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -758,7 +758,7 @@ static void mine_train_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0071C074 */
|
||||
static void mine_train_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -801,7 +801,7 @@ static void mine_train_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x0071C084 */
|
||||
static void mine_train_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -844,7 +844,7 @@ static void mine_train_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x0071C094 */
|
||||
static void mine_train_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -887,7 +887,7 @@ static void mine_train_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x0071C0A4 */
|
||||
static void mine_train_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -930,7 +930,7 @@ static void mine_train_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x0071C0D4 */
|
||||
static void mine_train_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1135,7 +1135,7 @@ static void mine_train_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0071C0E4 */
|
||||
static void mine_train_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1144,7 +1144,7 @@ static void mine_train_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0071C204 */
|
||||
static void mine_train_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1194,7 +1194,7 @@ static void mine_train_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C214 */
|
||||
static void mine_train_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1244,7 +1244,7 @@ static void mine_train_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C224 */
|
||||
static void mine_train_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1294,7 +1294,7 @@ static void mine_train_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x0071C234 */
|
||||
static void mine_train_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1344,7 +1344,7 @@ static void mine_train_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x0071C244 */
|
||||
static void mine_train_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1352,7 +1352,7 @@ static void mine_train_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C254 */
|
||||
static void mine_train_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1360,7 +1360,7 @@ static void mine_train_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C264 */
|
||||
static void mine_train_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1368,7 +1368,7 @@ static void mine_train_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x0071C274 */
|
||||
static void mine_train_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1376,7 +1376,7 @@ static void mine_train_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x0071C304 */
|
||||
static void mine_train_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1413,7 +1413,7 @@ static void mine_train_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x0071C314 */
|
||||
static void mine_train_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mine_train_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1421,7 +1421,7 @@ static void mine_train_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x0071C0F4 */
|
||||
static void mine_train_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1620,7 +1620,7 @@ static void mine_train_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C104 */
|
||||
static void mine_train_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1819,7 +1819,7 @@ static void mine_train_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C114 */
|
||||
static void mine_train_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1828,7 +1828,7 @@ static void mine_train_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C124 */
|
||||
static void mine_train_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1837,7 +1837,7 @@ static void mine_train_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C134 */
|
||||
static void mine_train_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1990,7 +1990,7 @@ static void mine_train_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x0071C144 */
|
||||
static void mine_train_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2143,7 +2143,7 @@ static void mine_train_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x0071C184 */
|
||||
static void mine_train_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2274,7 +2274,7 @@ static void mine_train_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x0071C194 */
|
||||
static void mine_train_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2283,7 +2283,7 @@ static void mine_train_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x0071C1A4 */
|
||||
static void mine_train_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2420,7 +2420,7 @@ static void mine_train_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x0071C1B4 */
|
||||
static void mine_train_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2429,7 +2429,7 @@ static void mine_train_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x0071C1C4 */
|
||||
static void mine_train_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2537,7 +2537,7 @@ static void mine_train_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C1D4 */
|
||||
static void mine_train_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2645,7 +2645,7 @@ static void mine_train_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C1E4 */
|
||||
static void mine_train_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2654,7 +2654,7 @@ static void mine_train_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C1F4 */
|
||||
static void mine_train_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2663,7 +2663,7 @@ static void mine_train_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C284 */
|
||||
static void mine_train_rc_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2943,7 +2943,7 @@ static void mine_train_rc_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x0071C294 */
|
||||
static void mine_train_rc_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3223,7 +3223,7 @@ static void mine_train_rc_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x0071C2A4 */
|
||||
static void mine_train_rc_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -3238,7 +3238,7 @@ static void mine_train_rc_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x0071C2B4 */
|
||||
static void mine_train_rc_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -3253,7 +3253,7 @@ static void mine_train_rc_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x0071C2C4 */
|
||||
static void mine_train_rc_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3677,7 +3677,7 @@ static void mine_train_rc_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x0071C2D4 */
|
||||
static void mine_train_rc_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4089,7 +4089,7 @@ static void mine_train_rc_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x0071C2E4 */
|
||||
static void mine_train_rc_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -4104,7 +4104,7 @@ static void mine_train_rc_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x0071C2F4 */
|
||||
static void mine_train_rc_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -4119,7 +4119,7 @@ static void mine_train_rc_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x0071C324 */
|
||||
static void mine_train_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4146,7 +4146,7 @@ static void mine_train_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x0071C334 */
|
||||
static void mine_train_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -4184,7 +4184,7 @@ static void mine_train_rc_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x0071C354 */
|
||||
static void mine_train_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4337,7 +4337,7 @@ static void mine_train_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x0071C364 */
|
||||
static void mine_train_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4490,7 +4490,7 @@ static void mine_train_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x0071C374 */
|
||||
static void mine_train_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -4499,7 +4499,7 @@ static void mine_train_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x0071C384 */
|
||||
static void mine_train_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -4508,7 +4508,7 @@ static void mine_train_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x0071C394 */
|
||||
static void mine_train_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4661,7 +4661,7 @@ static void mine_train_rc_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x0071C3A4 */
|
||||
static void mine_train_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4814,7 +4814,7 @@ static void mine_train_rc_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x0071C3B4 */
|
||||
static void mine_train_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -4823,7 +4823,7 @@ static void mine_train_rc_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x0071C3C4 */
|
||||
static void mine_train_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -4832,7 +4832,7 @@ static void mine_train_rc_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x0071C344 */
|
||||
static void mine_train_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4986,7 +4986,7 @@ static void mine_train_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x0071C414 */
|
||||
static void mine_train_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5140,7 +5140,7 @@ static void mine_train_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C474 */
|
||||
static void mine_train_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5218,7 +5218,7 @@ static void mine_train_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x0071C3F4 */
|
||||
static void mine_train_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5372,7 +5372,7 @@ static void mine_train_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C454 */
|
||||
static void mine_train_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5450,7 +5450,7 @@ static void mine_train_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x0071C464 */
|
||||
static void mine_train_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5528,7 +5528,7 @@ static void mine_train_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C404 */
|
||||
static void mine_train_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5682,7 +5682,7 @@ static void mine_train_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0071C444 */
|
||||
static void mine_train_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5836,7 +5836,7 @@ static void mine_train_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C4A4 */
|
||||
static void mine_train_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5914,7 +5914,7 @@ static void mine_train_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x0071C424 */
|
||||
static void mine_train_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6066,7 +6066,7 @@ static void mine_train_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C484 */
|
||||
static void mine_train_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6144,7 +6144,7 @@ static void mine_train_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x0071C494 */
|
||||
static void mine_train_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6222,7 +6222,7 @@ static void mine_train_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C434 */
|
||||
static void mine_train_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6376,7 +6376,7 @@ static void mine_train_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x0071C4D4 */
|
||||
static void mine_train_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6457,7 +6457,7 @@ static void mine_train_rc_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x0071C4B4 */
|
||||
static void mine_train_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6538,7 +6538,7 @@ static void mine_train_rc_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x0071C4C4 */
|
||||
static void mine_train_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6619,7 +6619,7 @@ static void mine_train_rc_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x0071C4E4 */
|
||||
static void mine_train_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6700,7 +6700,7 @@ static void mine_train_rc_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x0071C514 */
|
||||
static void mine_train_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6781,7 +6781,7 @@ static void mine_train_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C524 */
|
||||
static void mine_train_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6862,7 +6862,7 @@ static void mine_train_rc_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0071C4F4 */
|
||||
static void mine_train_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6943,7 +6943,7 @@ static void mine_train_rc_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x0071C504 */
|
||||
static void mine_train_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7024,7 +7024,7 @@ static void mine_train_rc_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x0071C534 */
|
||||
static void mine_train_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7100,7 +7100,7 @@ static void mine_train_rc_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C544 */
|
||||
static void mine_train_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7176,7 +7176,7 @@ static void mine_train_rc_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0071C554 */
|
||||
static void mine_train_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7257,7 +7257,7 @@ static void mine_train_rc_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x0071C564 */
|
||||
static void mine_train_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7338,7 +7338,7 @@ static void mine_train_rc_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x0071C3D4 */
|
||||
static void mine_train_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7420,7 +7420,7 @@ static void mine_train_rc_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x0071C3E4 */
|
||||
static void mine_train_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7502,7 +7502,7 @@ static void mine_train_rc_track_diag_right_bank(
|
||||
|
||||
/** rct2: 0x0071C574 */
|
||||
static void mine_train_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x008AFE9C */
|
||||
static void mini_suspended_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -85,7 +85,7 @@ static void mini_suspended_rc_track_flat(
|
||||
|
||||
/** rct2: 0x008AFF4C, 0x008AFF5C, 0x008AFF6C */
|
||||
static void mini_suspended_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -113,7 +113,7 @@ static void mini_suspended_rc_track_station(
|
||||
|
||||
/** rct2: 0x008AFEAC */
|
||||
static void mini_suspended_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -207,7 +207,7 @@ static void mini_suspended_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AFEBC */
|
||||
static void mini_suspended_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -301,7 +301,7 @@ static void mini_suspended_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AFECC */
|
||||
static void mini_suspended_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -395,7 +395,7 @@ static void mini_suspended_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008AFEDC */
|
||||
static void mini_suspended_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mini_suspended_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -403,7 +403,7 @@ static void mini_suspended_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AFEEC */
|
||||
static void mini_suspended_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mini_suspended_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -411,7 +411,7 @@ static void mini_suspended_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008AFEFC */
|
||||
static void mini_suspended_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
mini_suspended_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -419,7 +419,7 @@ static void mini_suspended_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008AFF0C */
|
||||
static void mini_suspended_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -624,7 +624,7 @@ static void mini_suspended_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AFF1C */
|
||||
static void mini_suspended_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -633,7 +633,7 @@ static void mini_suspended_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008AFF2C */
|
||||
static void mini_suspended_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -828,7 +828,7 @@ static void mini_suspended_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008AFF3C */
|
||||
static void mini_suspended_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1023,7 +1023,7 @@ static void mini_suspended_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008AFF7C */
|
||||
static void mini_suspended_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1165,7 +1165,7 @@ static void mini_suspended_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008AFF8C */
|
||||
static void mini_suspended_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1174,7 +1174,7 @@ static void mini_suspended_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008AFFAC */
|
||||
static void mini_suspended_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1347,7 +1347,7 @@ static void mini_suspended_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008AFFBC */
|
||||
static void mini_suspended_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1520,7 +1520,7 @@ static void mini_suspended_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008AFFCC */
|
||||
static void mini_suspended_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1529,7 +1529,7 @@ static void mini_suspended_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008AFFDC */
|
||||
static void mini_suspended_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1538,7 +1538,7 @@ static void mini_suspended_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008AFF9C */
|
||||
static void mini_suspended_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1677,7 +1677,7 @@ static void mini_suspended_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008B000C */
|
||||
static void mini_suspended_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1816,7 +1816,7 @@ static void mini_suspended_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AFFEC */
|
||||
static void mini_suspended_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1955,7 +1955,7 @@ static void mini_suspended_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008AFFFC */
|
||||
static void mini_suspended_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2094,7 +2094,7 @@ static void mini_suspended_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008B003C */
|
||||
static void mini_suspended_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2233,7 +2233,7 @@ static void mini_suspended_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B001C */
|
||||
static void mini_suspended_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2369,7 +2369,7 @@ static void mini_suspended_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008B002C */
|
||||
static void mini_suspended_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
|
||||
@@ -35,7 +35,7 @@ static constexpr const uint32_t MULTI_DIM_INVERTED_BLOCK_BRAKE_NW_SE_CLOSED = 26
|
||||
|
||||
/** rct2: 0x00792D88 */
|
||||
static void multi_dimension_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -123,7 +123,7 @@ static void multi_dimension_rc_track_flat(
|
||||
|
||||
/** rct2: 0x00792F98, 0x00792FA8, 0x00792FB8 */
|
||||
static void multi_dimension_rc_track_station(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[NumOrthogonalDirections][3] = {
|
||||
@@ -180,7 +180,7 @@ static void multi_dimension_rc_track_station(
|
||||
|
||||
/** rct2: 0x00792D98 */
|
||||
static void multi_dimension_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -323,7 +323,7 @@ static void multi_dimension_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x00792DA8 */
|
||||
static void multi_dimension_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -408,7 +408,7 @@ static void multi_dimension_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x00792DB8 */
|
||||
static void multi_dimension_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -551,7 +551,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00792DC8 */
|
||||
static void multi_dimension_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -648,7 +648,7 @@ static void multi_dimension_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x00792DD8 */
|
||||
static void multi_dimension_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -769,7 +769,7 @@ static void multi_dimension_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00792DE8 */
|
||||
static void multi_dimension_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -912,7 +912,7 @@ static void multi_dimension_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x00792DF8 */
|
||||
static void multi_dimension_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -920,7 +920,7 @@ static void multi_dimension_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x00792E08 */
|
||||
static void multi_dimension_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -928,7 +928,7 @@ static void multi_dimension_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x00792E18 */
|
||||
static void multi_dimension_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -936,7 +936,7 @@ static void multi_dimension_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00792E28 */
|
||||
static void multi_dimension_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -944,7 +944,7 @@ static void multi_dimension_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x00792E38 */
|
||||
static void multi_dimension_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -952,7 +952,7 @@ static void multi_dimension_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00792E48 */
|
||||
static void multi_dimension_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -960,7 +960,7 @@ static void multi_dimension_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x00792E58 */
|
||||
static void multi_dimension_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1322,7 +1322,7 @@ static void multi_dimension_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00792E68 */
|
||||
static void multi_dimension_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1331,7 +1331,7 @@ static void multi_dimension_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00792E78 */
|
||||
static void multi_dimension_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1417,7 +1417,7 @@ static void multi_dimension_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x00792E88 */
|
||||
static void multi_dimension_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1503,7 +1503,7 @@ static void multi_dimension_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x00792E98 */
|
||||
static void multi_dimension_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1589,7 +1589,7 @@ static void multi_dimension_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00792EA8 */
|
||||
static void multi_dimension_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -1675,7 +1675,7 @@ static void multi_dimension_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00792EB8 */
|
||||
static void multi_dimension_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2043,7 +2043,7 @@ static void multi_dimension_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00792EC8 */
|
||||
static void multi_dimension_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -2053,7 +2053,7 @@ static void multi_dimension_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x00792ED8 */
|
||||
static void multi_dimension_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2170,7 +2170,7 @@ static void multi_dimension_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00792EE8 */
|
||||
static void multi_dimension_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2287,7 +2287,7 @@ static void multi_dimension_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00792EF8 */
|
||||
static void multi_dimension_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2404,7 +2404,7 @@ static void multi_dimension_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x00792F08 */
|
||||
static void multi_dimension_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2521,7 +2521,7 @@ static void multi_dimension_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x00792F18 */
|
||||
static void multi_dimension_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2529,7 +2529,7 @@ static void multi_dimension_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00792F28 */
|
||||
static void multi_dimension_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2537,7 +2537,7 @@ static void multi_dimension_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00792F38 */
|
||||
static void multi_dimension_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2545,7 +2545,7 @@ static void multi_dimension_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x00792F48 */
|
||||
static void multi_dimension_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2553,7 +2553,7 @@ static void multi_dimension_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x00792F58 */
|
||||
static void multi_dimension_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2633,7 +2633,7 @@ static void multi_dimension_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x00792F68 */
|
||||
static void multi_dimension_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -2641,7 +2641,7 @@ static void multi_dimension_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x00792F78 */
|
||||
static void multi_dimension_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -2958,7 +2958,7 @@ static void multi_dimension_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x00792F88 */
|
||||
static void multi_dimension_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -3275,7 +3275,7 @@ static void multi_dimension_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x00792FC8 */
|
||||
static void multi_dimension_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -3507,7 +3507,7 @@ static void multi_dimension_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x00792FD8 */
|
||||
static void multi_dimension_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3516,7 +3516,7 @@ static void multi_dimension_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x00792FE8 */
|
||||
static void multi_dimension_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -3754,7 +3754,7 @@ static void multi_dimension_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x00792FF8 */
|
||||
static void multi_dimension_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3763,7 +3763,7 @@ static void multi_dimension_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x00793008 */
|
||||
static void multi_dimension_rc_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3991,7 +3991,7 @@ static void multi_dimension_rc_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x00793018 */
|
||||
static void multi_dimension_rc_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4219,7 +4219,7 @@ static void multi_dimension_rc_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x00793028 */
|
||||
static void multi_dimension_rc_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -4234,7 +4234,7 @@ static void multi_dimension_rc_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x00793038 */
|
||||
static void multi_dimension_rc_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -4249,7 +4249,7 @@ static void multi_dimension_rc_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x00793048 */
|
||||
static void multi_dimension_rc_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4603,7 +4603,7 @@ static void multi_dimension_rc_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x00793058 */
|
||||
static void multi_dimension_rc_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4957,7 +4957,7 @@ static void multi_dimension_rc_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x00793068 */
|
||||
static void multi_dimension_rc_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -4972,7 +4972,7 @@ static void multi_dimension_rc_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x00793078 */
|
||||
static void multi_dimension_rc_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -4987,7 +4987,7 @@ static void multi_dimension_rc_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x00793088 */
|
||||
static void multi_dimension_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5049,7 +5049,7 @@ static void multi_dimension_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x00793098 */
|
||||
static void multi_dimension_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5164,7 +5164,7 @@ static void multi_dimension_rc_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x00793328 */
|
||||
static void multi_dimension_rc_track_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5245,7 +5245,7 @@ static void multi_dimension_rc_track_90_deg_up(
|
||||
|
||||
/** rct2: 0x00793338 */
|
||||
static void multi_dimension_rc_track_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -5253,7 +5253,7 @@ static void multi_dimension_rc_track_90_deg_down(
|
||||
|
||||
/** rct2: 0x00793348 */
|
||||
static void multi_dimension_rc_track_60_deg_up_to_90_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5342,7 +5342,7 @@ static void multi_dimension_rc_track_60_deg_up_to_90_deg_up(
|
||||
|
||||
/** rct2: 0x00793358 */
|
||||
static void multi_dimension_rc_track_90_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
multi_dimension_rc_track_60_deg_up_to_90_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -5350,7 +5350,7 @@ static void multi_dimension_rc_track_90_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x00793368 */
|
||||
static void multi_dimension_rc_track_90_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5433,7 +5433,7 @@ static void multi_dimension_rc_track_90_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x00793378 */
|
||||
static void multi_dimension_rc_track_60_deg_down_to_90_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5520,7 +5520,7 @@ static void multi_dimension_rc_track_60_deg_down_to_90_deg_down(
|
||||
|
||||
/** rct2: 0x007930B8 */
|
||||
static void multi_dimension_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -5821,7 +5821,7 @@ static void multi_dimension_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x007930C8 */
|
||||
static void multi_dimension_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -6122,7 +6122,7 @@ static void multi_dimension_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x007930D8 */
|
||||
static void multi_dimension_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -6131,7 +6131,7 @@ static void multi_dimension_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x007930E8 */
|
||||
static void multi_dimension_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -6140,7 +6140,7 @@ static void multi_dimension_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x007930F8 */
|
||||
static void multi_dimension_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -6441,7 +6441,7 @@ static void multi_dimension_rc_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x00793108 */
|
||||
static void multi_dimension_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -6742,7 +6742,7 @@ static void multi_dimension_rc_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x00793118 */
|
||||
static void multi_dimension_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -6751,7 +6751,7 @@ static void multi_dimension_rc_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x00793128 */
|
||||
static void multi_dimension_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -6760,7 +6760,7 @@ static void multi_dimension_rc_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x007930A8 */
|
||||
static void multi_dimension_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7044,7 +7044,7 @@ static void multi_dimension_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x00793158 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7328,7 +7328,7 @@ static void multi_dimension_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x007931B8 */
|
||||
static void multi_dimension_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7486,7 +7486,7 @@ static void multi_dimension_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x00793138 */
|
||||
static void multi_dimension_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7770,7 +7770,7 @@ static void multi_dimension_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00793198 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -7928,7 +7928,7 @@ static void multi_dimension_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x007931A8 */
|
||||
static void multi_dimension_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8086,7 +8086,7 @@ static void multi_dimension_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00793148 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8370,7 +8370,7 @@ static void multi_dimension_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x00793188 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8598,7 +8598,7 @@ static void multi_dimension_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x007931E8 */
|
||||
static void multi_dimension_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8756,7 +8756,7 @@ static void multi_dimension_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x00793168 */
|
||||
static void multi_dimension_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -8980,7 +8980,7 @@ static void multi_dimension_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x007931C8 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9138,7 +9138,7 @@ static void multi_dimension_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x007931D8 */
|
||||
static void multi_dimension_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9296,7 +9296,7 @@ static void multi_dimension_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x00793178 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9524,7 +9524,7 @@ static void multi_dimension_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x00793218 */
|
||||
static void multi_dimension_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9686,7 +9686,7 @@ static void multi_dimension_rc_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x00793228 */
|
||||
static void multi_dimension_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -9848,7 +9848,7 @@ static void multi_dimension_rc_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x00793238 */
|
||||
static void multi_dimension_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10010,7 +10010,7 @@ static void multi_dimension_rc_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00793248 */
|
||||
static void multi_dimension_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10172,7 +10172,7 @@ static void multi_dimension_rc_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x00793278 */
|
||||
static void multi_dimension_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10333,7 +10333,7 @@ static void multi_dimension_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00793288 */
|
||||
static void multi_dimension_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10494,7 +10494,7 @@ static void multi_dimension_rc_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00793258 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10655,7 +10655,7 @@ static void multi_dimension_rc_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x00793268 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10816,7 +10816,7 @@ static void multi_dimension_rc_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x00793298 */
|
||||
static void multi_dimension_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -10970,7 +10970,7 @@ static void multi_dimension_rc_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x007932A8 */
|
||||
static void multi_dimension_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11124,7 +11124,7 @@ static void multi_dimension_rc_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x007932B8 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11285,7 +11285,7 @@ static void multi_dimension_rc_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x007932C8 */
|
||||
static void multi_dimension_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11446,7 +11446,7 @@ static void multi_dimension_rc_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x007931F8 */
|
||||
static void multi_dimension_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11605,7 +11605,7 @@ static void multi_dimension_rc_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x00793208 */
|
||||
static void multi_dimension_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -11764,7 +11764,7 @@ static void multi_dimension_rc_track_diag_right_bank(
|
||||
|
||||
/** rct2: 0x007932D8 */
|
||||
static void multi_dimension_rc_track_left_flyer_twist_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -11883,7 +11883,7 @@ static void multi_dimension_rc_track_left_flyer_twist_up(
|
||||
|
||||
/** rct2: 0x007932E8 */
|
||||
static void multi_dimension_rc_track_right_flyer_twist_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -12002,7 +12002,7 @@ static void multi_dimension_rc_track_right_flyer_twist_up(
|
||||
|
||||
/** rct2: 0x007932F8 */
|
||||
static void multi_dimension_rc_track_left_flyer_twist_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -12121,7 +12121,7 @@ static void multi_dimension_rc_track_left_flyer_twist_down(
|
||||
|
||||
/** rct2: 0x00793308 */
|
||||
static void multi_dimension_rc_track_right_flyer_twist_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -12240,7 +12240,7 @@ static void multi_dimension_rc_track_right_flyer_twist_down(
|
||||
|
||||
/** rct2: 0x00793398 */
|
||||
static void multi_dimension_rc_track_multidim_inverted_flat_to_90_deg_quarter_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12439,7 +12439,7 @@ static void multi_dimension_rc_track_multidim_inverted_flat_to_90_deg_quarter_lo
|
||||
|
||||
/** rct2: 0x00793318 */
|
||||
static void multi_dimension_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
@@ -12489,7 +12489,7 @@ static void multi_dimension_rc_track_block_brakes(
|
||||
|
||||
/** rct2: 0x00793388 */
|
||||
static void multi_dimension_rc_track_multidim_90_deg_up_to_inverted_flat_quarter_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12684,7 +12684,7 @@ static void multi_dimension_rc_track_multidim_90_deg_up_to_inverted_flat_quarter
|
||||
|
||||
/** rct2: 0x00793398 */
|
||||
static void multi_dimension_rc_track_multidim_flat_to_90_deg_down_quarter_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
@@ -12883,7 +12883,7 @@ static void multi_dimension_rc_track_multidim_flat_to_90_deg_down_quarter_loop(
|
||||
|
||||
/** rct2: 0x00793388 */
|
||||
static void multi_dimension_rc_track_multidim_inverted_90_deg_up_to_flat_quarter_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (!trackElement.IsInverted())
|
||||
|
||||
@@ -196,7 +196,7 @@ static constexpr const uint32_t reverse_freefall_rc_track_pieces_vertical_suppor
|
||||
};
|
||||
|
||||
static void paint_reverse_freefall_rc_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (direction & 1)
|
||||
@@ -218,7 +218,7 @@ static void paint_reverse_freefall_rc_flat(
|
||||
}
|
||||
|
||||
static void paint_reverse_freefall_rc_station(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -257,7 +257,7 @@ static void paint_reverse_freefall_rc_station(
|
||||
}
|
||||
|
||||
static void paint_reverse_freefall_rc_slope(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const int8_t bbHeights03[] = { 1, 6, 14, 37, 64 };
|
||||
@@ -358,7 +358,7 @@ static void paint_reverse_freefall_rc_slope(
|
||||
}
|
||||
|
||||
static void paint_reverse_freefall_rc_vertical(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId supportsImageId, trackImageId;
|
||||
@@ -391,7 +391,7 @@ static void paint_reverse_freefall_rc_vertical(
|
||||
}
|
||||
|
||||
static void paint_reverse_freefall_rc_onride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
|
||||
@@ -27,7 +27,7 @@
|
||||
* rct2: 0x006D4453
|
||||
*/
|
||||
void vehicle_visual_reverser(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry)
|
||||
{
|
||||
Vehicle* v1 = GetEntity<Vehicle>(vehicle->prev_vehicle_on_ride);
|
||||
@@ -47,7 +47,7 @@ void vehicle_visual_reverser(
|
||||
|
||||
/** rct2: 0x0086E65C */
|
||||
static void reverser_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -96,7 +96,7 @@ static void reverser_rc_track_flat(
|
||||
}
|
||||
|
||||
static void reverser_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -121,7 +121,7 @@ static void reverser_rc_track_station(
|
||||
|
||||
/** rct2: 0x0086E66C */
|
||||
static void reverser_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -198,7 +198,7 @@ static void reverser_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x0086E67C */
|
||||
static void reverser_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -275,7 +275,7 @@ static void reverser_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0086E68C */
|
||||
static void reverser_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -352,7 +352,7 @@ static void reverser_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0086E69C */
|
||||
static void reverser_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
reverser_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -360,7 +360,7 @@ static void reverser_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x0086E6AC */
|
||||
static void reverser_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
reverser_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -368,7 +368,7 @@ static void reverser_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0086E6BC */
|
||||
static void reverser_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
reverser_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -376,7 +376,7 @@ static void reverser_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x0086E6CC */
|
||||
static void reverser_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -575,7 +575,7 @@ static void reverser_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0086E6DC */
|
||||
static void reverser_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -584,7 +584,7 @@ static void reverser_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0086E6EC */
|
||||
static void reverser_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -737,7 +737,7 @@ static void reverser_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x0086E6FC */
|
||||
static void reverser_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -890,7 +890,7 @@ static void reverser_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x0086E73C */
|
||||
static void reverser_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1006,7 +1006,7 @@ static void reverser_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x0086E74C */
|
||||
static void reverser_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1015,7 +1015,7 @@ static void reverser_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x0086E75C */
|
||||
static void reverser_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1042,7 +1042,7 @@ static void reverser_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x0086E76C */
|
||||
static void reverser_rc_track_left_reverser(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1251,7 +1251,7 @@ static void reverser_rc_track_left_reverser(
|
||||
|
||||
/** rct2: 0x0086E77C */
|
||||
static void reverser_rc_track_right_reverser(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
|
||||
@@ -67,7 +67,7 @@ constexpr int32_t SPR_SIDE_FRICTION_DIAG_60_DEG_UP_TO_25_DEG_UP_DIR_3_A = 21879;
|
||||
|
||||
/** rct2: 0x0077839C */
|
||||
static void side_friction_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -145,7 +145,7 @@ static void side_friction_rc_track_flat(
|
||||
|
||||
/** rct2: 0x007784AC, 0x007784BC, 0x007784CC */
|
||||
static void side_friction_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -167,7 +167,7 @@ static void side_friction_rc_track_station(
|
||||
|
||||
/** rct2: 0x007783AC */
|
||||
static void side_friction_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -268,7 +268,7 @@ static void side_friction_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x007783CC */
|
||||
static void side_friction_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -369,7 +369,7 @@ static void side_friction_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x007783FC */
|
||||
static void side_friction_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -470,7 +470,7 @@ static void side_friction_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0077840C */
|
||||
static void side_friction_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -478,7 +478,7 @@ static void side_friction_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x0077842C */
|
||||
static void side_friction_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -486,7 +486,7 @@ static void side_friction_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0077845C */
|
||||
static void side_friction_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -494,7 +494,7 @@ static void side_friction_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x0077846C */
|
||||
static void side_friction_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -753,7 +753,7 @@ static void side_friction_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0077847C */
|
||||
static void side_friction_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -762,7 +762,7 @@ static void side_friction_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x0077848C */
|
||||
static void side_friction_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -963,7 +963,7 @@ static void side_friction_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x0077849C */
|
||||
static void side_friction_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1164,7 +1164,7 @@ static void side_friction_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x007784DC */
|
||||
static void side_friction_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1316,7 +1316,7 @@ static void side_friction_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x007784EC */
|
||||
static void side_friction_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1325,7 +1325,7 @@ static void side_friction_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x007784FC */
|
||||
static void side_friction_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1358,7 +1358,7 @@ static void side_friction_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x007785DC */
|
||||
static void side_friction_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1559,7 +1559,7 @@ static void side_friction_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x007785EC */
|
||||
static void side_friction_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1760,7 +1760,7 @@ static void side_friction_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x007785FC */
|
||||
static void side_friction_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1769,7 +1769,7 @@ static void side_friction_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x0077860C */
|
||||
static void side_friction_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1778,7 +1778,7 @@ static void side_friction_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x0077850C */
|
||||
static void side_friction_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1944,7 +1944,7 @@ static void side_friction_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x0077853C */
|
||||
static void side_friction_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2110,7 +2110,7 @@ static void side_friction_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x0077851C */
|
||||
static void side_friction_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2276,7 +2276,7 @@ static void side_friction_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0077852C */
|
||||
static void side_friction_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2442,7 +2442,7 @@ static void side_friction_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0077859C */
|
||||
static void side_friction_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2608,7 +2608,7 @@ static void side_friction_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x0077857C */
|
||||
static void side_friction_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2769,7 +2769,7 @@ static void side_friction_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0077858C */
|
||||
static void side_friction_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2934,7 +2934,7 @@ static void side_friction_rc_track_diag_25_deg_down_to_flat(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -2993,14 +2993,14 @@ static void side_friction_rc_track_60_deg_up(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -3064,14 +3064,14 @@ static void side_friction_rc_track_25_deg_up_to_60_deg_up(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -3135,14 +3135,14 @@ static void side_friction_rc_track_60_deg_up_to_25_deg_up(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3233,14 +3233,14 @@ static void side_friction_rc_track_diag_60_deg_up(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_diag_60_deg_up(session, ride, 3 - trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3329,7 +3329,7 @@ static void side_friction_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
@@ -3337,7 +3337,7 @@ static void side_friction_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
};
|
||||
|
||||
static void side_friction_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3424,7 +3424,7 @@ static void side_friction_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
}
|
||||
|
||||
static void side_friction_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
side_friction_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -32,7 +32,7 @@ static constexpr const uint32_t _StandUpBlockBrakeImages[NumOrthogonalDirections
|
||||
|
||||
/** rct2: 0x008A7114 */
|
||||
static void stand_up_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -89,7 +89,7 @@ static void stand_up_rc_track_flat(
|
||||
|
||||
/** rct2: 0x008A7384, 0x008A7394, 0x008A73A4 */
|
||||
static void stand_up_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -124,7 +124,7 @@ static void stand_up_rc_track_station(
|
||||
|
||||
/** rct2: 0x008A7124 */
|
||||
static void stand_up_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -194,7 +194,7 @@ static void stand_up_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7134 */
|
||||
static void stand_up_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -268,7 +268,7 @@ static void stand_up_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7144 */
|
||||
static void stand_up_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -338,7 +338,7 @@ static void stand_up_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7154 */
|
||||
static void stand_up_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -424,7 +424,7 @@ static void stand_up_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7164 */
|
||||
static void stand_up_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -510,7 +510,7 @@ static void stand_up_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7174 */
|
||||
static void stand_up_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -580,7 +580,7 @@ static void stand_up_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A7184 */
|
||||
static void stand_up_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -588,7 +588,7 @@ static void stand_up_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7194 */
|
||||
static void stand_up_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -596,7 +596,7 @@ static void stand_up_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A71A4 */
|
||||
static void stand_up_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -604,7 +604,7 @@ static void stand_up_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A71B4 */
|
||||
static void stand_up_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -612,7 +612,7 @@ static void stand_up_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A71C4 */
|
||||
static void stand_up_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -620,7 +620,7 @@ static void stand_up_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A71D4 */
|
||||
static void stand_up_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -628,7 +628,7 @@ static void stand_up_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A71E4 */
|
||||
static void stand_up_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -803,7 +803,7 @@ static void stand_up_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A71F4 */
|
||||
static void stand_up_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -812,7 +812,7 @@ static void stand_up_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7204 */
|
||||
static void stand_up_rc_track_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -846,7 +846,7 @@ static void stand_up_rc_track_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7214 */
|
||||
static void stand_up_rc_track_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -880,7 +880,7 @@ static void stand_up_rc_track_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A7224 */
|
||||
static void stand_up_rc_track_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -914,7 +914,7 @@ static void stand_up_rc_track_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A7234 */
|
||||
static void stand_up_rc_track_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -948,7 +948,7 @@ static void stand_up_rc_track_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A7244 */
|
||||
static void stand_up_rc_track_banked_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1129,7 +1129,7 @@ static void stand_up_rc_track_banked_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7254 */
|
||||
static void stand_up_rc_track_banked_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1138,7 +1138,7 @@ static void stand_up_rc_track_banked_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A7264 */
|
||||
static void stand_up_rc_track_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1179,7 +1179,7 @@ static void stand_up_rc_track_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7274 */
|
||||
static void stand_up_rc_track_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1220,7 +1220,7 @@ static void stand_up_rc_track_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7284 */
|
||||
static void stand_up_rc_track_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1261,7 +1261,7 @@ static void stand_up_rc_track_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7294 */
|
||||
static void stand_up_rc_track_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1302,7 +1302,7 @@ static void stand_up_rc_track_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A72A4 */
|
||||
static void stand_up_rc_track_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_25_deg_up_to_right_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1310,7 +1310,7 @@ static void stand_up_rc_track_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A72B4 */
|
||||
static void stand_up_rc_track_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_25_deg_up_to_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1318,7 +1318,7 @@ static void stand_up_rc_track_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A72C4 */
|
||||
static void stand_up_rc_track_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_right_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1326,7 +1326,7 @@ static void stand_up_rc_track_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A72D4 */
|
||||
static void stand_up_rc_track_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_left_bank_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1334,7 +1334,7 @@ static void stand_up_rc_track_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A72E4 */
|
||||
static void stand_up_rc_track_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1368,7 +1368,7 @@ static void stand_up_rc_track_left_bank(
|
||||
|
||||
/** rct2: 0x008A72F4 */
|
||||
static void stand_up_rc_track_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_left_bank(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -1376,7 +1376,7 @@ static void stand_up_rc_track_right_bank(
|
||||
|
||||
/** rct2: 0x008A7304 */
|
||||
static void stand_up_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1698,7 +1698,7 @@ static void stand_up_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7314 */
|
||||
static void stand_up_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2020,7 +2020,7 @@ static void stand_up_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7324 */
|
||||
static void stand_up_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -2029,7 +2029,7 @@ static void stand_up_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7334 */
|
||||
static void stand_up_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -2038,7 +2038,7 @@ static void stand_up_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7344 */
|
||||
static void stand_up_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2187,7 +2187,7 @@ static void stand_up_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008A7354 */
|
||||
static void stand_up_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2336,7 +2336,7 @@ static void stand_up_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008A7364 */
|
||||
static void stand_up_rc_track_left_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2619,7 +2619,7 @@ static void stand_up_rc_track_left_vertical_loop(
|
||||
|
||||
/** rct2: 0x008A7374 */
|
||||
static void stand_up_rc_track_right_vertical_loop(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2876,7 +2876,7 @@ static void stand_up_rc_track_right_vertical_loop(
|
||||
|
||||
/** rct2: 0x008A73B4 */
|
||||
static void stand_up_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2988,7 +2988,7 @@ static void stand_up_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A73C4 */
|
||||
static void stand_up_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -2997,7 +2997,7 @@ static void stand_up_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A73D4 */
|
||||
static void stand_up_rc_track_left_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3115,7 +3115,7 @@ static void stand_up_rc_track_left_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008A73E4 */
|
||||
static void stand_up_rc_track_right_quarter_turn_3_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3124,7 +3124,7 @@ static void stand_up_rc_track_right_quarter_turn_3_bank(
|
||||
|
||||
/** rct2: 0x008A73F4 */
|
||||
static void stand_up_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3271,7 +3271,7 @@ static void stand_up_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7404 */
|
||||
static void stand_up_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3432,7 +3432,7 @@ static void stand_up_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7414 */
|
||||
static void stand_up_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3441,7 +3441,7 @@ static void stand_up_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7424 */
|
||||
static void stand_up_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -3450,7 +3450,7 @@ static void stand_up_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7434 */
|
||||
static void stand_up_rc_track_half_loop_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3590,7 +3590,7 @@ static void stand_up_rc_track_half_loop_up(
|
||||
|
||||
/** rct2: 0x008A7444 */
|
||||
static void stand_up_rc_track_half_loop_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_half_loop_up(session, ride, 3 - trackSequence, direction, height, trackElement);
|
||||
@@ -3598,7 +3598,7 @@ static void stand_up_rc_track_half_loop_down(
|
||||
|
||||
/** rct2: 0x008A7454 */
|
||||
static void stand_up_rc_track_left_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3709,7 +3709,7 @@ static void stand_up_rc_track_left_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008A7464 */
|
||||
static void stand_up_rc_track_right_corkscrew_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3821,7 +3821,7 @@ static void stand_up_rc_track_right_corkscrew_up(
|
||||
|
||||
/** rct2: 0x008A7474 */
|
||||
static void stand_up_rc_track_left_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_right_corkscrew_up(session, ride, 2 - trackSequence, (direction + 1) & 3, height, trackElement);
|
||||
@@ -3829,7 +3829,7 @@ static void stand_up_rc_track_left_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008A7484 */
|
||||
static void stand_up_rc_track_right_corkscrew_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
stand_up_rc_track_left_corkscrew_up(session, ride, 2 - trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -3837,7 +3837,7 @@ static void stand_up_rc_track_right_corkscrew_down(
|
||||
|
||||
/** rct2: 0x008A7734 */
|
||||
static void stand_up_rc_track_left_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4067,7 +4067,7 @@ static void stand_up_rc_track_left_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x008A7744 */
|
||||
static void stand_up_rc_track_right_half_banked_helix_up_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4297,7 +4297,7 @@ static void stand_up_rc_track_right_half_banked_helix_up_small(
|
||||
|
||||
/** rct2: 0x008A7754 */
|
||||
static void stand_up_rc_track_left_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -4311,7 +4311,7 @@ static void stand_up_rc_track_left_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x008A7764 */
|
||||
static void stand_up_rc_track_right_half_banked_helix_down_small(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 4)
|
||||
@@ -4325,7 +4325,7 @@ static void stand_up_rc_track_right_half_banked_helix_down_small(
|
||||
|
||||
/** rct2: 0x008A76F4 */
|
||||
static void stand_up_rc_track_left_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4681,7 +4681,7 @@ static void stand_up_rc_track_left_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x008A7704 */
|
||||
static void stand_up_rc_track_right_half_banked_helix_up_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5037,7 +5037,7 @@ static void stand_up_rc_track_right_half_banked_helix_up_large(
|
||||
|
||||
/** rct2: 0x008A7714 */
|
||||
static void stand_up_rc_track_left_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -5051,7 +5051,7 @@ static void stand_up_rc_track_left_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x008A7724 */
|
||||
static void stand_up_rc_track_right_half_banked_helix_down_large(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence >= 7)
|
||||
@@ -5065,7 +5065,7 @@ static void stand_up_rc_track_right_half_banked_helix_down_large(
|
||||
|
||||
/** rct2: 0x008A7494 */
|
||||
static void stand_up_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -5093,7 +5093,7 @@ static void stand_up_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x008A74A4 */
|
||||
static void stand_up_rc_track_on_ride_photo(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -5143,7 +5143,7 @@ static void stand_up_rc_track_on_ride_photo(
|
||||
|
||||
/** rct2: 0x008A74B4 */
|
||||
static void stand_up_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5288,7 +5288,7 @@ static void stand_up_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A74C4 */
|
||||
static void stand_up_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5433,7 +5433,7 @@ static void stand_up_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A74D4 */
|
||||
static void stand_up_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5442,7 +5442,7 @@ static void stand_up_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A74E4 */
|
||||
static void stand_up_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5451,7 +5451,7 @@ static void stand_up_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A76A4 */
|
||||
static void stand_up_rc_track_left_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5596,7 +5596,7 @@ static void stand_up_rc_track_left_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008A76B4 */
|
||||
static void stand_up_rc_track_right_eighth_bank_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5741,7 +5741,7 @@ static void stand_up_rc_track_right_eighth_bank_to_diag(
|
||||
|
||||
/** rct2: 0x008A76C4 */
|
||||
static void stand_up_rc_track_left_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5750,7 +5750,7 @@ static void stand_up_rc_track_left_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A76D4 */
|
||||
static void stand_up_rc_track_right_eighth_bank_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -5759,7 +5759,7 @@ static void stand_up_rc_track_right_eighth_bank_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A74F4 */
|
||||
static void stand_up_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -5905,7 +5905,7 @@ static void stand_up_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008A7524 */
|
||||
static void stand_up_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6051,7 +6051,7 @@ static void stand_up_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7584 */
|
||||
static void stand_up_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6197,7 +6197,7 @@ static void stand_up_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7504 */
|
||||
static void stand_up_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6343,7 +6343,7 @@ static void stand_up_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7564 */
|
||||
static void stand_up_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6489,7 +6489,7 @@ static void stand_up_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A7574 */
|
||||
static void stand_up_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6635,7 +6635,7 @@ static void stand_up_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7514 */
|
||||
static void stand_up_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6781,7 +6781,7 @@ static void stand_up_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A7554 */
|
||||
static void stand_up_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -6927,7 +6927,7 @@ static void stand_up_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A75B4 */
|
||||
static void stand_up_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7073,7 +7073,7 @@ static void stand_up_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A7534 */
|
||||
static void stand_up_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7217,7 +7217,7 @@ static void stand_up_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7594 */
|
||||
static void stand_up_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7363,7 +7363,7 @@ static void stand_up_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A75A4 */
|
||||
static void stand_up_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7509,7 +7509,7 @@ static void stand_up_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7544 */
|
||||
static void stand_up_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7655,7 +7655,7 @@ static void stand_up_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A75E4 */
|
||||
static void stand_up_rc_track_diag_flat_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7734,7 +7734,7 @@ static void stand_up_rc_track_diag_flat_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A75F4 */
|
||||
static void stand_up_rc_track_diag_flat_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7813,7 +7813,7 @@ static void stand_up_rc_track_diag_flat_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A7604 */
|
||||
static void stand_up_rc_track_diag_left_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7892,7 +7892,7 @@ static void stand_up_rc_track_diag_left_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A7614 */
|
||||
static void stand_up_rc_track_diag_right_bank_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -7971,7 +7971,7 @@ static void stand_up_rc_track_diag_right_bank_to_flat(
|
||||
|
||||
/** rct2: 0x008A7644 */
|
||||
static void stand_up_rc_track_diag_left_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8050,7 +8050,7 @@ static void stand_up_rc_track_diag_left_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7654 */
|
||||
static void stand_up_rc_track_diag_right_bank_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8129,7 +8129,7 @@ static void stand_up_rc_track_diag_right_bank_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A7624 */
|
||||
static void stand_up_rc_track_diag_25_deg_up_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8208,7 +8208,7 @@ static void stand_up_rc_track_diag_25_deg_up_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7634 */
|
||||
static void stand_up_rc_track_diag_25_deg_up_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8287,7 +8287,7 @@ static void stand_up_rc_track_diag_25_deg_up_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A7664 */
|
||||
static void stand_up_rc_track_diag_left_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8364,7 +8364,7 @@ static void stand_up_rc_track_diag_left_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7674 */
|
||||
static void stand_up_rc_track_diag_right_bank_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8441,7 +8441,7 @@ static void stand_up_rc_track_diag_right_bank_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A7684 */
|
||||
static void stand_up_rc_track_diag_25_deg_down_to_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8520,7 +8520,7 @@ static void stand_up_rc_track_diag_25_deg_down_to_left_bank(
|
||||
|
||||
/** rct2: 0x008A7694 */
|
||||
static void stand_up_rc_track_diag_25_deg_down_to_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8599,7 +8599,7 @@ static void stand_up_rc_track_diag_25_deg_down_to_right_bank(
|
||||
|
||||
/** rct2: 0x008A75C4 */
|
||||
static void stand_up_rc_track_diag_left_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8675,7 +8675,7 @@ static void stand_up_rc_track_diag_left_bank(
|
||||
|
||||
/** rct2: 0x008A75D4 */
|
||||
static void stand_up_rc_track_diag_right_bank(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -8751,7 +8751,7 @@ static void stand_up_rc_track_diag_right_bank(
|
||||
|
||||
/** rct2: 0x008A76E4 */
|
||||
static void stand_up_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x008A59A8 */
|
||||
static void steeplechase_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -68,7 +68,7 @@ static void steeplechase_track_flat(
|
||||
}
|
||||
|
||||
static void steeplechase_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -93,7 +93,7 @@ static void steeplechase_track_station(
|
||||
|
||||
/** rct2: 0x008A59B8 */
|
||||
static void steeplechase_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -167,7 +167,7 @@ static void steeplechase_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A59C8 */
|
||||
static void steeplechase_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -241,7 +241,7 @@ static void steeplechase_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A59D8 */
|
||||
static void steeplechase_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -315,7 +315,7 @@ static void steeplechase_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A59E8 */
|
||||
static void steeplechase_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
steeplechase_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -323,7 +323,7 @@ static void steeplechase_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A59F8 */
|
||||
static void steeplechase_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
steeplechase_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -331,7 +331,7 @@ static void steeplechase_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A5A08 */
|
||||
static void steeplechase_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
steeplechase_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -339,7 +339,7 @@ static void steeplechase_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A5A18 */
|
||||
static void steeplechase_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -528,7 +528,7 @@ static void steeplechase_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A5A28 */
|
||||
static void steeplechase_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -537,7 +537,7 @@ static void steeplechase_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A5A38 */
|
||||
static void steeplechase_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -700,7 +700,7 @@ static void steeplechase_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008A5A48 */
|
||||
static void steeplechase_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -863,7 +863,7 @@ static void steeplechase_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008A5A88 */
|
||||
static void steeplechase_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -989,7 +989,7 @@ static void steeplechase_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A5A98 */
|
||||
static void steeplechase_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -998,7 +998,7 @@ static void steeplechase_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A5AA8 */
|
||||
static void steeplechase_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1024,7 +1024,7 @@ static void steeplechase_track_brakes(
|
||||
|
||||
/** rct2: 0x008A5AD8 */
|
||||
static void steeplechase_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1176,7 +1176,7 @@ static void steeplechase_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A5AE8 */
|
||||
static void steeplechase_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1328,7 +1328,7 @@ static void steeplechase_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A5AF8 */
|
||||
static void steeplechase_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1337,7 +1337,7 @@ static void steeplechase_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A5B08 */
|
||||
static void steeplechase_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -1346,7 +1346,7 @@ static void steeplechase_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A5AC8 */
|
||||
static void steeplechase_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1492,7 +1492,7 @@ static void steeplechase_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008A5B38 */
|
||||
static void steeplechase_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1638,7 +1638,7 @@ static void steeplechase_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A5B18 */
|
||||
static void steeplechase_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1784,7 +1784,7 @@ static void steeplechase_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A5B28 */
|
||||
static void steeplechase_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1930,7 +1930,7 @@ static void steeplechase_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A5B68 */
|
||||
static void steeplechase_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2076,7 +2076,7 @@ static void steeplechase_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A5B48 */
|
||||
static void steeplechase_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2220,7 +2220,7 @@ static void steeplechase_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A5B58 */
|
||||
static void steeplechase_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2366,7 +2366,7 @@ static void steeplechase_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A5AB8 */
|
||||
static void steeplechase_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
|
||||
/** rct2: 0x008A8958 */
|
||||
static void suspended_swinging_rc_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -73,7 +73,7 @@ static void suspended_swinging_rc_track_flat(
|
||||
|
||||
/** rct2: 0x008A8AA8, 0x008A8AB8, 0x008A8AC8 */
|
||||
static void suspended_swinging_rc_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][3] = {
|
||||
@@ -101,7 +101,7 @@ static void suspended_swinging_rc_track_station(
|
||||
|
||||
/** rct2: 0x008A8968 */
|
||||
static void suspended_swinging_rc_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -195,7 +195,7 @@ static void suspended_swinging_rc_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8978 */
|
||||
static void suspended_swinging_rc_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -236,7 +236,7 @@ static void suspended_swinging_rc_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A8988 */
|
||||
static void suspended_swinging_rc_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -330,7 +330,7 @@ static void suspended_swinging_rc_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8998 */
|
||||
static void suspended_swinging_rc_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -377,7 +377,7 @@ static void suspended_swinging_rc_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A89A8 */
|
||||
static void suspended_swinging_rc_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -483,7 +483,7 @@ static void suspended_swinging_rc_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A89B8 */
|
||||
static void suspended_swinging_rc_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackElement.HasChain())
|
||||
@@ -577,7 +577,7 @@ static void suspended_swinging_rc_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A89C8 */
|
||||
static void suspended_swinging_rc_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
suspended_swinging_rc_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -585,7 +585,7 @@ static void suspended_swinging_rc_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A89D8 */
|
||||
static void suspended_swinging_rc_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
suspended_swinging_rc_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -593,7 +593,7 @@ static void suspended_swinging_rc_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A89E8 */
|
||||
static void suspended_swinging_rc_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
suspended_swinging_rc_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -601,7 +601,7 @@ static void suspended_swinging_rc_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A89F8 */
|
||||
static void suspended_swinging_rc_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
suspended_swinging_rc_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -609,7 +609,7 @@ static void suspended_swinging_rc_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A8A08 */
|
||||
static void suspended_swinging_rc_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
suspended_swinging_rc_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -617,7 +617,7 @@ static void suspended_swinging_rc_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8A18 */
|
||||
static void suspended_swinging_rc_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
suspended_swinging_rc_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -625,7 +625,7 @@ static void suspended_swinging_rc_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A8A28 */
|
||||
static void suspended_swinging_rc_track_left_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -806,7 +806,7 @@ static void suspended_swinging_rc_track_left_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A8A38 */
|
||||
static void suspended_swinging_rc_track_right_quarter_turn_5(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -815,7 +815,7 @@ static void suspended_swinging_rc_track_right_quarter_turn_5(
|
||||
|
||||
/** rct2: 0x008A8A48 */
|
||||
static void suspended_swinging_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -996,7 +996,7 @@ static void suspended_swinging_rc_track_left_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8A58 */
|
||||
static void suspended_swinging_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1177,7 +1177,7 @@ static void suspended_swinging_rc_track_right_quarter_turn_5_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8A68 */
|
||||
static void suspended_swinging_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1187,7 +1187,7 @@ static void suspended_swinging_rc_track_left_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8A78 */
|
||||
static void suspended_swinging_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -1197,7 +1197,7 @@ static void suspended_swinging_rc_track_right_quarter_turn_5_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8A88 */
|
||||
static void suspended_swinging_rc_track_s_bend_left(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1368,7 +1368,7 @@ static void suspended_swinging_rc_track_s_bend_left(
|
||||
|
||||
/** rct2: 0x008A8A98 */
|
||||
static void suspended_swinging_rc_track_s_bend_right(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1539,7 +1539,7 @@ static void suspended_swinging_rc_track_s_bend_right(
|
||||
|
||||
/** rct2: 0x008A8AD8 */
|
||||
static void suspended_swinging_rc_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1657,7 +1657,7 @@ static void suspended_swinging_rc_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A8AE8 */
|
||||
static void suspended_swinging_rc_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1666,7 +1666,7 @@ static void suspended_swinging_rc_track_right_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x008A8AF8 */
|
||||
static void suspended_swinging_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1759,7 +1759,7 @@ static void suspended_swinging_rc_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8B08 */
|
||||
static void suspended_swinging_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -1852,7 +1852,7 @@ static void suspended_swinging_rc_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8B18 */
|
||||
static void suspended_swinging_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1862,7 +1862,7 @@ static void suspended_swinging_rc_track_left_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8B28 */
|
||||
static void suspended_swinging_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -1872,7 +1872,7 @@ static void suspended_swinging_rc_track_right_quarter_turn_3_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8B38 */
|
||||
static void suspended_swinging_rc_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
@@ -1904,7 +1904,7 @@ static void suspended_swinging_rc_track_brakes(
|
||||
|
||||
/** rct2: 0x008A8B48 */
|
||||
static void suspended_swinging_rc_track_left_quarter_helix_large_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2085,7 +2085,7 @@ static void suspended_swinging_rc_track_left_quarter_helix_large_up(
|
||||
|
||||
/** rct2: 0x008A8B58 */
|
||||
static void suspended_swinging_rc_track_right_quarter_helix_large_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2266,7 +2266,7 @@ static void suspended_swinging_rc_track_right_quarter_helix_large_up(
|
||||
|
||||
/** rct2: 0x008A8B68 */
|
||||
static void suspended_swinging_rc_track_left_quarter_helix_large_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2447,7 +2447,7 @@ static void suspended_swinging_rc_track_left_quarter_helix_large_down(
|
||||
|
||||
/** rct2: 0x008A8B78 */
|
||||
static void suspended_swinging_rc_track_right_quarter_helix_large_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2628,7 +2628,7 @@ static void suspended_swinging_rc_track_right_quarter_helix_large_down(
|
||||
|
||||
/** rct2: 0x008A8B88 */
|
||||
static void suspended_swinging_rc_track_left_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2789,7 +2789,7 @@ static void suspended_swinging_rc_track_left_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A8B98 */
|
||||
static void suspended_swinging_rc_track_right_eighth_to_diag(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -2950,7 +2950,7 @@ static void suspended_swinging_rc_track_right_eighth_to_diag(
|
||||
|
||||
/** rct2: 0x008A8BA8 */
|
||||
static void suspended_swinging_rc_track_left_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -2959,7 +2959,7 @@ static void suspended_swinging_rc_track_left_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A8BB8 */
|
||||
static void suspended_swinging_rc_track_right_eighth_to_orthogonal(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftEighthTurnToOrthogonal[trackSequence];
|
||||
@@ -2968,7 +2968,7 @@ static void suspended_swinging_rc_track_right_eighth_to_orthogonal(
|
||||
|
||||
/** rct2: 0x008A8BC8 */
|
||||
static void suspended_swinging_rc_track_diag_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3107,7 +3107,7 @@ static void suspended_swinging_rc_track_diag_flat(
|
||||
|
||||
/** rct2: 0x008A8BF8 */
|
||||
static void suspended_swinging_rc_track_diag_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3246,7 +3246,7 @@ static void suspended_swinging_rc_track_diag_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8C58 */
|
||||
static void suspended_swinging_rc_track_diag_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3329,7 +3329,7 @@ static void suspended_swinging_rc_track_diag_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A8BD8 */
|
||||
static void suspended_swinging_rc_track_diag_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3468,7 +3468,7 @@ static void suspended_swinging_rc_track_diag_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8C38 */
|
||||
static void suspended_swinging_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3551,7 +3551,7 @@ static void suspended_swinging_rc_track_diag_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A8C48 */
|
||||
static void suspended_swinging_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3634,7 +3634,7 @@ static void suspended_swinging_rc_track_diag_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A8BE8 */
|
||||
static void suspended_swinging_rc_track_diag_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3773,7 +3773,7 @@ static void suspended_swinging_rc_track_diag_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A8C28 */
|
||||
static void suspended_swinging_rc_track_diag_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3912,7 +3912,7 @@ static void suspended_swinging_rc_track_diag_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8C88 */
|
||||
static void suspended_swinging_rc_track_diag_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -3974,7 +3974,7 @@ static void suspended_swinging_rc_track_diag_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A8C08 */
|
||||
static void suspended_swinging_rc_track_diag_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4110,7 +4110,7 @@ static void suspended_swinging_rc_track_diag_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8C68 */
|
||||
static void suspended_swinging_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4193,7 +4193,7 @@ static void suspended_swinging_rc_track_diag_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A8C78 */
|
||||
static void suspended_swinging_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4276,7 +4276,7 @@ static void suspended_swinging_rc_track_diag_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A8C18 */
|
||||
static void suspended_swinging_rc_track_diag_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (trackSequence)
|
||||
@@ -4415,7 +4415,7 @@ static void suspended_swinging_rc_track_diag_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008A8B38 */
|
||||
static void suspended_swinging_rc_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
switch (direction)
|
||||
|
||||
@@ -164,7 +164,7 @@ static constexpr const uint32_t virginia_reel_track_pieces_flat_quarter_turn_1_t
|
||||
* rct2: 0x006D5B48
|
||||
*/
|
||||
void vehicle_visual_virginia_reel(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry)
|
||||
{
|
||||
imageDirection = OpenRCT2::Entity::Yaw::YawTo32(imageDirection);
|
||||
@@ -223,7 +223,7 @@ void vehicle_visual_virginia_reel(
|
||||
|
||||
/** rct2: 0x00811264 */
|
||||
static void paint_virginia_reel_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
const uint32_t* sprites = virginia_reel_track_pieces_flat;
|
||||
@@ -252,7 +252,7 @@ static void paint_virginia_reel_track_flat(
|
||||
|
||||
/** rct2: 0x00811274 */
|
||||
static void paint_virginia_reel_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
const uint32_t* sprites = virginia_reel_track_pieces_25_deg_up;
|
||||
@@ -262,7 +262,7 @@ static void paint_virginia_reel_track_25_deg_up(
|
||||
}
|
||||
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(sprites[direction]);
|
||||
paint_struct* ps;
|
||||
PaintStruct* ps;
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
@@ -304,7 +304,7 @@ static void paint_virginia_reel_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x00811294 */
|
||||
static void paint_virginia_reel_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
const uint32_t* sprites = virginia_reel_track_pieces_flat_to_25_deg_up;
|
||||
@@ -314,7 +314,7 @@ static void paint_virginia_reel_track_flat_to_25_deg_up(
|
||||
}
|
||||
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(sprites[direction]);
|
||||
paint_struct* ps;
|
||||
PaintStruct* ps;
|
||||
switch (direction)
|
||||
{
|
||||
case 0:
|
||||
@@ -351,7 +351,7 @@ static void paint_virginia_reel_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x00811294 */
|
||||
static void paint_virginia_reel_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
const uint32_t* sprites = virginia_reel_track_pieces_25_deg_up_to_flat;
|
||||
@@ -361,7 +361,7 @@ static void paint_virginia_reel_track_25_deg_up_to_flat(
|
||||
}
|
||||
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(sprites[direction]);
|
||||
paint_struct* ps;
|
||||
PaintStruct* ps;
|
||||
|
||||
if (direction & 1)
|
||||
{
|
||||
@@ -403,7 +403,7 @@ static void paint_virginia_reel_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008112A4 */
|
||||
static void paint_virginia_reel_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
paint_virginia_reel_track_25_deg_up(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -411,7 +411,7 @@ static void paint_virginia_reel_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008112B4 */
|
||||
static void paint_virginia_reel_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
paint_virginia_reel_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -419,7 +419,7 @@ static void paint_virginia_reel_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008112C4 */
|
||||
static void paint_virginia_reel_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
paint_virginia_reel_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -427,7 +427,7 @@ static void paint_virginia_reel_track_25_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x008112D4, 0x008112E4, 0x008112F4 */
|
||||
static void paint_virginia_reel_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -469,7 +469,7 @@ static constexpr const uint8_t virginia_reel_left_quarter_turn_supports[] = {
|
||||
|
||||
/** rct2: 0x00811304 */
|
||||
static void paint_virginia_reel_track_left_quarter_turn_3_tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -503,7 +503,7 @@ static constexpr const uint8_t virginia_reel_right_quarter_turn_3_tiles_to_left_
|
||||
|
||||
/** rct2: 0x00811314 */
|
||||
static void paint_virginia_reel_track_right_quarter_turn_3_tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = virginia_reel_right_quarter_turn_3_tiles_to_left_turn_map[trackSequence];
|
||||
@@ -513,7 +513,7 @@ static void paint_virginia_reel_track_right_quarter_turn_3_tiles(
|
||||
|
||||
/** rct2: 0x00811324 */
|
||||
static void paint_virginia_reel_track_left_quarter_turn_1_tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -546,7 +546,7 @@ static void paint_virginia_reel_track_left_quarter_turn_1_tile(
|
||||
|
||||
/** rct2: 0x00811334 */
|
||||
static void paint_virginia_reel_track_right_quarter_turn_1_tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
paint_virginia_reel_track_left_quarter_turn_1_tile(session, ride, trackSequence, (direction + 3) % 4, height, trackElement);
|
||||
|
||||
@@ -165,7 +165,7 @@ static constexpr const uint32_t _wild_mouse_block_brakes_image_ids[NumOrthogonal
|
||||
|
||||
/** rct2: 0x0078B1E4 */
|
||||
static void wild_mouse_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -189,7 +189,7 @@ static void wild_mouse_track_flat(
|
||||
}
|
||||
|
||||
static void wild_mouse_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t baseImageIds[4] = {
|
||||
@@ -226,7 +226,7 @@ static void wild_mouse_track_station(
|
||||
|
||||
/** rct2: 0x0078B1F4 */
|
||||
static void wild_mouse_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -258,7 +258,7 @@ static void wild_mouse_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x0078B204 */
|
||||
static void wild_mouse_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -304,7 +304,7 @@ static void wild_mouse_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x0078B214 */
|
||||
static void wild_mouse_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -336,7 +336,7 @@ static void wild_mouse_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0078B224 */
|
||||
static void wild_mouse_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -383,7 +383,7 @@ static void wild_mouse_track_25_deg_up_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x0078B234 */
|
||||
static void wild_mouse_track_60_deg_up_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -430,7 +430,7 @@ static void wild_mouse_track_60_deg_up_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x0078B244 */
|
||||
static void wild_mouse_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -462,7 +462,7 @@ static void wild_mouse_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0078B254 */
|
||||
static void wild_mouse_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -470,7 +470,7 @@ static void wild_mouse_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x0078B264 */
|
||||
static void wild_mouse_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -478,7 +478,7 @@ static void wild_mouse_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x0078B274 */
|
||||
static void wild_mouse_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -486,7 +486,7 @@ static void wild_mouse_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0078B284 */
|
||||
static void wild_mouse_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_60_deg_up_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -494,7 +494,7 @@ static void wild_mouse_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x0078B294 */
|
||||
static void wild_mouse_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -502,17 +502,17 @@ static void wild_mouse_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x0078B2A4 */
|
||||
static void wild_mouse_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void wild_mouse_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb imageIds[4][3] = {
|
||||
static constexpr const SpriteBb imageIds[4][3] = {
|
||||
{
|
||||
{ SPR_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_0, { 0, 0, 0 }, { 0, 6, 0 }, { 32, 20, 3 } },
|
||||
{ SPR_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_1, { 0, 0, 0 }, { 16, 16, 0 }, { 16, 16, 3 } },
|
||||
@@ -565,10 +565,10 @@ static void wild_mouse_track_right_quarter_turn_3(
|
||||
}
|
||||
|
||||
static void wild_mouse_track_right_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb imageIds[4][2] = {
|
||||
static constexpr const SpriteBb imageIds[4][2] = {
|
||||
{
|
||||
{ SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_DOWN_SW_SE_PART_0, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 3 } },
|
||||
{ SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_DOWN_SW_SE_PART_1, { 6, 0, 0 }, { 0, 0, 0 }, { 20, 32, 3 } },
|
||||
@@ -591,7 +591,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_down(
|
||||
if (trackSequence == 0 || trackSequence == 3)
|
||||
{
|
||||
int32_t part = trackSequence == 0 ? 0 : 1;
|
||||
const sprite_bb* sbb = &imageIds[direction][part];
|
||||
const SpriteBb* sbb = &imageIds[direction][part];
|
||||
const auto& offset = sbb->offset;
|
||||
PaintAddImageAsParent(
|
||||
session, session.TrackColours[SCHEME_TRACK].WithIndex(sbb->sprite_id), { offset.x, offset.y, height + offset.z },
|
||||
@@ -624,7 +624,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_down(
|
||||
}
|
||||
|
||||
static void wild_mouse_track_left_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -633,10 +633,10 @@ static void wild_mouse_track_left_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x0078B314 */
|
||||
static void wild_mouse_track_right_quarter_turn_3_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb imageIds[4][2] = {
|
||||
static constexpr const SpriteBb imageIds[4][2] = {
|
||||
{
|
||||
{ SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_UP_SW_SE_PART_0, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 3 } },
|
||||
{ SPR_WILD_MOUSE_QUARTER_TURN_3_25_DEG_UP_SW_SE_PART_1, { 6, 0, 0 }, { 0, 0, 0 }, { 20, 32, 3 } },
|
||||
@@ -659,7 +659,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_up(
|
||||
if (trackSequence == 0 || trackSequence == 3)
|
||||
{
|
||||
int32_t part = trackSequence == 0 ? 0 : 1;
|
||||
const sprite_bb* sbb = &imageIds[direction][part];
|
||||
const SpriteBb* sbb = &imageIds[direction][part];
|
||||
PaintAddImageAsParent(
|
||||
session, session.TrackColours[SCHEME_TRACK].WithIndex(sbb->sprite_id),
|
||||
{ sbb->offset.x, sbb->offset.y, height + sbb->offset.z }, sbb->bb_size);
|
||||
@@ -700,7 +700,7 @@ static void wild_mouse_track_right_quarter_turn_3_25_deg_up(
|
||||
|
||||
/** rct2: 0x0078B324 */
|
||||
static void wild_mouse_track_left_quarter_turn_3_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -708,7 +708,7 @@ static void wild_mouse_track_left_quarter_turn_3_25_deg_down(
|
||||
}
|
||||
|
||||
static void wild_mouse_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -717,7 +717,7 @@ static void wild_mouse_track_left_quarter_turn_3(
|
||||
|
||||
/** rct2: 0x0078B394 */
|
||||
static void wild_mouse_track_left_quarter_turn_1(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -752,7 +752,7 @@ static void wild_mouse_track_left_quarter_turn_1(
|
||||
|
||||
/** rct2: 0x0078B3A4 */
|
||||
static void wild_mouse_track_right_quarter_turn_1(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_left_quarter_turn_1(session, ride, trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -760,7 +760,7 @@ static void wild_mouse_track_right_quarter_turn_1(
|
||||
|
||||
/** rct2: 0x0078B354 */
|
||||
static void wild_mouse_track_flat_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -807,7 +807,7 @@ static void wild_mouse_track_flat_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x0078B364 */
|
||||
static void wild_mouse_track_60_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -861,7 +861,7 @@ static void wild_mouse_track_60_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x0078B374 */
|
||||
static void wild_mouse_track_flat_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_60_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -869,7 +869,7 @@ static void wild_mouse_track_flat_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x0078B384 */
|
||||
static void wild_mouse_track_60_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wild_mouse_track_flat_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -877,7 +877,7 @@ static void wild_mouse_track_60_deg_down_to_flat(
|
||||
|
||||
/** rct2: 0x0078B344 */
|
||||
static void wild_mouse_track_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(_wild_mouse_brakes_image_ids[direction]);
|
||||
@@ -894,7 +894,7 @@ static void wild_mouse_track_brakes(
|
||||
|
||||
/** rct2: 0x0078B3C4 */
|
||||
static void wild_mouse_track_rotation_control_toggle(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -918,7 +918,7 @@ static void wild_mouse_track_rotation_control_toggle(
|
||||
|
||||
/** rct2: 0x0078B3B4 */
|
||||
static void wild_mouse_track_block_brakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isClosed = trackElement.BlockBrakeClosed();
|
||||
|
||||
File diff suppressed because it is too large.
Load diff
@@ -24,7 +24,7 @@ struct sprite_bb_2
|
||||
CoordsXYZ bb_size;
|
||||
};
|
||||
|
||||
template<bool isClassic> ImageId wooden_rc_get_track_colour(const paint_session& session)
|
||||
template<bool isClassic> ImageId wooden_rc_get_track_colour(const PaintSession& session)
|
||||
{
|
||||
if (isClassic)
|
||||
return session.TrackColours[SCHEME_TRACK];
|
||||
@@ -34,11 +34,11 @@ template<bool isClassic> ImageId wooden_rc_get_track_colour(const paint_session&
|
||||
: session.TrackColours[SCHEME_TRACK].WithPrimary(session.TrackColours[SCHEME_SUPPORTS].GetPrimary());
|
||||
}
|
||||
|
||||
ImageId wooden_rc_get_rails_colour(paint_session& session);
|
||||
ImageId wooden_rc_get_rails_colour(PaintSession& session);
|
||||
|
||||
template<bool isClassic>
|
||||
paint_struct* wooden_rc_track_paint(
|
||||
paint_session& session, uint32_t imageIdTrack, uint32_t imageIdRails, uint8_t direction, int8_t x_offset, int8_t y_offset,
|
||||
PaintStruct* wooden_rc_track_paint(
|
||||
PaintSession& session, uint32_t imageIdTrack, uint32_t imageIdRails, uint8_t direction, int8_t x_offset, int8_t y_offset,
|
||||
int16_t bound_box_length_x, int16_t bound_box_length_y, int8_t bound_box_length_z, int16_t z_offset,
|
||||
int16_t bound_box_offset_x, int16_t bound_box_offset_y, int16_t bound_box_offset_z)
|
||||
{
|
||||
@@ -55,7 +55,7 @@ paint_struct* wooden_rc_track_paint(
|
||||
{ bound_box_offset_x, bound_box_offset_y, bound_box_offset_z });
|
||||
}
|
||||
|
||||
template<bool isClassic> void wooden_rc_track_paint_bb(paint_session& session, const sprite_bb_2* bb, int16_t height)
|
||||
template<bool isClassic> void wooden_rc_track_paint_bb(PaintSession& session, const sprite_bb_2* bb, int16_t height)
|
||||
{
|
||||
if (bb->sprite_id_a == 0)
|
||||
return;
|
||||
|
||||
@@ -122,7 +122,7 @@ enum
|
||||
|
||||
/** rct2: 0x008A5464 */
|
||||
static void wooden_wild_mouse_track_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -146,7 +146,7 @@ static void wooden_wild_mouse_track_flat(
|
||||
}
|
||||
|
||||
static void wooden_wild_mouse_track_station(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4][2] = {
|
||||
@@ -171,7 +171,7 @@ static void wooden_wild_mouse_track_station(
|
||||
|
||||
/** rct2: 0x008A5474 */
|
||||
static void wooden_wild_mouse_track_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4] = {
|
||||
@@ -210,7 +210,7 @@ static void wooden_wild_mouse_track_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A5484 */
|
||||
static void wooden_wild_mouse_track_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4] = {
|
||||
@@ -257,7 +257,7 @@ static void wooden_wild_mouse_track_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A5494 */
|
||||
static void wooden_wild_mouse_track_flat_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4] = {
|
||||
@@ -296,7 +296,7 @@ static void wooden_wild_mouse_track_flat_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A54A4 */
|
||||
static void wooden_wild_mouse_track_25_deg_up_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4][2] = {
|
||||
@@ -346,7 +346,7 @@ static void wooden_wild_mouse_track_25_deg_up_to_60_deg_up(
|
||||
}
|
||||
|
||||
static void wooden_wild_mouse_track_60_deg_to_25_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4][2] = {
|
||||
@@ -397,7 +397,7 @@ static void wooden_wild_mouse_track_60_deg_to_25_deg_up(
|
||||
|
||||
/** rct2: 0x008A54C4 */
|
||||
static void wooden_wild_mouse_track_25_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4] = {
|
||||
@@ -436,7 +436,7 @@ static void wooden_wild_mouse_track_25_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A54D4 */
|
||||
static void wooden_wild_mouse_track_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -444,7 +444,7 @@ static void wooden_wild_mouse_track_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A54E4 */
|
||||
static void wooden_wild_mouse_track_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -452,7 +452,7 @@ static void wooden_wild_mouse_track_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A54F4 */
|
||||
static void wooden_wild_mouse_track_flat_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_25_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -460,7 +460,7 @@ static void wooden_wild_mouse_track_flat_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A5504 */
|
||||
static void wooden_wild_mouse_track_25_deg_down_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_60_deg_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -468,7 +468,7 @@ static void wooden_wild_mouse_track_25_deg_down_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A5514 */
|
||||
static void wooden_wild_mouse_track_60_deg_down_to_25_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_25_deg_up_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -476,17 +476,17 @@ static void wooden_wild_mouse_track_60_deg_down_to_25_deg_down(
|
||||
|
||||
/** rct2: 0x008A5524 */
|
||||
static void wooden_wild_mouse_track_25_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_flat_to_25_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
}
|
||||
|
||||
static void wooden_wild_mouse_track_right_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const sprite_bb imageIds[4][3] = {
|
||||
static constexpr const SpriteBb imageIds[4][3] = {
|
||||
{
|
||||
{ SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_0, { 0, 6, 0 }, { 0, 0, 0 }, { 32, 20, 1 } },
|
||||
{ SPR_WOODEN_WILD_MOUSE_QUARTER_TURN_3_SW_SE_PART_1, { 16, 16, 0 }, { 0, 0, 0 }, { 16, 16, 1 } },
|
||||
@@ -540,7 +540,7 @@ static void wooden_wild_mouse_track_right_quarter_turn_3(
|
||||
}
|
||||
|
||||
static void wooden_wild_mouse_track_left_quarter_turn_3(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -548,7 +548,7 @@ static void wooden_wild_mouse_track_left_quarter_turn_3(
|
||||
}
|
||||
|
||||
static void wooden_wild_mouse_track_left_quarter_turn_1(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[4] = {
|
||||
@@ -583,7 +583,7 @@ static void wooden_wild_mouse_track_left_quarter_turn_1(
|
||||
|
||||
/** rct2: 0x008A55D4 */
|
||||
static void wooden_wild_mouse_track_right_quarter_turn_1(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_left_quarter_turn_1(session, ride, trackSequence, (direction - 1) & 3, height, trackElement);
|
||||
@@ -591,7 +591,7 @@ static void wooden_wild_mouse_track_right_quarter_turn_1(
|
||||
|
||||
/** rct2: 0x008A55E4 */
|
||||
static void wooden_wild_mouse_track_flat_to_60_deg_up(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4][2] = {
|
||||
@@ -641,7 +641,7 @@ static void wooden_wild_mouse_track_flat_to_60_deg_up(
|
||||
|
||||
/** rct2: 0x008A55F4 */
|
||||
static void wooden_wild_mouse_track_60_deg_up_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
static constexpr const uint32_t imageIds[2][4][2] = {
|
||||
@@ -691,7 +691,7 @@ static void wooden_wild_mouse_track_60_deg_up_to_flat(
|
||||
|
||||
/** rct2: 0x008A5604 */
|
||||
static void wooden_wild_mouse_track_flat_to_60_deg_down(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_60_deg_up_to_flat(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
@@ -699,7 +699,7 @@ static void wooden_wild_mouse_track_flat_to_60_deg_down(
|
||||
|
||||
/** rct2: 0x008A5614 */
|
||||
static void wooden_wild_mouse_track_60_deg_down_to_flat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
wooden_wild_mouse_track_flat_to_60_deg_up(session, ride, trackSequence, (direction + 2) & 3, height, trackElement);
|
||||
|
||||
@@ -157,7 +157,7 @@ static constexpr const uint32_t CarRideTrackPiecesQuarterTurn3Tiles[4][3] = {
|
||||
|
||||
/** rct2: 0x006F72C8 */
|
||||
static void PaintCarRideTrackFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPiecesFlat[direction]);
|
||||
@@ -188,7 +188,7 @@ static void PaintCarRideTrackFlat(
|
||||
|
||||
/** rct2: 0x006F72D8 */
|
||||
static void PaintCarRideTrack25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPieces25DegUp[direction]);
|
||||
@@ -226,7 +226,7 @@ static void PaintCarRideTrack25DegUp(
|
||||
|
||||
/** rct2: 0x006F72E8 */
|
||||
static void PaintCarRideTrackFlatTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPiecesFlatTo25DegUp[direction]);
|
||||
@@ -264,7 +264,7 @@ static void PaintCarRideTrackFlatTo25DegUp(
|
||||
|
||||
/** rct2: 0x006F72F8 */
|
||||
static void PaintCarRideTrack25DegUpToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPieces25DegUpToFlat[direction]);
|
||||
@@ -302,7 +302,7 @@ static void PaintCarRideTrack25DegUpToFlat(
|
||||
|
||||
/** rct2: 0x006F7308 */
|
||||
static void PaintCarRideTrack25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrack25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -310,7 +310,7 @@ static void PaintCarRideTrack25DegDown(
|
||||
|
||||
/** rct2: 0x006F7318 */
|
||||
static void PaintCarRideTrackFlatTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrack25DegUpToFlat(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -318,7 +318,7 @@ static void PaintCarRideTrackFlatTo25DegDown(
|
||||
|
||||
/** rct2: 0x006F7328 */
|
||||
static void PaintCarRideTrack25DegDownToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrackFlatTo25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -326,7 +326,7 @@ static void PaintCarRideTrack25DegDownToFlat(
|
||||
|
||||
/** rct2: 0x006F7338, 0x006F7348, 0x006F7358 */
|
||||
static void PaintCarRideStation(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -380,7 +380,7 @@ static void PaintCarRideStation(
|
||||
|
||||
/** rct2: 0x006F7378 */
|
||||
static void PaintCarRideTrackRightQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -416,7 +416,7 @@ static void PaintCarRideTrackRightQuarterTurn3Tiles(
|
||||
|
||||
/** rct2: 0x006F7368 */
|
||||
static void PaintCarRideTrackLeftQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -425,7 +425,7 @@ static void PaintCarRideTrackLeftQuarterTurn3Tiles(
|
||||
|
||||
/** rct2: 0x006F7388 */
|
||||
static void PaintCarRideTrackLeftQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPiecesLeftQuarterTurn1Tile[direction]);
|
||||
@@ -456,7 +456,7 @@ static void PaintCarRideTrackLeftQuarterTurn1Tile(
|
||||
|
||||
/** rct2: 0x006F7398 */
|
||||
static void PaintCarRideTrackRightQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrackLeftQuarterTurn1Tile(session, ride, trackSequence, (direction + 3) % 4, height, trackElement);
|
||||
@@ -464,7 +464,7 @@ static void PaintCarRideTrackRightQuarterTurn1Tile(
|
||||
|
||||
/** rct2: 0x006F73A8 */
|
||||
static void PaintCarRideTrackSpinningTunnel(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPiecesFlat[direction]);
|
||||
@@ -497,7 +497,7 @@ static void PaintCarRideTrackSpinningTunnel(
|
||||
|
||||
/** rct2: 0x006F73B8 */
|
||||
static void PaintCarRideTrack60DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPieces60DegUp[direction]);
|
||||
@@ -546,7 +546,7 @@ static void PaintCarRideTrack60DegUp(
|
||||
|
||||
/** rct2: 0x006F73C8 */
|
||||
static void PaintCarRideTrack25DegUpTo60DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPieces25DegUpTo60DegUp[direction][0]);
|
||||
@@ -602,7 +602,7 @@ static void PaintCarRideTrack25DegUpTo60DegUp(
|
||||
|
||||
/** rct2: 0x006F73D8 */
|
||||
static void PaintCarRideTrack60DegUpTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPieces60DegUpTo25DegUp[direction][0]);
|
||||
@@ -658,7 +658,7 @@ static void PaintCarRideTrack60DegUpTo25DegUp(
|
||||
|
||||
/** rct2: 0x006F73E8 */
|
||||
static void PaintCarRideTrack60DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrack60DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -666,7 +666,7 @@ static void PaintCarRideTrack60DegDown(
|
||||
|
||||
/** rct2: 0x006F73F8 */
|
||||
static void PaintCarRideTrack25DegDownTo60DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrack60DegUpTo25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -674,7 +674,7 @@ static void PaintCarRideTrack25DegDownTo60DegDown(
|
||||
|
||||
/** rct2: 0x006F7408 */
|
||||
static void PaintCarRideTrack60DegDownTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintCarRideTrack25DegUpTo60DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -682,7 +682,7 @@ static void PaintCarRideTrack60DegDownTo25DegDown(
|
||||
|
||||
/** rct2: 0x006F7418 */
|
||||
static void PaintCarRideTrackLogBumps(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(CarRideTrackPiecesLogBumps[direction]);
|
||||
|
||||
@@ -17,7 +17,7 @@
|
||||
#include "../Track.h"
|
||||
#include "../TrackPaint.h"
|
||||
|
||||
static void PaintCircusTent(paint_session& session, const Ride& ride, uint8_t direction, int8_t al, int8_t cl, uint16_t height)
|
||||
static void PaintCircusTent(PaintSession& session, const Ride& ride, uint8_t direction, int8_t al, int8_t cl, uint16_t height)
|
||||
{
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
if (rideEntry == nullptr)
|
||||
@@ -46,7 +46,7 @@ static void PaintCircusTent(paint_session& session, const Ride& ride, uint8_t di
|
||||
}
|
||||
|
||||
static void PaintCircus(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
|
||||
@@ -46,7 +46,7 @@ static constexpr const BoundBoxXY CrookedHouseData[] = {
|
||||
* rct2: 0x0088ABA4
|
||||
*/
|
||||
static void PaintCrookedHouseStructure(
|
||||
paint_session& session, uint8_t direction, int32_t x_offset, int32_t y_offset, uint32_t segment, int32_t height)
|
||||
PaintSession& session, uint8_t direction, int32_t x_offset, int32_t y_offset, uint32_t segment, int32_t height)
|
||||
{
|
||||
const auto* tileElement = session.CurrentlyDrawnTileElement;
|
||||
if (tileElement == nullptr)
|
||||
@@ -81,7 +81,7 @@ static void PaintCrookedHouseStructure(
|
||||
}
|
||||
|
||||
static void PaintCrookedHouse(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
|
||||
@@ -34,7 +34,7 @@ static constexpr const uint32_t DodgemsFenceSprites[] = {
|
||||
SprDodgemsFenceTopLeft,
|
||||
};
|
||||
|
||||
static void PaintDodgemsRoof(paint_session& session, int32_t height, int32_t offset)
|
||||
static void PaintDodgemsRoof(PaintSession& session, int32_t height, int32_t offset)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex((SprDodgemsRoofFrame + offset));
|
||||
PaintAddImageAsParent(session, imageId, { 0, 0, height }, { 32, 32, 2 });
|
||||
@@ -44,7 +44,7 @@ static void PaintDodgemsRoof(paint_session& session, int32_t height, int32_t off
|
||||
}
|
||||
|
||||
static void PaintDodgems(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_4x4[direction][trackSequence];
|
||||
|
||||
@@ -42,7 +42,7 @@ static constexpr BoundBoxXY FerrisWheelData[] = {
|
||||
};
|
||||
|
||||
static void PaintFerrisWheelRiders(
|
||||
paint_session& session, const rct_ride_entry& rideEntry, const Vehicle& vehicle, uint8_t direction, const CoordsXYZ offset,
|
||||
PaintSession& session, const rct_ride_entry& rideEntry, const Vehicle& vehicle, uint8_t direction, const CoordsXYZ offset,
|
||||
const BoundBoxXYZ& bb)
|
||||
{
|
||||
for (int32_t i = 0; i < 32; i += 2)
|
||||
@@ -59,7 +59,7 @@ static void PaintFerrisWheelRiders(
|
||||
}
|
||||
|
||||
static void PaintFerrisWheelStructure(
|
||||
paint_session& session, const Ride& ride, uint8_t direction, int8_t axisOffset, uint16_t height)
|
||||
PaintSession& session, const Ride& ride, uint8_t direction, int8_t axisOffset, uint16_t height)
|
||||
{
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
if (rideEntry == nullptr)
|
||||
@@ -102,7 +102,7 @@ static void PaintFerrisWheelStructure(
|
||||
}
|
||||
|
||||
static void PaintFerrisWheel(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_1x4[direction][trackSequence];
|
||||
|
||||
@@ -35,7 +35,7 @@ static constexpr const uint32_t FlyingSaucersFenceSprites[] = {
|
||||
* rct2: 0x008873D8
|
||||
*/
|
||||
static void paint_flying_saucers(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint8_t relativeTrackSequence = track_map_4x4[direction][trackSequence];
|
||||
|
||||
@@ -177,7 +177,7 @@ static uint8_t GetTunnelDoorsImageStraightFlat(const TrackElement& trackElement,
|
||||
|
||||
/** rct2: 0x00770BEC */
|
||||
static void PaintGhostTrainTrackFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPiecesFlat[direction]);
|
||||
@@ -199,7 +199,7 @@ static void PaintGhostTrainTrackFlat(
|
||||
|
||||
/** rct2: 0x00770BFC */
|
||||
static void PaintGhostTrainTrack25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPieces25DegUp[direction][0]);
|
||||
@@ -236,7 +236,7 @@ static void PaintGhostTrainTrack25DegUp(
|
||||
|
||||
/** rct2: 0x00770C0C */
|
||||
static void PaintGhostTrainTrackFlatTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isBackwards = trackElement.GetTrackType() == TrackElemType::Down25ToFlat;
|
||||
@@ -283,7 +283,7 @@ static void PaintGhostTrainTrackFlatTo25DegUp(
|
||||
}
|
||||
|
||||
static void PaintGhostTrainTrack25DegUpToFlatShared(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPieces25DegUpToFlat[direction][0]);
|
||||
@@ -304,7 +304,7 @@ static void PaintGhostTrainTrack25DegUpToFlatShared(
|
||||
|
||||
/** rct2: 0x00770C1C */
|
||||
static void PaintGhostTrainTrack25DegUpToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintGhostTrainTrack25DegUpToFlatShared(session, ride, trackSequence, direction, height, trackElement);
|
||||
@@ -328,7 +328,7 @@ static void PaintGhostTrainTrack25DegUpToFlat(
|
||||
|
||||
/** rct2: 0x00770C2C */
|
||||
static void PaintGhostTrainTrack25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintGhostTrainTrack25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -336,7 +336,7 @@ static void PaintGhostTrainTrack25DegDown(
|
||||
|
||||
/** rct2: 0x00770C3C */
|
||||
static void PaintGhostTrainTrackFlatTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintGhostTrainTrack25DegUpToFlatShared(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -360,7 +360,7 @@ static void PaintGhostTrainTrackFlatTo25DegDown(
|
||||
|
||||
/** rct2: 0x00770C4C */
|
||||
static void PaintGhostTrainTrack25DegDownToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintGhostTrainTrackFlatTo25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -368,7 +368,7 @@ static void PaintGhostTrainTrack25DegDownToFlat(
|
||||
|
||||
/** rct2: 0x00770C5C, 0x00770C6C, 0x00770C7C */
|
||||
static void PaintGhostTrainStation(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -407,7 +407,7 @@ static void PaintGhostTrainStation(
|
||||
|
||||
/** rct2: 0x00770C9C */
|
||||
static void PaintGhostTrainTrackRightQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -448,7 +448,7 @@ static void PaintGhostTrainTrackRightQuarterTurn3Tiles(
|
||||
|
||||
/** rct2: 0x00770CAC */
|
||||
static void PaintGhostTrainTrackLeftQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn3TilesToRightQuarterTurn3Tiles[trackSequence];
|
||||
@@ -457,7 +457,7 @@ static void PaintGhostTrainTrackLeftQuarterTurn3Tiles(
|
||||
|
||||
/** rct2: 0x00770CAC */
|
||||
static void PaintGhostTrainTrackLeftQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool isBackwards = trackElement.GetTrackType() == TrackElemType::RightQuarterTurn1Tile;
|
||||
@@ -484,7 +484,7 @@ static void PaintGhostTrainTrackLeftQuarterTurn1Tile(
|
||||
|
||||
/** rct2: 0x00770CBC */
|
||||
static void PaintGhostTrainTrackRightQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintGhostTrainTrackLeftQuarterTurn1Tile(session, ride, trackSequence, (direction + 3) % 4, height, trackElement);
|
||||
@@ -492,7 +492,7 @@ static void PaintGhostTrainTrackRightQuarterTurn1Tile(
|
||||
|
||||
/** rct2: 0x00770CCC */
|
||||
static void PaintGhostTrainTrackSpinningTunnel(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(ghost_train_track_pieces_spinning_tunnel_track[direction]);
|
||||
@@ -512,7 +512,7 @@ static void PaintGhostTrainTrackSpinningTunnel(
|
||||
|
||||
/** rct2: 0x00770CDC */
|
||||
static void PaintGhostTrainTrackBrakes(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(GhostTrainTrackPiecesBrakes[direction]);
|
||||
|
||||
@@ -24,7 +24,7 @@ static constexpr BoundBoxXY HauntedHouseData[] = {
|
||||
};
|
||||
|
||||
static void PaintHauntedHouseStructure(
|
||||
paint_session& session, const Ride& ride, uint8_t direction, int8_t xOffset, int8_t yOffset, uint8_t part, uint16_t height)
|
||||
PaintSession& session, const Ride& ride, uint8_t direction, int8_t xOffset, int8_t yOffset, uint8_t part, uint16_t height)
|
||||
{
|
||||
uint8_t frameNum = 0;
|
||||
|
||||
@@ -61,7 +61,7 @@ static void PaintHauntedHouseStructure(
|
||||
}
|
||||
|
||||
static void PaintHauntedHouse(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
|
||||
@@ -53,7 +53,7 @@ enum
|
||||
* rct: 0x004ACF4A
|
||||
*/
|
||||
static void MazePaintSetup(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
uint16_t mazeEntry = trackElement.GetMazeEntry();
|
||||
|
||||
@@ -26,7 +26,7 @@ static constexpr const uint16_t MerryGoRoundBreakdownVibration[] = {
|
||||
};
|
||||
|
||||
static void PaintRiders(
|
||||
paint_session& session, const Ride& ride, const rct_ride_entry& rideEntry, const Vehicle& vehicle, int32_t rotationOffset,
|
||||
PaintSession& session, const Ride& ride, const rct_ride_entry& rideEntry, const Vehicle& vehicle, int32_t rotationOffset,
|
||||
const CoordsXYZ& offset, const BoundBoxXYZ& bb)
|
||||
{
|
||||
if (session.DPI.zoom_level > ZoomLevel{ 0 })
|
||||
@@ -51,7 +51,7 @@ static void PaintRiders(
|
||||
}
|
||||
|
||||
static void PaintCarousel(
|
||||
paint_session& session, const Ride& ride, uint8_t direction, int8_t xOffset, int8_t yOffset, uint16_t height)
|
||||
PaintSession& session, const Ride& ride, uint8_t direction, int8_t xOffset, int8_t yOffset, uint16_t height)
|
||||
{
|
||||
height += 7;
|
||||
|
||||
@@ -99,7 +99,7 @@ static void PaintCarousel(
|
||||
}
|
||||
|
||||
static void PaintMerryGoRound(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
|
||||
@@ -443,8 +443,8 @@ const size_t MiniGolfPeepAnimationLengths[] = {
|
||||
};
|
||||
// clang-format on
|
||||
|
||||
static paint_struct* MiniGolfPaintUtil7C(
|
||||
paint_session& session, uint8_t direction, ImageId imageId, int8_t x_offset, int8_t yOffset, int16_t boundBoxLengthX,
|
||||
static PaintStruct* MiniGolfPaintUtil7C(
|
||||
PaintSession& session, uint8_t direction, ImageId imageId, int8_t x_offset, int8_t yOffset, int16_t boundBoxLengthX,
|
||||
int16_t boundBoxLengthY, int8_t boundBoxLengthZ, int16_t zOffset, int16_t boundBoxOffsetX, int16_t boundBoxOffsetY,
|
||||
int16_t boundBoxOffsetZ, uint32_t rotation)
|
||||
{
|
||||
@@ -460,7 +460,7 @@ static paint_struct* MiniGolfPaintUtil7C(
|
||||
{ boundBoxOffsetX, boundBoxOffsetY, boundBoxOffsetZ });
|
||||
}
|
||||
|
||||
static bool MiniGolfPaintUtilShouldDrawFence(paint_session& session, const TrackElement& trackElement)
|
||||
static bool MiniGolfPaintUtilShouldDrawFence(PaintSession& session, const TrackElement& trackElement)
|
||||
{
|
||||
if (!(session.Flags & PaintSessionFlags::PassedSurface))
|
||||
{
|
||||
@@ -484,7 +484,7 @@ static bool MiniGolfPaintUtilShouldDrawFence(paint_session& session, const Track
|
||||
|
||||
/** rct2: 0x0087F10C */
|
||||
static void PaintMiniGolfTrackFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -531,7 +531,7 @@ static void PaintMiniGolfTrackFlat(
|
||||
|
||||
/** rct2: 0x0087F11C */
|
||||
static void PaintMiniGolfTrack25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -570,7 +570,7 @@ static void PaintMiniGolfTrack25DegUp(
|
||||
|
||||
/** rct2: 0x0087F12C */
|
||||
static void PaintMiniGolfTrackFlatTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -609,7 +609,7 @@ static void PaintMiniGolfTrackFlatTo25DegUp(
|
||||
|
||||
/** rct2: 0x0087F13C */
|
||||
static void PaintMiniGolfTrack25DegUpToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -648,7 +648,7 @@ static void PaintMiniGolfTrack25DegUpToFlat(
|
||||
|
||||
/** rct2: 0x0087F14C */
|
||||
static void PaintMiniGolfTrack25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniGolfTrack25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -656,7 +656,7 @@ static void PaintMiniGolfTrack25DegDown(
|
||||
|
||||
/** rct2: 0x0087F15C */
|
||||
static void PaintMiniGolfTrackFlatTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniGolfTrack25DegUpToFlat(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -664,7 +664,7 @@ static void PaintMiniGolfTrackFlatTo25DegDown(
|
||||
|
||||
/** rct2: 0x0087F16C */
|
||||
static void PaintMiniGolfTrack25DegDownToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniGolfTrackFlatTo25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -672,7 +672,7 @@ static void PaintMiniGolfTrack25DegDownToFlat(
|
||||
|
||||
/** rct2: 0x0087F17C, 0x0087F18C, 0x0087F19C */
|
||||
static void PaintMiniGolfStation(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
const auto* stationObj = ride.GetStationObject();
|
||||
@@ -734,7 +734,7 @@ static void PaintMiniGolfStation(
|
||||
|
||||
/** rct2: 0x0087F1AC */
|
||||
static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -814,14 +814,14 @@ static void PaintMiniGolfTrackLeftQuarterTurn1Tile(
|
||||
|
||||
/** rct2: 0x0087F1BC */
|
||||
static void PaintMiniGolfTrackRightQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniGolfTrackLeftQuarterTurn1Tile(session, ride, trackSequence, (direction + 3) % 4, height, trackElement);
|
||||
}
|
||||
|
||||
static void PaintMiniGolfHoleAb(
|
||||
paint_session& session, uint8_t trackSequence, uint8_t direction, int32_t height, const uint32_t sprites[4][2][2])
|
||||
PaintSession& session, uint8_t trackSequence, uint8_t direction, int32_t height, const uint32_t sprites[4][2][2])
|
||||
{
|
||||
ImageId imageId;
|
||||
CoordsXY boundBox, boundBoxOffset;
|
||||
@@ -876,7 +876,7 @@ static void PaintMiniGolfHoleAb(
|
||||
|
||||
/** rct2: 0x0087F1CC */
|
||||
static void PaintMiniGolfHoleA(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniGolfHoleAb(session, trackSequence, direction, height, MiniGolfTrackSpritesHoleA);
|
||||
@@ -884,7 +884,7 @@ static void PaintMiniGolfHoleA(
|
||||
|
||||
/** rct2: 0x0087F1DC */
|
||||
static void PaintMiniGolfHoleB(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniGolfHoleAb(session, trackSequence, direction, height, MiniGolfTrackSpritesHoleB);
|
||||
@@ -892,7 +892,7 @@ static void PaintMiniGolfHoleB(
|
||||
|
||||
/** rct2: 0x0087F1EC */
|
||||
static void PaintMiniGolfHoleC(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -963,7 +963,7 @@ static void PaintMiniGolfHoleC(
|
||||
|
||||
/** rct2: 0x0087F1FC */
|
||||
static void PaintMiniGolfHoleD(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -1057,7 +1057,7 @@ static void PaintMiniGolfHoleD(
|
||||
|
||||
/** rct2: 0x0087F1FC */
|
||||
static void PaintMiniGolfHoleE(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -1202,7 +1202,7 @@ TRACK_PAINT_FUNCTION GetTrackPaintFunctionMiniGolf(int32_t trackType)
|
||||
* rct2: 0x006D42F0
|
||||
*/
|
||||
void vehicle_visual_mini_golf_player(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
|
||||
{
|
||||
if (vehicle->num_peeps == 0)
|
||||
{
|
||||
@@ -1239,7 +1239,7 @@ void vehicle_visual_mini_golf_player(
|
||||
* rct2: 0x006D43C6
|
||||
*/
|
||||
void VehicleVisualMiniGolfBall(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle)
|
||||
{
|
||||
if (vehicle->mini_golf_current_animation != MiniGolfAnimation::PlaceBallDown)
|
||||
{
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
|
||||
/** rct2: 0x */
|
||||
static void PaintMiniHelicoptersTrackStation(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -56,7 +56,7 @@ static void PaintMiniHelicoptersTrackStation(
|
||||
|
||||
/** rct2: 0x0081F348 */
|
||||
static void PaintMiniHelicoptersTrackFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -88,7 +88,7 @@ static void PaintMiniHelicoptersTrackFlat(
|
||||
|
||||
/** rct2: 0x0081F368 */
|
||||
static void PaintMiniHelicoptersTrackFlatTo25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -133,7 +133,7 @@ static void PaintMiniHelicoptersTrackFlatTo25DegUp(
|
||||
|
||||
/** rct2: 0x0081F358 */
|
||||
static void PaintMiniHelicoptersTrack25DegUp(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -174,7 +174,7 @@ static void PaintMiniHelicoptersTrack25DegUp(
|
||||
|
||||
/** rct2: 0x0081F378 */
|
||||
static void PaintMiniHelicoptersTrack25DegUpToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -219,7 +219,7 @@ static void PaintMiniHelicoptersTrack25DegUpToFlat(
|
||||
|
||||
/** rct2: 0x */
|
||||
static void PaintMiniHelicoptersTrackFlatTo25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniHelicoptersTrack25DegUpToFlat(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -227,7 +227,7 @@ static void PaintMiniHelicoptersTrackFlatTo25DegDown(
|
||||
|
||||
/** rct2: 0x0081F388 */
|
||||
static void PaintMiniHelicoptersTrack25DegDown(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniHelicoptersTrack25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -235,7 +235,7 @@ static void PaintMiniHelicoptersTrack25DegDown(
|
||||
|
||||
/** rct2: 0x0081F3A8 */
|
||||
static void PaintMiniHelicoptersTrack25DegDownToFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniHelicoptersTrackFlatTo25DegUp(session, ride, trackSequence, (direction + 2) % 4, height, trackElement);
|
||||
@@ -243,7 +243,7 @@ static void PaintMiniHelicoptersTrack25DegDownToFlat(
|
||||
|
||||
/** rct2: 0x0081F3E8 */
|
||||
static void PaintMiniHelicoptersTrackLeftQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -281,7 +281,7 @@ static constexpr const uint8_t MiniHelicoptersRightQuarterTurn3TilesToLeftTurnMa
|
||||
|
||||
/** rct2: 0x0081F3F8 */
|
||||
static void PaintMiniHelicoptersTrackRightQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = MiniHelicoptersRightQuarterTurn3TilesToLeftTurnMap[trackSequence];
|
||||
@@ -290,7 +290,7 @@ static void PaintMiniHelicoptersTrackRightQuarterTurn3Tiles(
|
||||
|
||||
/** rct2: 0x0081F408 */
|
||||
static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -305,7 +305,7 @@ static void PaintMiniHelicoptersTrackLeftQuarterTurn1Tile(
|
||||
|
||||
/** rct2: 0x0081F418 */
|
||||
static void PaintMiniHelicoptersTrackRightQuarterTurn1Tile(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
PaintMiniHelicoptersTrackLeftQuarterTurn1Tile(session, ride, trackSequence, (direction + 3) % 4, height, trackElement);
|
||||
|
||||
@@ -159,8 +159,8 @@ static constexpr const uint32_t MonorailCyclesTrackPiecesFlatQuarterTurn3Tiles[4
|
||||
},
|
||||
};
|
||||
|
||||
static paint_struct* PaintMonorailCyclesUtil7C(
|
||||
paint_session& session, bool flip, ImageId imageId, int8_t xOffset, int8_t yOffset, int16_t boundBoxLengthX,
|
||||
static PaintStruct* PaintMonorailCyclesUtil7C(
|
||||
PaintSession& session, bool flip, ImageId imageId, int8_t xOffset, int8_t yOffset, int16_t boundBoxLengthX,
|
||||
int16_t boundBoxLengthY, int8_t boundBoxLengthZ, int16_t zOffset, int16_t boundBoxOffsetX, int16_t boundBoxOffsetY,
|
||||
int16_t boundBoxOffsetZ, uint32_t rotation)
|
||||
{
|
||||
@@ -178,7 +178,7 @@ static paint_struct* PaintMonorailCyclesUtil7C(
|
||||
|
||||
/** rct2: 0x0088AD48 */
|
||||
static void PaintMonorailCyclesTrackFlat(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto imageId = session.TrackColours[SCHEME_TRACK].WithIndex(MonorailCyclesTrackPiecesFlat[(direction & 1)]);
|
||||
@@ -205,7 +205,7 @@ static void PaintMonorailCyclesTrackFlat(
|
||||
|
||||
/** rct2: 0x0088ADD8 */
|
||||
static void PaintMonorailCyclesStation(
|
||||
paint_session& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, [[maybe_unused]] uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
ImageId imageId;
|
||||
@@ -243,7 +243,7 @@ static void PaintMonorailCyclesStation(
|
||||
|
||||
/** rct2: 0x0088AD88 */
|
||||
static void PaintMonorailCyclesTrackLeftQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -281,7 +281,7 @@ static constexpr const uint8_t monorail_cycles_right_quarter_turn_3_tiles_to_lef
|
||||
|
||||
/** rct2: 0x0088AD98 */
|
||||
static void PaintMonorailCyclesTrackRightQuarterTurn3Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = monorail_cycles_right_quarter_turn_3_tiles_to_left_turn_map[trackSequence];
|
||||
@@ -304,7 +304,7 @@ static constexpr const int8_t MonorailCyclesTrackRightQuarterTurn5TilesSupportSp
|
||||
|
||||
/** rct2: 0x0088ADB8 */
|
||||
static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
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(
|
||||
@@ -417,7 +417,7 @@ static void PaintMonorailCyclesTrackRightQuarterTurn5Tiles(
|
||||
|
||||
/** rct2: 0x0088ADA8 */
|
||||
static void PaintMonorailCyclesTrackLeftQuarterTurn5Tiles(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = mapLeftQuarterTurn5TilesToRightQuarterTurn5Tiles[trackSequence];
|
||||
@@ -426,7 +426,7 @@ static void PaintMonorailCyclesTrackLeftQuarterTurn5Tiles(
|
||||
|
||||
/** rct2: 0x0088ADC8 */
|
||||
static void PaintMonorailCyclesTrackSBendLeft(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (direction == 2 || direction == 3)
|
||||
@@ -530,7 +530,7 @@ static void PaintMonorailCyclesTrackSBendLeft(
|
||||
|
||||
/** rct2: 0x*/
|
||||
static void PaintMonorailCyclesTrackSBendRight(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (direction == 2 || direction == 3)
|
||||
|
||||
@@ -61,7 +61,7 @@ static uint32_t GetObservationTowerVehicleBaseImageId(const Vehicle* vehicle, co
|
||||
* rct2: 0x006D6258
|
||||
*/
|
||||
void VehicleVisualObservationTower(
|
||||
paint_session& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
PaintSession& session, int32_t x, int32_t imageDirection, int32_t y, int32_t z, const Vehicle* vehicle,
|
||||
const CarEntry* carEntry)
|
||||
{
|
||||
auto baseImageId = GetObservationTowerVehicleBaseImageId(vehicle, carEntry, imageDirection);
|
||||
@@ -80,7 +80,7 @@ void VehicleVisualObservationTower(
|
||||
|
||||
/** rct2: 0x0070DD6C */
|
||||
static void PaintObservationTowerBase(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
@@ -153,7 +153,7 @@ static void PaintObservationTowerBase(
|
||||
|
||||
/** rct2: 0x0070DD7C */
|
||||
static void PaintObservationTowerSection(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
if (trackSequence == 1)
|
||||
|
||||
@@ -34,7 +34,7 @@ static constexpr const uint32_t SpaceRingsFenceSprites[] = {
|
||||
|
||||
/** rct2: 0x00768A3B */
|
||||
static void PaintSpaceRingsStructure(
|
||||
paint_session& session, const Ride& ride, uint8_t direction, uint32_t segment, int32_t height)
|
||||
PaintSession& session, const Ride& ride, uint8_t direction, uint32_t segment, int32_t height)
|
||||
{
|
||||
uint32_t vehicleIndex = (segment - direction) & 0x3;
|
||||
|
||||
@@ -85,7 +85,7 @@ static void PaintSpaceRingsStructure(
|
||||
|
||||
/** rct2: 0x00767C40 */
|
||||
static void PaintSpaceRings(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
trackSequence = track_map_3x3[direction][trackSequence];
|
||||
|
||||
@@ -49,7 +49,7 @@ enum
|
||||
};
|
||||
|
||||
static void SpiralSlidePaintTileRight(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
@@ -71,7 +71,7 @@ static void SpiralSlidePaintTileRight(
|
||||
}
|
||||
|
||||
static void SpiralSlidePaintTileLeft(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
@@ -93,7 +93,7 @@ static void SpiralSlidePaintTileLeft(
|
||||
}
|
||||
|
||||
static void SpiralSlidePaintTileFront(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
@@ -194,7 +194,7 @@ static void SpiralSlidePaintTileFront(
|
||||
* rct: 0x007485C8
|
||||
*/
|
||||
static void PaintSpiralSlide(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
auto rideEntry = ride.GetRideEntry();
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
#include "../TrackPaint.h"
|
||||
|
||||
static void PaintFacility(
|
||||
paint_session& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
PaintSession& session, const Ride& ride, uint8_t trackSequence, uint8_t direction, int32_t height,
|
||||
const TrackElement& trackElement)
|
||||
{
|
||||
bool hasSupports = WoodenASupportsPaintSetup(session, direction & 1, 0, height, session.TrackColours[SCHEME_3]);
|
||||
|
||||
Loaded 100 of 124 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user