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

Refactor out all uses of gCurrentRotation, remove gCurrentRotation

This commit is contained in:
ζeh Matt
2024-02-18 02:57:33 +02:00
parent 8864f6cf51
commit 2661cf8772
8 changed files with 15 additions and 20 deletions

View File

@@ -933,7 +933,7 @@ void WindowRotateCamera(WindowBase& w, int32_t direction)
coords.z = TileElementHeight(coords);
}
gCurrentRotation = (GetCurrentRotation() + direction) & 3;
viewport->rotation = (viewport->rotation + direction) & 3;
auto centreLoc = centre_2d_coordinates(coords, viewport);