1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-01-15 11:03:00 +01:00

Prevent having ANIMATION_FROZEN set while POSITION_FROZEN is not

This commit is contained in:
Aaron van Geffen
2024-07-03 23:09:56 +02:00
parent 666e8a1518
commit 7dcedfb260

View File

@@ -986,6 +986,13 @@ void Peep::Update()
}
return;
}
else if (PeepFlags & PEEP_FLAGS_ANIMATION_FROZEN)
{
// Animation is frozen while position is not. This allows a peep to walk
// around without its sprite being updated, which looks very glitchy.
// We'll just remove the flag and continue as normal, in this case.
PeepFlags &= ~PEEP_FLAGS_ANIMATION_FROZEN;
}
auto* guest = As<Guest>();
if (guest != nullptr)