Rename Peep::no_of_drinks to NoOfDrinks

This commit is contained in:
Tulio Leao committed 2020-05-30 20:35:04 -03:00
1 parent 625f7859a4
commit bc7ea40c4b
9 files changed
+10 -10

No files matched your search

+2 -2
View File
@@ -1822,8 +1822,8 @@ void window_guest_finance_paint(rct_window* w, rct_drawpixelinfo* dpi)
// Paid on drinks
y += LIST_ROW_HEIGHT;
set_format_arg(0, money32, peep->paid_on_drink);
set_format_arg(4, uint16_t, peep->no_of_drinks);
if (peep->no_of_drinks != 1)
set_format_arg(4, uint16_t, peep->NoOfDrinks);
if (peep->NoOfDrinks != 1)
{
gfx_draw_string_left(dpi, STR_GUEST_EXPENSES_DRINK_PLURAL, gCommonFormatArgs, COLOUR_BLACK, x, y);
}
+1 -1
View File
@@ -299,7 +299,7 @@ struct GameStateSnapshots final : public IGameStateSnapshots
COMPARE_FIELD(Peep, paid_on_food);
COMPARE_FIELD(Peep, paid_on_souvenirs);
COMPARE_FIELD(Peep, no_of_food);
COMPARE_FIELD(Peep, no_of_drinks);
COMPARE_FIELD(Peep, NoOfDrinks);
COMPARE_FIELD(Peep, NoOfSouvenirs);
COMPARE_FIELD(Peep, VandalismSeen);
COMPARE_FIELD(Peep, VoucherType);
+1 -1
View File
@@ -1699,7 +1699,7 @@ loc_69B221:
no_of_food++;
if (ShopItems[shopItem].IsDrink())
no_of_drinks++;
NoOfDrinks++;
if (ShopItems[shopItem].IsSouvenir())
NoOfSouvenirs++;
+1 -1
View File
@@ -1770,7 +1770,7 @@ Peep* Peep::Generate(const CoordsXYZ& coords)
peep->paid_on_drink = 0;
peep->paid_on_souvenirs = 0;
peep->no_of_food = 0;
peep->no_of_drinks = 0;
peep->NoOfDrinks = 0;
peep->NoOfSouvenirs = 0;
peep->SurroundingsThoughtTimeout = 0;
peep->Angriness = 0;
+1 -1
View File
@@ -733,7 +733,7 @@ struct Peep : SpriteBase
uint16_t staff_bins_emptied;
};
uint8_t no_of_food;
uint8_t no_of_drinks;
uint8_t NoOfDrinks;
uint8_t NoOfSouvenirs;
uint8_t VandalismSeen; // 0xC0 vandalism thought timeout, 0x3F vandalism tiles seen
uint8_t VoucherType;
+1 -1
View File
@@ -1484,7 +1484,7 @@ private:
// This doubles as staff type
dst->no_of_rides = src->no_of_rides;
dst->no_of_drinks = src->no_of_drinks;
dst->NoOfDrinks = src->no_of_drinks;
dst->no_of_food = src->no_of_food;
dst->NoOfSouvenirs = src->no_of_souvenirs;
+1 -1
View File
@@ -1226,7 +1226,7 @@ void S6Exporter::ExportSpritePeep(RCT2SpritePeep* dst, const Peep* src)
dst->paid_on_food = src->paid_on_food;
dst->paid_on_souvenirs = src->paid_on_souvenirs;
dst->no_of_food = src->no_of_food;
dst->no_of_drinks = src->no_of_drinks;
dst->no_of_drinks = src->NoOfDrinks;
dst->no_of_souvenirs = src->NoOfSouvenirs;
dst->vandalism_seen = src->VandalismSeen;
dst->voucher_type = src->VoucherType;
+1 -1
View File
@@ -1491,7 +1491,7 @@ public:
dst->paid_on_food = src->paid_on_food;
dst->paid_on_souvenirs = src->paid_on_souvenirs;
dst->no_of_food = src->no_of_food;
dst->no_of_drinks = src->no_of_drinks;
dst->NoOfDrinks = src->no_of_drinks;
dst->NoOfSouvenirs = src->no_of_souvenirs;
dst->VandalismSeen = src->vandalism_seen;
dst->VoucherType = src->voucher_type;
+1 -1
View File
@@ -252,7 +252,7 @@ static void CompareSpriteDataPeep(const Peep& left, const Peep& right)
COMPARE_FIELD(paid_on_food);
COMPARE_FIELD(paid_on_souvenirs);
COMPARE_FIELD(no_of_food);
COMPARE_FIELD(no_of_drinks);
COMPARE_FIELD(NoOfDrinks);
COMPARE_FIELD(NoOfSouvenirs);
COMPARE_FIELD(VandalismSeen);
COMPARE_FIELD(VoucherType);