Rename Peep::staff_lawns_mown to StaffLawnsMown

This commit is contained in:
Tulio Leao 2020-05-30 19:44:49 -03:00
parent 133ff992b6
commit 07f36a93de
3 changed files with 4 additions and 5 deletions

View File

@ -1110,8 +1110,7 @@ void window_staff_stats_paint(rct_window* w, rct_drawpixelinfo* dpi)
switch (peep->staff_type)
{
case STAFF_TYPE_HANDYMAN:
gfx_draw_string_left(
dpi, STR_STAFF_STAT_LAWNS_MOWN, static_cast<void*>(&peep->staff_lawns_mown), COLOUR_BLACK, x, y);
gfx_draw_string_left(dpi, STR_STAFF_STAT_LAWNS_MOWN, static_cast<void*>(&peep->StaffLawnsMown), COLOUR_BLACK, x, y);
y += LIST_ROW_HEIGHT;
gfx_draw_string_left(
dpi, STR_STAFF_STAT_GARDENS_WATERED, static_cast<void*>(&peep->StaffGardensWatered), COLOUR_BLACK, x, y);

View File

@ -713,7 +713,7 @@ struct Peep : SpriteBase
union
{
money16 paid_to_enter;
uint16_t staff_lawns_mown;
uint16_t StaffLawnsMown;
uint16_t StaffRidesFixed;
};
union

View File

@ -367,7 +367,7 @@ void staff_reset_stats()
FOR_ALL_STAFF (spriteIndex, peep)
{
peep->time_in_park = gDateMonthsElapsed;
peep->staff_lawns_mown = 0;
peep->StaffLawnsMown = 0;
peep->StaffRidesFixed = 0;
peep->StaffGardensWatered = 0;
peep->StaffRidesInspected = 0;
@ -1231,7 +1231,7 @@ void Staff::UpdateMowing()
surfaceElement->SetGrassLength(GRASS_LENGTH_MOWED);
map_invalidate_tile_zoom0({ NextLoc, surfaceElement->GetBaseZ(), surfaceElement->GetBaseZ() + 16 });
}
staff_lawns_mown++;
StaffLawnsMown++;
window_invalidate_flags |= PEEP_INVALIDATE_STAFF_STATS;
}
}