1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-21 05:53:02 +01:00

Guests turn around when trying to enter a copied park entrance

This commit is contained in:
Broxzier
2016-11-12 11:27:59 +01:00
parent 9c1998320d
commit ebc0a81e72

View File

@@ -8080,11 +8080,10 @@ static int peep_interact_with_entrance(rct_peep* peep, sint16 x, sint16 y, rct_m
}
uint8 entranceIndex = 0;
while (1){
for (entranceIndex = 0; entranceIndex < 4; entranceIndex++) {
if (gParkEntranceX[entranceIndex] == (x & 0xFFE0) &&
gParkEntranceY[entranceIndex] == (y & 0xFFE0))
break;
entranceIndex++;
}
sint16 z = gParkEntranceZ[entranceIndex] / 8;