- Exhumed: Fix OOB frame with the rat.

* No idea what this does in the original source... plays the first frame of the next sequence?
This commit is contained in:
Mitchell Richters 2023-04-25 18:18:26 +10:00
parent 52ab0fae19
commit fe356f3183

View file

@ -275,6 +275,12 @@ void AIRat::Tick(RunListEvent* ev)
pActor->nCount = RandomSize(5) + 4;
pActor->nPhase--;
if (pActor->nFrame >= ratSeq.frames.Size())
{
bVal = true;
pActor->nFrame = 0;
}
if (pActor->nPhase <= 0)
{
auto pFoodSprite = FindFood(pActor);