mirror of https://github.com/OpenRCT2/OpenRCT2.git
fix #1605
This commit is contained in:
parent
836c208dc5
commit
26a540e78d
|
@ -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 {
|
||||||
|
|
Loading…
Reference in New Issue