Fix #9978: Mazes are imported incorrectly

This commit is contained in:
Gymnasiast 2019-09-12 23:11:55 +02:00
parent 4424964686
commit 0aca04256b
No known key found for this signature in database
GPG Key ID: DBFFF47AB2CA3EDD
1 changed files with 7 additions and 10 deletions

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;