mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-15 01:01:33 +00:00
Fix models interpolating to frame 0 from a same-sprite2 FF_SPR2ENDSTATE state
This commit is contained in:
parent
d9395b0a73
commit
99ad188263
1 changed files with 6 additions and 1 deletions
|
@ -1533,7 +1533,12 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
|
|||
{
|
||||
nextFrame = (spr->mobj->frame & FF_FRAMEMASK) + 1;
|
||||
if (nextFrame >= mod)
|
||||
nextFrame = 0;
|
||||
{
|
||||
if (spr->mobj->state->frame & FF_SPR2ENDSTATE)
|
||||
nextFrame--;
|
||||
else
|
||||
nextFrame = 0;
|
||||
}
|
||||
if (frame || !(spr->mobj->state->frame & FF_SPR2ENDSTATE))
|
||||
nextFrame = md2->model->spr2frames[spr2].frames[nextFrame];
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue