mirror of https://github.com/OpenRCT2/OpenRCT2.git
Name sub_689174()
This commit is contained in:
parent
a38d0711a6
commit
df4b150f92
|
@ -222,7 +222,7 @@ void viewport_update_pointers()
|
||||||
* edx is assumed to be (and always is) the current rotation, so it is not
|
* edx is assumed to be (and always is) the current rotation, so it is not
|
||||||
* needed as parameter.
|
* 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_x = *x;
|
||||||
sint16 start_y = *y;
|
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 y = viewport->view_height / 2 + window->saved_view_y;
|
||||||
sint16 z;
|
sint16 z;
|
||||||
|
|
||||||
sub_689174(&x, &y, &z);
|
viewport_adjust_for_map_height(&x, &y, &z);
|
||||||
|
|
||||||
viewport_set_underground_flag(0, window, viewport);
|
viewport_set_underground_flag(0, window, viewport);
|
||||||
|
|
||||||
|
|
|
@ -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_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 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 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);
|
rct_xy16 viewport_coord_to_map_coord(sint32 x, sint32 y, sint32 z);
|
||||||
|
|
|
@ -1451,7 +1451,7 @@ void window_rotate_camera(rct_window *w, sint32 direction)
|
||||||
x = (viewport->view_width >> 1) + viewport->view_x;
|
x = (viewport->view_width >> 1) + viewport->view_x;
|
||||||
y = (viewport->view_height >> 1) + viewport->view_y;
|
y = (viewport->view_height >> 1) + viewport->view_y;
|
||||||
|
|
||||||
sub_689174(&x, &y, &z);
|
viewport_adjust_for_map_height(&x, &y, &z);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
z = map_element_height(x, y);
|
z = map_element_height(x, y);
|
||||||
|
|
Loading…
Reference in New Issue