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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user