mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-02-05 05:10:55 +00:00
- Blood: Add interpolation repair for kQAVFLARUP
(res_id: 41).
This commit is contained in:
parent
7e3307eb33
commit
dfa3a52fa8
1 changed files with 10 additions and 0 deletions
|
@ -739,6 +739,16 @@ static void qavRepairTileData(QAV* pQAV)
|
||||||
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case kQAVFLARUP:
|
||||||
|
// FLARUP interpolates fine, but the final frame in bringing the flaregun up is lower than the flaregun while idle.
|
||||||
|
// Do linear interpolation from 2nd frame through to last frame, ending with coordinates of FLARIDLE.
|
||||||
|
lastframe = pQAV->nFrames - 1;
|
||||||
|
for (i = 1; i < pQAV->nFrames; i++)
|
||||||
|
{
|
||||||
|
pQAV->frames[i].tiles[0].x = xs_CRoundToInt(pQAV->frames[0].tiles[0].x - (double(pQAV->frames[0].tiles[0].x - 57) / lastframe) * i);
|
||||||
|
pQAV->frames[i].tiles[0].y = xs_CRoundToInt(pQAV->frames[0].tiles[0].y - (double(pQAV->frames[0].tiles[0].y - -30) / lastframe) * i);
|
||||||
|
}
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue