From aeca38d131b1a26304e3ac805fe8950eed7da0a5 Mon Sep 17 00:00:00 2001 From: Aaron van Geffen Date: Mon, 27 Jan 2025 19:24:33 +0100 Subject: [PATCH] Prevent drawing peep accessories whilst drowning (#23729) --- src/openrct2/entity/Peep.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/openrct2/entity/Peep.cpp b/src/openrct2/entity/Peep.cpp index 2322c77570..a8057fe1c2 100644 --- a/src/openrct2/entity/Peep.cpp +++ b/src/openrct2/entity/Peep.cpp @@ -2924,6 +2924,10 @@ void Peep::Paint(PaintSession& session, int32_t imageDirection) const if (guest == nullptr) return; + // Can't display any accessories whilst drowning + if (Action == PeepActionType::Drowning) + return; + // There are only 6 walking frames available for each item, // as well as 1 sprite for sitting and 1 for standing still. auto itemFrame = imageOffset % 6;