Fix mixup between window and viewport flags

Viewport flag (1 << 3) corresponds with VIEWPORT_FLAG_HIDE_SUPPORTS. It is very likely that the author meant to unset the window flag (1 << 3), so change it to that.
This commit is contained in:
Gymnasiast committed 2025-04-19 14:09:17 +02:00
1 parent 734c0959ef
commit e9e0dc7905
1 file changed
+1 -1
+1 -1
View File
@@ -275,7 +275,7 @@ namespace OpenRCT2::Scripting
{
viewport->viewPos.x = left;
viewport->viewPos.y = top;
viewport->flags &= ~WF_SCROLLING_TO_LOCATION;
w->flags &= ~WF_SCROLLING_TO_LOCATION;
w->savedViewPos.x = viewport->viewPos.x;
w->savedViewPos.y = viewport->viewPos.y;
viewport->Invalidate();