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