Name sub_689174()

This commit is contained in:
rwjuk 2017-06-05 00:21:00 +01:00
parent a38d0711a6
commit df4b150f92
3 changed files with 4 additions and 4 deletions

View File

@ -222,7 +222,7 @@ void viewport_update_pointers()
* edx is assumed to be (and always is) the current rotation, so it is not
* needed as parameter.
*/
void sub_689174(sint16* x, sint16* y, sint16 *z)
void viewport_adjust_for_map_height(sint16* x, sint16* y, sint16 *z)
{
sint16 start_x = *x;
sint16 start_y = *y;
@ -526,7 +526,7 @@ void viewport_update_position(rct_window *window)
sint16 y = viewport->view_height / 2 + window->saved_view_y;
sint16 z;
sub_689174(&x, &y, &z);
viewport_adjust_for_map_height(&x, &y, &z);
viewport_set_underground_flag(0, window, viewport);

View File

@ -124,7 +124,7 @@ void viewport_update_sprite_follow(rct_window *window);
void viewport_render(rct_drawpixelinfo *dpi, rct_viewport *viewport, sint32 left, sint32 top, sint32 right, sint32 bottom);
void viewport_paint(rct_viewport* viewport, rct_drawpixelinfo* dpi, sint16 left, sint16 top, sint16 right, sint16 bottom);
void sub_689174(sint16* x, sint16* y, sint16 *z);
void viewport_adjust_for_map_height(sint16* x, sint16* y, sint16 *z);
rct_xy16 screen_coord_to_viewport_coord(rct_viewport *viewport, uint16 x, uint16 y);
rct_xy16 viewport_coord_to_map_coord(sint32 x, sint32 y, sint32 z);

View File

@ -1451,7 +1451,7 @@ void window_rotate_camera(rct_window *w, sint32 direction)
x = (viewport->view_width >> 1) + viewport->view_x;
y = (viewport->view_height >> 1) + viewport->view_y;
sub_689174(&x, &y, &z);
viewport_adjust_for_map_height(&x, &y, &z);
}
else {
z = map_element_height(x, y);