mirror of
https://github.com/ZDoom/Raze.git
synced 2025-01-31 20:40:39 +00:00
- 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:
parent
52ab0fae19
commit
fe356f3183
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue