1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-19 04:53:12 +01:00

Fix viewport not using the correct rotation in some cases

This commit is contained in:
ζeh Matt
2024-03-02 10:45:48 +02:00
parent f7682f6b13
commit 8bf33a6039

View File

@@ -190,6 +190,7 @@ void ViewportCreate(WindowBase* w, const ScreenCoordsXY& screenCoords, int32_t w
viewport->view_height = zoom.ApplyTo(height);
viewport->zoom = zoom;
viewport->flags = 0;
viewport->rotation = GetCurrentRotation();
if (gConfigGeneral.AlwaysShowGridlines)
viewport->flags |= VIEWPORT_FLAG_GRIDLINES;