Rename Peep::staff_bins_emptied to StaffBinsEmptied

This commit is contained in:
Tulio Leao committed 2020-05-30 20:35:04 -03:00
1 parent a729ac1589
commit 7d581e6978
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -1120,7 +1120,7 @@ void window_staff_stats_paint(rct_window* w, rct_drawpixelinfo* dpi)
dpi, STR_STAFF_STAT_LITTER_SWEPT, static_cast<void*>(&peep->staff_litter_swept), COLOUR_BLACK, x, y);
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(
dpi, STR_STAFF_STAT_BINS_EMPTIED, static_cast<void*>(&peep->staff_bins_emptied), COLOUR_BLACK, x, y);
dpi, STR_STAFF_STAT_BINS_EMPTIED, static_cast<void*>(&peep->StaffBinsEmptied), COLOUR_BLACK, x, y);
break;
case STAFF_TYPE_MECHANIC:
gfx_draw_string_left(
+1 -1
View File
@@ -730,7 +730,7 @@ struct Peep : SpriteBase
union
{
money16 paid_on_souvenirs;
uint16_t staff_bins_emptied;
uint16_t StaffBinsEmptied;
};
uint8_t NoOfFood;
uint8_t NoOfDrinks;
+2 -2
View File
@@ -372,7 +372,7 @@ void staff_reset_stats()
peep->staff_gardens_watered = 0;
peep->staff_rides_inspected = 0;
peep->staff_litter_swept = 0;
peep->staff_bins_emptied = 0;
peep->StaffBinsEmptied = 0;
}
}
@@ -1375,7 +1375,7 @@ void Staff::UpdateEmptyingBin()
tile_element->AsPath()->SetAdditionStatus(additionStatus);
map_invalidate_tile_zoom0({ NextLoc, tile_element->GetBaseZ(), tile_element->GetClearanceZ() });
staff_bins_emptied++;
StaffBinsEmptied++;
window_invalidate_flags |= PEEP_INVALIDATE_STAFF_STATS;
}
}