Skip to content

Commit

Permalink
Always return default seat rotation for ride types with landscape doors
Browse files Browse the repository at this point in the history
  • Loading branch information
Gymnasiast committed Jan 10, 2021
1 parent a2bc2b4 commit 0f6abf0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/openrct2/ride/Track.cpp
Expand Up @@ -1211,6 +1211,10 @@ bool TrackTypeHasSpeedSetting(track_type_t trackType)

uint8_t TrackElement::GetSeatRotation() const
{
const auto* ride = get_ride(GetRideIndex());
if (ride != nullptr && ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_LANDSCAPE_DOORS))
return DEFAULT_SEAT_ROTATION;

return ColourScheme >> 4;
}

Expand Down
4 changes: 4 additions & 0 deletions test/testpaint/Compat.cpp
Expand Up @@ -229,6 +229,10 @@ bool is_csg_loaded()

uint8_t TrackElement::GetSeatRotation() const
{
const auto* ride = get_ride(GetRideIndex());
if (ride != nullptr && ride->GetRideTypeDescriptor().HasFlag(RIDE_TYPE_FLAG_HAS_LANDSCAPE_DOORS))
return DEFAULT_SEAT_ROTATION;

return ColourScheme >> 4;
}

Expand Down

0 comments on commit 0f6abf0

Please sign in to comment.