Ifdef nextFrame handling under USE_MODEL_NEXTFRAME

This commit is contained in:
mazmazz 2018-12-19 10:33:13 -05:00
parent 6ed896d462
commit 09629f092f
2 changed files with 5 additions and 0 deletions

View File

@ -106,6 +106,9 @@ typedef struct
#define USE_FTRANSFORM_ANGLEZ
#define USE_FTRANSFORM_MIRROR
// Vanilla features
#define USE_MODEL_NEXTFRAME
typedef struct
{
FLOAT x,y,z; // position

View File

@ -1000,6 +1000,7 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
//FIXME: this is not yet correct
frame = (spr->mobj->frame & FF_FRAMEMASK) % md2->model->meshes[0].numFrames;
#ifdef USE_MODEL_NEXTFRAME
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
@ -1021,6 +1022,7 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
}
}
}
#endif
//Hurdler: it seems there is still a small problem with mobj angle
p.x = FIXED_TO_FLOAT(spr->mobj->x);