mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-03-23 19:31:05 +00:00
Merge branch '1297-ff_randomanim-can-go-out-of-bounds-for-spr_play' into 'next'
Fix regression in P_SetupStateAnimation Closes #1297 See merge request STJr/SRB2!2549
This commit is contained in:
commit
d8ac5c2a93
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ static void P_SetupStateAnimation(mobj_t *mobj, state_t *st)
|
|||
if (mobj->sprite == SPR_PLAY && mobj->skin)
|
||||
{
|
||||
spritedef_t *spritedef = P_GetSkinSpritedef(mobj->skin, mobj->sprite2);
|
||||
animlength = (INT32)(spritedef->numframes);
|
||||
animlength = (INT32)(spritedef->numframes) - 1;
|
||||
}
|
||||
else
|
||||
animlength = st->var1;
|
||||
|
|
Loading…
Reference in a new issue