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

Fix drawing of walls with incorrect scrolling modes (#11453)

This commit is contained in:
Michael Steenbeek
2020-04-25 11:19:13 +02:00
committed by GitHub
parent 6ebd918cde
commit b417da7905

View File

@@ -426,6 +426,11 @@ void fence_paint(paint_session* session, uint8_t direction, int32_t height, cons
}
uint16_t scrollingMode = sceneryEntry->wall.scrolling_mode + ((direction + 1) & 0x3);
if (scrollingMode >= MAX_SCROLLING_TEXT_MODES)
{
return;
}
auto banner = tile_element->AsWall()->GetBanner();
if (banner != nullptr && !banner->IsNull())
{