mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fix drawing of walls with incorrect scrolling modes (#11453)
This commit is contained in:
parent
6ebd918cde
commit
b417da7905
|
@ -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())
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue