1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-23 15:52:55 +01:00

Fix: Track designs of some ride types incorrectly exported to TD6

This commit is contained in:
Michael Steenbeek
2021-11-20 13:52:48 +01:00
committed by GitHub
parent a60f7de103
commit 7cdb8f162a
2 changed files with 2 additions and 1 deletions

View File

@@ -9,6 +9,7 @@
- Fix: [#15878] Crash when opening a ride window for a corrupted vehicle.
- Fix: [#15908] Crash when track elements have no ride assigned.
- Fix: [#15919] Research status incorrectly considered for scenery when in editor modes.
- Fix: [#15938] Track designs of some ride types are incorrectly exported to TD6.
0.3.5 (2021-11-06)
------------------------------------------------------------------------

View File

@@ -48,7 +48,7 @@ bool T6Exporter::SaveTrack(const utf8* path)
bool T6Exporter::SaveTrack(OpenRCT2::IStream* stream)
{
OpenRCT2::MemoryStream tempStream;
tempStream.WriteValue<uint8_t>(_trackDesign->type);
tempStream.WriteValue<uint8_t>(OpenRCT2RideTypeToRCT2RideType(_trackDesign->type));
tempStream.WriteValue<uint8_t>(_trackDesign->vehicle_type);
tempStream.WriteValue<uint32_t>(_trackDesign->flags);
tempStream.WriteValue<uint8_t>(static_cast<uint8_t>(_trackDesign->ride_mode));