mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-17 04:50:49 +00:00
- add oq16ang
to weaponhit struct to allow interpolation of security cameras at full precision.
* Improves implementation from f64083bda9
.
This commit is contained in:
parent
843cc94b6f
commit
1fc117341e
3 changed files with 3 additions and 2 deletions
|
@ -2710,7 +2710,7 @@ void processinput_d(int snum)
|
||||||
if (p->newowner >= 0)
|
if (p->newowner >= 0)
|
||||||
{
|
{
|
||||||
i = p->newowner;
|
i = p->newowner;
|
||||||
hittype[i].tempang = p->getang();
|
hittype[i].oq16ang = p->q16ang;
|
||||||
p->posx = sprite[i].x;
|
p->posx = sprite[i].x;
|
||||||
p->posy = sprite[i].y;
|
p->posy = sprite[i].y;
|
||||||
p->posz = sprite[i].z;
|
p->posz = sprite[i].z;
|
||||||
|
|
|
@ -587,7 +587,7 @@ void displayrooms(int snum, int smoothratio)
|
||||||
|
|
||||||
if (p->newowner >= 0)
|
if (p->newowner >= 0)
|
||||||
{
|
{
|
||||||
fixed_t oang = hittype[p->newowner].tempang << FRACBITS;
|
fixed_t oang = hittype[p->newowner].oq16ang;
|
||||||
cang = q16ang(oang + mulscale16(((p->q16ang + dang - oang) & 0x7FFFFFF) - dang, smoothratio));
|
cang = q16ang(oang + mulscale16(((p->q16ang + dang - oang) & 0x7FFFFFF) - dang, smoothratio));
|
||||||
choriz = q16horiz(p->q16horiz + p->q16horizoff);
|
choriz = q16horiz(p->q16horiz + p->q16horizoff);
|
||||||
cposx = p->posx;
|
cposx = p->posx;
|
||||||
|
|
|
@ -25,6 +25,7 @@ struct weaponhit
|
||||||
short timetosleep;
|
short timetosleep;
|
||||||
int floorz, ceilingz, lastvx, lastvy, bposx, bposy, bposz, aflags;
|
int floorz, ceilingz, lastvx, lastvy, bposx, bposy, bposz, aflags;
|
||||||
int temp_data[6];
|
int temp_data[6];
|
||||||
|
fixed_t oq16ang; // for interpolating security cameras in displayrooms() when p->newowner >= 0.
|
||||||
};
|
};
|
||||||
|
|
||||||
struct animwalltype
|
struct animwalltype
|
||||||
|
|
Loading…
Reference in a new issue