1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Merge pull request #9981 from Gymnasiast/fix/9978

Fix #9978: Mazes are imported incorrectly
This commit is contained in:
Duncan
2019-09-14 07:36:08 +01:00
committed by GitHub

View File

@@ -1058,17 +1058,14 @@ public:
dst2->SetHasGreenLight(src2->HasGreenLight());
dst2->SetPhotoTimeout(src2->GetPhotoTimeout());
// Skipping IsHighlighted()
auto ride = get_ride(dst2->GetRideIndex());
if (ride)
auto rideType = _s6.rides[src2->GetRideIndex()].type;
if (rideType == RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER)
{
if (ride->type == RIDE_TYPE_MULTI_DIMENSION_ROLLER_COASTER)
{
dst2->SetSeatRotation(src2->GetSeatRotation());
}
else if (ride->type == RIDE_TYPE_MAZE)
{
dst2->SetMazeEntry(src2->GetMazeEntry());
}
dst2->SetSeatRotation(src2->GetSeatRotation());
}
else if (rideType == RIDE_TYPE_MAZE)
{
dst2->SetMazeEntry(src2->GetMazeEntry());
}
break;