mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-26 00:04:43 +01:00
Part of #13874: Replace mirror maps
This commit is contained in:
@@ -4045,7 +4045,7 @@ const money32 TrackPricing[TrackElemType::Count] = {
|
||||
};
|
||||
|
||||
/** rct2: 0x0099EA1C */
|
||||
const track_type_t TrackElementMirrorMap[TrackElemType::Count] = {
|
||||
const static track_type_t TrackElementMirrorMap[TrackElemType::Count] = {
|
||||
TrackElemType::Flat,
|
||||
TrackElemType::EndStation,
|
||||
TrackElemType::BeginStation,
|
||||
|
||||
@@ -62,7 +62,6 @@ constexpr const dodgems_track_size DodgemsTrackSize(track_type_t type)
|
||||
return { 4, 4, 59, 123 };
|
||||
return { 0, 0, 0, 0 };
|
||||
}
|
||||
extern const track_type_t TrackElementMirrorMap[TrackElemType::Count];
|
||||
|
||||
extern const uint8_t TrackSequenceElementAllowedWallEdges[TrackElemType::Count][16];
|
||||
|
||||
|
||||
@@ -770,7 +770,8 @@ static void track_design_mirror_ride(TrackDesign* td6)
|
||||
{
|
||||
for (auto& track : td6->track_elements)
|
||||
{
|
||||
track.type = TrackElementMirrorMap[track.type];
|
||||
const auto& teDescriptor = GetTrackElementDescriptor(track.type);
|
||||
track.type = teDescriptor.MirrorMap;
|
||||
}
|
||||
|
||||
for (auto& entrance : td6->entrance_elements)
|
||||
|
||||
Reference in New Issue
Block a user