mirror of
https://git.do.srb2.org/STJr/SRB2.git
synced 2024-11-18 02:21:47 +00:00
Merge branch 'md2_interpfix' into 'master'
(re-)fix MD2 interpoleration. See merge request STJr/SRB2Internal!128
This commit is contained in:
commit
7d15afe6fb
1 changed files with 2 additions and 2 deletions
|
@ -1321,7 +1321,7 @@ void HWR_DrawMD2(gr_vissprite_t *spr)
|
|||
frame = 0;
|
||||
buff = md2->model->glCommandBuffer;
|
||||
curr = &md2->model->frames[md2->model->spr2frames[spr2*2] + frame];
|
||||
if (cv_grmd2.value == 1 && tics <= INTERPOLERATION_LIMIT)
|
||||
if (cv_grmd2.value == 1 && tics <= durs && tics <= INTERPOLERATION_LIMIT)
|
||||
{
|
||||
if (durs > INTERPOLERATION_LIMIT)
|
||||
durs = INTERPOLERATION_LIMIT;
|
||||
|
@ -1344,7 +1344,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 && tics <= INTERPOLERATION_LIMIT)
|
||||
if (cv_grmd2.value == 1 && tics <= durs && tics <= INTERPOLERATION_LIMIT)
|
||||
{
|
||||
if (durs > INTERPOLERATION_LIMIT)
|
||||
durs = INTERPOLERATION_LIMIT;
|
||||
|
|
Loading…
Reference in a new issue