Merge branch 'md2-smoother-interpolation' into 'master'

Smoother MD2 interpolation

See merge request STJr/SRB2!224
This commit is contained in:
Monster Iestyn 2018-07-06 14:38:37 -04:00
commit 130de10f97

View file

@ -1354,7 +1354,7 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
frame = (spr->mobj->frame & FF_FRAMEMASK) % md2->model->header.numFrames;
buff = md2->model->glCommandBuffer;
curr = &md2->model->frames[frame];
if (cv_grmd2.value == 1)
if (cv_grmd2.value == 1 && tics <= durs)
{
// frames are handled differently for states with FF_ANIMATE, so get the next frame differently for the interpolation
if (spr->mobj->frame & FF_ANIMATE)