Merge pull request #529 from duncanspumpkin/fix_527

Fix #527
This commit is contained in:
Ted John 2014-10-16 19:44:31 +01:00
commit 0053dd82dc
2 changed files with 4 additions and 8 deletions

View File

@ -1209,10 +1209,8 @@ void window_guest_overview_tool_down(){
return;
}
int _edx = dest_z >> 3;
_edx &= 0xFFFF00FF;
_edx |= dest_z << 8;
_edx += 0x100;
int _edx;
_edx = (dest_z / 8) | (((dest_z / 8) + 1) << 8);
int flags = RCT2_CALLPROC_X(0x68B93A, tile_x, 0xF, tile_y, _edx, (int)w, 0, 0);
if (flags & 0x100){

View File

@ -1129,10 +1129,8 @@ void window_staff_overview_tool_down(){
return;
}
int _edx = dest_z >> 3;
_edx &= 0xFFFF00FF;
_edx |= (_edx & 0xFF) << 8;
_edx += 0x100;
int _edx;
_edx = (dest_z / 8) | (((dest_z / 8) + 1) << 8);
int flags = RCT2_CALLPROC_X(0x68B93A, tile_x, 0xF, tile_y, _edx, (int)w, 0, 0);
if (flags & 0x100){