From c7e3aa4b466e3de511f33bdcee2c0e9005e735ef Mon Sep 17 00:00:00 2001 From: sirlemonhead Date: Thu, 28 Nov 2019 00:30:21 +0000 Subject: [PATCH] Changed the order of some variable assignment in ThrowGrenade() to match disassembly. Don't think it really makes a difference? --- source/exhumed/src/grenade.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/source/exhumed/src/grenade.cpp b/source/exhumed/src/grenade.cpp index 777be645e..682b64ff3 100644 --- a/source/exhumed/src/grenade.cpp +++ b/source/exhumed/src/grenade.cpp @@ -105,16 +105,16 @@ int ThrowGrenade(short nPlayer, int edx, int ebx, int ecx, int push1) short nGrenadeSprite = GrenadeList[nGrenade].nSprite; short nPlayerSprite = PlayerList[nPlayer].nSprite; - mychangespritesect(nGrenadeSprite, nPlayerViewSect[nPlayer]); - short nAngle = sprite[nPlayerSprite].ang; + mychangespritesect(nGrenadeSprite, nPlayerViewSect[nPlayer]); + sprite[nGrenadeSprite].x = sprite[nPlayerSprite].x; sprite[nGrenadeSprite].y = sprite[nPlayerSprite].y; sprite[nGrenadeSprite].z = sprite[nPlayerSprite].z; if (nAngle < 0) { - nAngle = sprite[nPlayerSprite].ang; // TODO - checkme + nAngle = sprite[nPlayerSprite].ang; } sprite[nGrenadeSprite].cstat &= 0x7FFF;