1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-22 15:23:01 +01:00

Use the rotation from the Viewport where applicable

This commit is contained in:
ζeh Matt
2024-02-18 03:13:04 +02:00
parent 2661cf8772
commit 98acdf3743
9 changed files with 39 additions and 32 deletions

View File

@@ -836,7 +836,7 @@ void WindowScrollToLocation(WindowBase& w, const CoordsXYZ& coords)
}
}
auto screenCoords = Translate3DTo2DWithZ(GetCurrentRotation(), coords);
auto screenCoords = Translate3DTo2DWithZ(w.viewport->rotation, coords);
int32_t i = 0;
if (!(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO))