1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Make review changes

This commit is contained in:
duncanspumpkin
2020-04-18 10:34:41 +01:00
parent 401504aff9
commit f9ae3dd980
3 changed files with 2 additions and 8 deletions

View File

@@ -686,9 +686,7 @@ private:
}
Peep* peep;
uint16_t sprite_index;
FOR_ALL_GUESTS (sprite_index, peep)
FOR_ALL_GUESTS (spriteIndex, peep)
{
peep->Remove();
}

View File

@@ -412,8 +412,6 @@ void peep_update_all()
return;
FOR_ALL_PEEPS (spriteIndex, peep)
{
peep = &(get_sprite(spriteIndex)->peep);
if ((uint32_t)(i & 0x7F) != (gCurrentTicks & 0x7F))
{
peep->Update();

View File

@@ -155,9 +155,7 @@ void staff_update_greyed_patrol_areas()
FOR_ALL_STAFF (sprite_index, peep)
{
peep = GET_PEEP(sprite_index);
if (peep->type == PEEP_TYPE_STAFF && staff_type == peep->staff_type)
if (peep->staff_type == staff_type)
{
int32_t peepPatrolOffset = peep->staff_id * STAFF_PATROL_AREA_SIZE;
for (int32_t i = 0; i < STAFF_PATROL_AREA_SIZE; i++)