From 617dc8001cc587d1f877c1abe5b319d285d78354 Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Sat, 2 Jan 2021 19:50:02 +1100 Subject: [PATCH] - Exhumed: Fix automap player smoothness. --- source/exhumed/src/map.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/source/exhumed/src/map.cpp b/source/exhumed/src/map.cpp index 66bff6731..94c2ca368 100644 --- a/source/exhumed/src/map.cpp +++ b/source/exhumed/src/map.cpp @@ -81,11 +81,9 @@ bool GameInterface::DrawAutomapPlayer(int x, int y, int z, int a, double const s { int nPSprite = PlayerList[i].nSprite; spritetype* pSprite = &sprite[nPSprite]; - int px = pSprite->x - x; - int py = pSprite->y - y; + int x1 = pSprite->x - x; + int y1 = pSprite->y - y; int pa = (pSprite->ang - a) & 2047; - int x1 = dmulscale16(px, nCos, -py, nSin); - int y1 = dmulscale16(py, nCos2, px, nSin2); if (i == nLocalPlayer)// || gGameOptions.nGameType == 1) { int nTile = pSprite->picnum;