1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-25 15:54:31 +01:00

Fix #24544: RCT1 Maze designs with wooden walls not imported correctly

This commit is contained in:
Michael Steenbeek
2025-06-02 23:26:48 +02:00
committed by GitHub
parent ac21ff24c5
commit a3494d5358
2 changed files with 7 additions and 0 deletions

View File

@@ -40,6 +40,7 @@
- Fix: [#24448] Shortcuts involving the Caps Lock key are wrongly localised to NumPad Dot.
- Fix: [#24464] Window and viewport visibility is not calculated correctly causing minor performance issues.
- Fix: [#24488] Objects are not always redrawn immediately when they are reloaded from the Object Selection window.
- Fix: [#24544] RCT1 Maze designs with wooden walls are not imported correctly.
0.4.22 (2025-05-04)
------------------------------------------------------------------------

View File

@@ -100,6 +100,12 @@ namespace OpenRCT2::RCT1
td->appearance.trackColours[i].additional = RCT1::GetColour(td4aa.TrackRailColour[i]);
td->appearance.trackColours[i].supports = RCT1::GetColour(td4aa.TrackSupportColour[i]);
}
// The maze style is saved in the support colour, but taking it through the conversion function
// will mess up style 3 (wooden fences).
if (td4aa.Type == RideType::HedgeMaze)
{
td->appearance.trackColours[0].supports = td4aa.TrackSupportColour[0];
}
return ImportTD4Base(std::move(td), td4aa);
}