1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 18:25:16 +01:00

Fixes #527. Error caused by passing a variable a factor of 8 out.

This commit is contained in:
Duncan Frost
2014-10-16 19:35:01 +01:00
parent ece2522273
commit 0a5e304a92
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){