mirror of https://github.com/OpenRCT2/OpenRCT2.git
Changed 'wise' to 'direction'
This commit is contained in:
parent
dd24011b5d
commit
15a4c958eb
|
@ -1353,8 +1353,11 @@ void sub_688956()
|
|||
/**
|
||||
*
|
||||
* rct2: 0x0068881A
|
||||
* direction can be used to alter the camera rotation:
|
||||
* 1: clockwise
|
||||
* -1: anti-clockwise
|
||||
*/
|
||||
void window_rotate_camera(rct_window *w, int wise)
|
||||
void window_rotate_camera(rct_window *w, int direction)
|
||||
{
|
||||
rct_viewport *viewport = w->viewport;
|
||||
if (viewport == NULL)
|
||||
|
@ -1380,7 +1383,7 @@ void window_rotate_camera(rct_window *w, int wise)
|
|||
z = map_element_height(x, y);
|
||||
}
|
||||
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint32) = (RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint32) + wise) % 4;
|
||||
RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint32) = (RCT2_GLOBAL(RCT2_ADDRESS_CURRENT_ROTATION, uint32) + direction) % 4;
|
||||
|
||||
int new_x, new_y;
|
||||
center_2d_coordinates(x, y, z, &new_x, &new_y, viewport);
|
||||
|
|
|
@ -496,7 +496,7 @@ rct_window *window_get_main();
|
|||
|
||||
void window_scroll_to_viewport(rct_window *w);
|
||||
void window_scroll_to_location(rct_window *w, int x, int y, int z);
|
||||
void window_rotate_camera(rct_window *w, int wise);
|
||||
void window_rotate_camera(rct_window *w, int direction);
|
||||
void window_zoom_set(rct_window *w, int zoomLevel);
|
||||
void window_zoom_in(rct_window *w);
|
||||
void window_zoom_out(rct_window *w);
|
||||
|
|
Loading…
Reference in New Issue