Changed the order of some variable assignment in ThrowGrenade() to match disassembly. Don't think it really makes a difference?

This commit is contained in:
sirlemonhead 2019-11-28 00:30:21 +00:00 committed by Christoph Oelckers
parent 2dddf19ce7
commit c7e3aa4b46

View file

@ -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;