mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Fix models interpolating to frame 0 from a same-sprite2 FF_SPR2ENDSTATE state
This commit is contained in:
parent
1289e08887
commit
c331bac825
1 changed files with 6 additions and 1 deletions
|
|
@ -1586,7 +1586,12 @@ boolean HWR_DrawModel(gl_vissprite_t *spr)
|
|||
{
|
||||
nextFrame = (spr->mobj->frame & FF_FRAMEMASK) + 1;
|
||||
if (nextFrame >= mod)
|
||||
{
|
||||
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…
Add table
Reference in a new issue