1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-21 14:53:02 +01:00

Fix typo in Viewport.cpp (#22215)

This commit is contained in:
Stephan Spengler
2024-07-02 14:33:20 +02:00
committed by GitHub
parent 19c666479c
commit e96c999c43

View File

@@ -870,7 +870,7 @@ static void ViewportRotateSingleInternal(WindowBase& w, int32_t direction)
CoordsXYZ coords{};
// other != viewport probably triggers on viewports in ride or guest window?
// naoXYCoords is nullopt if middle of viewport is obstructed by another window?
// mapXYCoords is nullopt if middle of viewport is obstructed by another window?
if (!mapXYCoords.has_value() || other != viewport)
{
auto viewPos = ScreenCoordsXY{ (viewport->view_width >> 1), (viewport->view_height >> 1) } + viewport->viewPos;