1
0
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:
frutiemax
2021-08-22 10:09:23 -04:00
parent 72e6f9a694
commit 716dd3dcb6
3 changed files with 3 additions and 3 deletions

View File

@@ -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,

View File

@@ -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];

View File

@@ -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)