fix #506 Paths can no longer be placed

This commit is contained in:
IntelOrca 2014-10-07 00:08:32 +01:00
parent 95027654fc
commit 4733089bf4
1 changed files with 2 additions and 2 deletions

View File

@ -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;
}