1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-24 07:14:31 +01:00

Fix coordinate type to avoid invalid cast

This commit is contained in:
qcz
2014-08-19 20:08:09 +02:00
parent bd06c7caee
commit 5c22530965
2 changed files with 2 additions and 2 deletions

View File

@@ -761,7 +761,7 @@ void viewport_paint(rct_viewport* viewport, rct_drawpixelinfo* dpi, int left, in
*
* rct2: 0x0068958D
*/
void screen_pos_to_map_pos(int *x, int *y)
void screen_pos_to_map_pos(short *x, short *y)
{
int eax, ebx, ecx, edx, esi, edi, ebp;
eax = *x;

View File

@@ -52,7 +52,7 @@ void viewport_update_pointers();
void viewport_update_position(rct_window *window);
void viewport_render(rct_drawpixelinfo *dpi, rct_viewport *viewport, int left, int top, int right, int bottom);
void screen_pos_to_map_pos(int *x, int *y);
void screen_pos_to_map_pos(short *x, short *y);
void show_gridlines();
void hide_gridlines();