New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature/rct1 surfaces #13614
Feature/rct1 surfaces #13614
Conversation
ba636b5
to
179b503
Compare
@@ -79,8 +79,7 @@ uint8_t RCT12SurfaceElement::GetSlope() const | |||
uint32_t RCT12SurfaceElement::GetSurfaceStyle() const | |||
{ | |||
uint32_t retVal = (terrain >> 5) & 7; | |||
if (type & 1) | |||
retVal |= (1 << 3); | |||
retVal |= (type & RCT12_SURFACE_ELEMENT_TYPE_SURFACE_MASK) << 3; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will this have issues with #13536. I assume not as this is only changing the RCT12 element and not the in memory element.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It should not affect #13536, indeed.
This uses a previously unused bit in the surface element to store extra surface styles.
Before:
After: