From 4733089bf47d45aee9d9176d484106d869001675 Mon Sep 17 00:00:00 2001 From: IntelOrca Date: Tue, 7 Oct 2014 00:08:32 +0100 Subject: [PATCH] fix #506 Paths can no longer be placed --- src/viewport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/viewport.c b/src/viewport.c index 25b4fe062b..121acac425 100644 --- a/src/viewport.c +++ b/src/viewport.c @@ -1107,8 +1107,8 @@ void get_map_coordinates_from_pos(int screenX, int screenY, int flags, int *x, i ebx = screenY; edx = flags; RCT2_CALLFUNC_X(0x00685ADC, &eax, &ebx, &ecx, &edx, &esi, &edi, &ebp); - if (x != NULL) *x = *((uint8*)&eax); - if (y != NULL) *y = *((uint8*)&ecx); + if (x != NULL) *x = *((uint16*)&eax); + if (y != NULL) *y = *((uint16*)&ecx); if (z != NULL) *z = *((uint8*)&ebx); if (mapElement != NULL) *mapElement = (rct_map_element*)edx; } \ No newline at end of file