1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

add global macros for viewport variables

This commit is contained in:
Ted John
2016-04-25 21:37:48 +01:00
parent aa77c06c01
commit 870a8b55e5
14 changed files with 99 additions and 94 deletions

View File

@@ -1428,7 +1428,7 @@ void window_rotate_camera(rct_window *w, int direction)
z = map_element_height(x, y);
}
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint32) = (get_current_rotation() + direction) & 3;
gCurrentRotation = (get_current_rotation() + direction) & 3;
int new_x, new_y;
center_2d_coordinates(x, y, z, &new_x, &new_y, viewport);