mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2025-12-23 15:52:55 +01:00
Use viewport flag constants in window_scroll_to_location (#17427)
This commit is contained in:
@@ -830,17 +830,17 @@ void window_scroll_to_location(rct_window* w, const CoordsXYZ& coords)
|
|||||||
int16_t height = tile_element_height(coords);
|
int16_t height = tile_element_height(coords);
|
||||||
if (coords.z < height - 16)
|
if (coords.z < height - 16)
|
||||||
{
|
{
|
||||||
if (!(w->viewport->flags & 1 << 0))
|
if (!(w->viewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE))
|
||||||
{
|
{
|
||||||
w->viewport->flags |= 1 << 0;
|
w->viewport->flags |= VIEWPORT_FLAG_UNDERGROUND_INSIDE;
|
||||||
w->Invalidate();
|
w->Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
if (w->viewport->flags & 1 << 0)
|
if (w->viewport->flags & VIEWPORT_FLAG_UNDERGROUND_INSIDE)
|
||||||
{
|
{
|
||||||
w->viewport->flags &= ~(1 << 0);
|
w->viewport->flags &= ~VIEWPORT_FLAG_UNDERGROUND_INSIDE;
|
||||||
w->Invalidate();
|
w->Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user