mirror of https://github.com/OpenRCT2/OpenRCT2.git
Fixup: same for guests...
This commit is contained in:
parent
bd6ea9ca90
commit
60f26caa3e
|
@ -863,7 +863,7 @@ namespace OpenRCT2::Scripting
|
|||
|
||||
auto& animationGroup = GetPeepAnimation(peep->SpriteType, peep->ActionSpriteType);
|
||||
peep->ActionSpriteImageOffset = animationGroup.frame_offsets[peep->ActionFrame];
|
||||
peep->UpdateCurrentActionSpriteType();
|
||||
peep->UpdateSpriteBoundingBox();
|
||||
}
|
||||
|
||||
uint8_t ScGuest::animationOffset_get() const
|
||||
|
@ -887,7 +887,7 @@ namespace OpenRCT2::Scripting
|
|||
auto length = animationGroup.frame_offsets.size();
|
||||
|
||||
peep->ActionFrame = offset % length;
|
||||
peep->UpdateCurrentActionSpriteType();
|
||||
peep->UpdateSpriteBoundingBox();
|
||||
}
|
||||
|
||||
uint8_t ScGuest::animationLength_get() const
|
||||
|
|
Loading…
Reference in New Issue