From ebc0a81e720ba48f3458d3a89456566f8f07e15d Mon Sep 17 00:00:00 2001 From: Broxzier Date: Sat, 12 Nov 2016 11:27:59 +0100 Subject: [PATCH] Guests turn around when trying to enter a copied park entrance --- src/peep/peep.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/peep/peep.c b/src/peep/peep.c index 6d667d4af5..f1eab85c60 100644 --- a/src/peep/peep.c +++ b/src/peep/peep.c @@ -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;