mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-28 18:00:40 +00:00
- Duke: Interpolate automap player.
This commit is contained in:
parent
be12da6bfb
commit
21da658617
1 changed files with 5 additions and 7 deletions
|
@ -557,13 +557,11 @@ bool GameInterface::DrawAutomapPlayer(int cposx, int cposy, int czoom, int cang,
|
||||||
|
|
||||||
for (p = connecthead; p >= 0; p = connectpoint2[p])
|
for (p = connecthead; p >= 0; p = connectpoint2[p])
|
||||||
{
|
{
|
||||||
auto pspr = &ps[p].GetActor()->s;
|
auto act = ps[p].GetActor();
|
||||||
ox = pspr->x - cposx;
|
auto pspr = &act->s;
|
||||||
oy = pspr->y - cposy;
|
x1 = act->bposx + MulScale(pspr->x - act->bposx, smoothratio, 16) - cposx;
|
||||||
daang = (pspr->ang - cang) & 2047;
|
y1 = act->bposy + MulScale(pspr->y - act->bposy, smoothratio, 16) - cposy;
|
||||||
|
daang = (act->tempang + MulScale(((pspr->ang + 1024 - act->tempang) & 2047) - 1024, smoothratio, 16) - cang) & 2047;
|
||||||
x1 = mulscale(ox, xvect, 16) - mulscale(oy, yvect, 16);
|
|
||||||
y1 = mulscale(oy, xvect2, 16) + mulscale(ox, yvect2, 16);
|
|
||||||
|
|
||||||
if (p == screenpeek || ud.coop == 1)
|
if (p == screenpeek || ud.coop == 1)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue