mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2025-01-24 18:21:34 +00:00
Fix regression in P_SetupStateAnimation
This commit is contained in:
parent
c4dbf42ded
commit
a531499b8f
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