From aca2302878eb5b36d453e8430e077d8839f1fbef Mon Sep 17 00:00:00 2001 From: Mitchell Richters Date: Thu, 5 Oct 2023 13:26:38 +1100 Subject: [PATCH] - Exhumed: Remove static copy of last yaw input from draw code. --- source/games/exhumed/src/gun.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/source/games/exhumed/src/gun.cpp b/source/games/exhumed/src/gun.cpp index 3b97a33d6..9c23c4927 100644 --- a/source/games/exhumed/src/gun.cpp +++ b/source/games/exhumed/src/gun.cpp @@ -46,7 +46,6 @@ Weapon WeaponInfo[] = { }; static const uint8_t nMinAmmo[] = { 0, 24, 51, 50, 1, 0, 0 }; -static DAngle lastavel; int isRed = 0; @@ -930,8 +929,7 @@ void DrawWeapons(DExhumedPlayer* const pPlayer, double interpfrac) double xPos = 160 + weaponOffsets.first.X; double yPos = 100 + weaponOffsets.first.Y; - double nFlameAng = interpolatedvalue(lastavel, pPlayer->cmd.ucmd.ang.Yaw, interpfrac).Degrees(); - lastavel = pPlayer->cmd.ucmd.ang.Yaw; + double nFlameAng = interpolatedvalue(pPlayer->lastcmd.ucmd.ang.Yaw, pPlayer->cmd.ucmd.ang.Yaw, interpfrac).Degrees(); if (cl_weaponsway) {