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:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user