mirror of
https://github.com/OpenRCT2/OpenRCT2
synced 2026-01-21 14:02:59 +01:00
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:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user