From fe655cdc262c41fed3908dfb9d7380a980ba27a1 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Sat, 29 Jun 2024 14:36:29 +0200 Subject: [PATCH] Rename Guest::Loc68FA89 to UpdateConsumptionMotives --- src/openrct2/entity/Guest.cpp | 8 ++++---- src/openrct2/entity/Guest.h | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/openrct2/entity/Guest.cpp b/src/openrct2/entity/Guest.cpp index 13ee8626f8..6cad1c015f 100644 --- a/src/openrct2/entity/Guest.cpp +++ b/src/openrct2/entity/Guest.cpp @@ -785,9 +785,9 @@ void Guest::Loc68F9F3() } } -void Guest::Loc68FA89() +/* rct2: 0x0068FA89*/ +void Guest::UpdateConsumptionMotives() { - // 68FA89 if (TimeToConsume == 0 && HasFoodOrDrink()) { TimeToConsume += 3; @@ -1025,7 +1025,7 @@ void Guest::Tick128UpdateGuest(uint32_t index) PeepLeavePark(this); PeepUpdateHunger(this); Loc68F9F3(); - Loc68FA89(); + UpdateConsumptionMotives(); return; } } @@ -1219,7 +1219,7 @@ void Guest::Tick128UpdateGuest(uint32_t index) Loc68F9F3(); } - Loc68FA89(); + UpdateConsumptionMotives(); } /** diff --git a/src/openrct2/entity/Guest.h b/src/openrct2/entity/Guest.h index f5b40f7465..63a2f10410 100644 --- a/src/openrct2/entity/Guest.h +++ b/src/openrct2/entity/Guest.h @@ -415,7 +415,7 @@ private: void UpdateRideShopLeave(); void UpdateRidePrepareForExit(); void Loc68F9F3(); - void Loc68FA89(); + void UpdateConsumptionMotives(); int32_t CheckEasterEggName(int32_t index) const; void GivePassingPeepsPurpleClothes(Guest* passingPeep); void GivePassingPeepsPizza(Guest* passingPeep);