Make review changes

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

No files matched your search

+1 -3
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();
}
-2
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();
+1 -3
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++)