From 81499643db595fa5909f60d6c75940c26bd099b8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sun, 18 Feb 2024 02:42:52 +0200 Subject: [PATCH] Rename unused field to Rotation --- src/openrct2/interface/Window.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/openrct2/interface/Window.h b/src/openrct2/interface/Window.h index 556292be1b..9d84d0bd0a 100644 --- a/src/openrct2/interface/Window.h +++ b/src/openrct2/interface/Window.h @@ -148,16 +148,16 @@ struct Widget */ struct Viewport { - int32_t width; - int32_t height; - ScreenCoordsXY pos; - ScreenCoordsXY viewPos; - int32_t view_width; - int32_t view_height; - uint32_t flags; - ZoomLevel zoom; - uint8_t var_11; - VisibilityCache visibility; + int32_t width{}; + int32_t height{}; + ScreenCoordsXY pos{}; + ScreenCoordsXY viewPos{}; + int32_t view_width{}; + int32_t view_height{}; + uint32_t flags{}; + ZoomLevel zoom{}; + uint8_t rotation{}; + VisibilityCache visibility{}; // Use this function on coordinates that are relative to the viewport zoom i.e. a peeps x, y position after transforming // from its x, y, z