1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-30 02:05:13 +01:00

Rename Peep::staff_litter_swept to StaffLitterSwept

This commit is contained in:
Tulio Leao
2020-05-30 19:31:48 -03:00
parent c2f7efa328
commit 5bd3e88972
3 changed files with 4 additions and 4 deletions

View File

@@ -1117,7 +1117,7 @@ void window_staff_stats_paint(rct_window* w, rct_drawpixelinfo* dpi)
dpi, STR_STAFF_STAT_GARDENS_WATERED, static_cast<void*>(&peep->staff_gardens_watered), COLOUR_BLACK, x, y);
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(
dpi, STR_STAFF_STAT_LITTER_SWEPT, static_cast<void*>(&peep->staff_litter_swept), COLOUR_BLACK, x, y);
dpi, STR_STAFF_STAT_LITTER_SWEPT, static_cast<void*>(&peep->StaffLitterSwept), COLOUR_BLACK, x, y);
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(
dpi, STR_STAFF_STAT_BINS_EMPTIED, static_cast<void*>(&peep->StaffBinsEmptied), COLOUR_BLACK, x, y);

View File

@@ -725,7 +725,7 @@ struct Peep : SpriteBase
union
{
money16 paid_on_food;
uint16_t staff_litter_swept;
uint16_t StaffLitterSwept;
};
union
{

View File

@@ -371,7 +371,7 @@ void staff_reset_stats()
peep->staff_rides_fixed = 0;
peep->staff_gardens_watered = 0;
peep->staff_rides_inspected = 0;
peep->staff_litter_swept = 0;
peep->StaffLitterSwept = 0;
peep->StaffBinsEmptied = 0;
}
}
@@ -1394,7 +1394,7 @@ void Staff::UpdateSweeping()
{
// Remove sick at this location
litter_remove_at(x, y, z);
staff_litter_swept++;
StaffLitterSwept++;
window_invalidate_flags |= PEEP_INVALIDATE_STAFF_STATS;
}
if (auto loc = UpdateAction())