1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2025-12-24 00:03:11 +01:00

Prevent drawing peep accessories whilst drowning (#23729)

This commit is contained in:
Aaron van Geffen
2025-01-27 19:24:33 +01:00
committed by GitHub
parent a4d8eb3417
commit aeca38d131

View File

@@ -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;