mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-15 20:20:54 +00:00
- SW: Interpolate automap player.
This commit is contained in:
parent
21da658617
commit
fd026edc5c
1 changed files with 5 additions and 6 deletions
|
@ -1927,8 +1927,9 @@ bool GameInterface::DrawAutomapPlayer(int cposx, int cposy, int czoom, int cang,
|
||||||
k = spr->statnum;
|
k = spr->statnum;
|
||||||
if ((k >= 1) && (k <= 8) && (k != 2)) // Interpolate moving
|
if ((k >= 1) && (k <= 8) && (k != 2)) // Interpolate moving
|
||||||
{
|
{
|
||||||
sprx = sprite[j].x;
|
USERp sprusr = User[j];
|
||||||
spry = sprite[j].y;
|
sprx = sprusr->ox + MulScale(spr->x - sprusr->ox, smoothratio, 16);
|
||||||
|
spry = sprusr->oy + MulScale(spr->y - sprusr->oy, smoothratio, 16);
|
||||||
}
|
}
|
||||||
|
|
||||||
switch (spr->cstat & 48)
|
switch (spr->cstat & 48)
|
||||||
|
@ -1936,10 +1937,8 @@ bool GameInterface::DrawAutomapPlayer(int cposx, int cposy, int czoom, int cang,
|
||||||
case 0: // Regular sprite
|
case 0: // Regular sprite
|
||||||
if (Player[p].PlayerSprite == j)
|
if (Player[p].PlayerSprite == j)
|
||||||
{
|
{
|
||||||
ox = sprx - cposx;
|
x1 = sprx - cposx;
|
||||||
oy = spry - cposy;
|
y1 = spry - cposy;
|
||||||
x1 = mulscale16(ox, xvect) - mulscale16(oy, yvect);
|
|
||||||
y1 = mulscale16(oy, xvect2) + mulscale16(ox, yvect2);
|
|
||||||
|
|
||||||
if (((gotsector[i >> 3] & (1 << (i & 7))) > 0) && (czoom > 192))
|
if (((gotsector[i >> 3] & (1 << (i & 7))) > 0) && (czoom > 192))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue