Ifdef nextFrame handling under USE_MODEL_NEXTFRAME

This commit is contained in:
mazmazz committed 2019-01-07 04:30:40 -05:00
1 parent 6ed896d462
commit 09629f092f
2 files changed
+5

No files matched your search

+3
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
+2
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);