From e1e29379bafb20a8cdf174bd9206592000463f93 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=CE=B6eh=20Matt?= <5415177+ZehMatt@users.noreply.github.com> Date: Sat, 4 Sep 2021 18:37:49 +0300 Subject: [PATCH] Add thought insertion overload with strong ride id type --- src/openrct2/peep/Guest.cpp | 4 ++++ src/openrct2/peep/Peep.h | 1 + 2 files changed, 5 insertions(+) diff --git a/src/openrct2/peep/Guest.cpp b/src/openrct2/peep/Guest.cpp index b1bc71cba3..deb4807785 100644 --- a/src/openrct2/peep/Guest.cpp +++ b/src/openrct2/peep/Guest.cpp @@ -6811,6 +6811,10 @@ void Guest::InsertNewThought(PeepThoughtType thought_type, ShopItem shopItem) InsertNewThought(thought_type, static_cast(shopItem)); } +void Guest::InsertNewThought(PeepThoughtType thought_type, ride_id_t ride) +{ + InsertNewThought(thought_type, static_cast(ride)); +} /** * * rct2: 0x699F5A diff --git a/src/openrct2/peep/Peep.h b/src/openrct2/peep/Peep.h index 5165766865..08b7f6a340 100644 --- a/src/openrct2/peep/Peep.h +++ b/src/openrct2/peep/Peep.h @@ -774,6 +774,7 @@ public: void UpdateEasterEggInteractions(); void InsertNewThought(PeepThoughtType thought_type); void InsertNewThought(PeepThoughtType thought_type, ShopItem thought_arguments); + void InsertNewThought(PeepThoughtType thought_type, ride_id_t ride); void InsertNewThought(PeepThoughtType thought_type, uint16_t thought_arguments); static Guest* Generate(const CoordsXYZ& coords); bool UpdateQueuePosition(PeepActionType previous_action);