From 07f36a93de569afb39035e29b68468a5cbf2a0c2 Mon Sep 17 00:00:00 2001 From: Tulio Leao Date: Sat, 30 May 2020 19:44:49 -0300 Subject: [PATCH] Rename Peep::staff_lawns_mown to StaffLawnsMown --- src/openrct2-ui/windows/Staff.cpp | 3 +-- src/openrct2/peep/Peep.h | 2 +- src/openrct2/peep/Staff.cpp | 4 ++-- 3 files changed, 4 insertions(+), 5 deletions(-) diff --git a/src/openrct2-ui/windows/Staff.cpp b/src/openrct2-ui/windows/Staff.cpp index f5f63300a2..dec8cf591e 100644 --- a/src/openrct2-ui/windows/Staff.cpp +++ b/src/openrct2-ui/windows/Staff.cpp @@ -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(&peep->staff_lawns_mown), COLOUR_BLACK, x, y); + gfx_draw_string_left(dpi, STR_STAFF_STAT_LAWNS_MOWN, static_cast(&peep->StaffLawnsMown), COLOUR_BLACK, x, y); y += LIST_ROW_HEIGHT; gfx_draw_string_left( dpi, STR_STAFF_STAT_GARDENS_WATERED, static_cast(&peep->StaffGardensWatered), COLOUR_BLACK, x, y); diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 53abb4bb72..256d48d5a6 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -713,7 +713,7 @@ struct Peep : SpriteBase union { money16 paid_to_enter; - uint16_t staff_lawns_mown; + uint16_t StaffLawnsMown; uint16_t StaffRidesFixed; }; union diff --git a/src/openrct2/peep/Staff.cpp b/src/openrct2/peep/Staff.cpp index 753a8044c3..aeeeaf543a 100644 --- a/src/openrct2/peep/Staff.cpp +++ b/src/openrct2/peep/Staff.cpp @@ -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; } }