1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-26 16:24:35 +01:00

Use GET_PEEP macro

This commit is contained in:
Sam Horn
2015-10-10 23:15:56 +10:00
parent b0437746a9
commit 75263034e5

View File

@@ -7934,7 +7934,7 @@ static bool peep_should_go_on_ride(rct_peep *peep, int rideIndex, int entranceNu
else {
// Check if there's room in the queue for the peep to enter.
if (ride->first_peep_in_queue[entranceNum] != 0xFFFF) {
rct_peep *firstPeepInQueue = &(g_sprite_list[ride->first_peep_in_queue[entranceNum]].peep);
rct_peep *firstPeepInQueue = GET_PEEP(ride->first_peep_in_queue[entranceNum]);
if (abs(firstPeepInQueue->z - peep->z) <= 6) {
int dx = abs(firstPeepInQueue->x - peep->x);
int dy = abs(firstPeepInQueue->y - peep->y);