This commit is contained in:
IntelOrca 2015-07-14 01:26:00 +01:00
parent 836c208dc5
commit 26a540e78d
1 changed files with 2 additions and 2 deletions

View File

@ -901,7 +901,7 @@ static void loc_6A6D7E(
if (!(RCT2_ADDRESS(0x0099CA64, uint8)[di] & (1 << 5))) { if (!(RCT2_ADDRESS(0x0099CA64, uint8)[di] & (1 << 5))) {
return; return;
} }
uint16 dx = (direction - mapElement->type) & 3; uint16 dx = ((direction - mapElement->type) & 3) ^ 2;
if (!(RCT2_ADDRESS(0x0099CA64, uint16)[di / 2] & (1 << dx))) { if (!(RCT2_ADDRESS(0x0099CA64, uint16)[di / 2] & (1 << dx))) {
return; return;
} }
@ -913,7 +913,7 @@ static void loc_6A6D7E(
break; break;
case MAP_ELEMENT_TYPE_ENTRANCE: case MAP_ELEMENT_TYPE_ENTRANCE:
if (z == mapElement->base_height) { if (z == mapElement->base_height) {
if (entrance_has_direction(mapElement, ((direction - mapElement->type) & 3) ^ 2)) { if (entrance_has_direction(mapElement, (direction - mapElement->type) & 3)) {
if (query) { if (query) {
neighbour_list_push(neighbourList, 8, direction); neighbour_list_push(neighbourList, 8, direction);
} else { } else {