From e9e0dc79053ab3f431b68cad00a66411c11ae47f Mon Sep 17 00:00:00 2001 From: Gymnasiast Date: Sat, 19 Apr 2025 14:09:17 +0200 Subject: [PATCH] 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. --- src/openrct2-ui/scripting/ScViewport.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/openrct2-ui/scripting/ScViewport.hpp b/src/openrct2-ui/scripting/ScViewport.hpp index 6ba5b930b1..80165d24c4 100644 --- a/src/openrct2-ui/scripting/ScViewport.hpp +++ b/src/openrct2-ui/scripting/ScViewport.hpp @@ -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();