- fixed A_FireCGun.

This commit is contained in:
Christoph Oelckers 2020-03-11 19:47:23 +01:00
parent a638cfbd6e
commit 4201c4fbb5

View file

@ -71,11 +71,14 @@ extend class StateProvider
// Removed most of the mess that was here in the C++ code because SetSafeFlash already does some thorough validation.
State atk = weap.FindState('Fire');
let psp = player.GetPSprite(PSP_WEAPON);
if (psp) State cur = psp.CurState;
if (psp)
{
State cur = psp.CurState;
int theflash = atk == cur? 0:1;
player.SetSafeFlash(weap, flash, theflash);
}
}
}
player.mo.PlayAttacking2 ();
GunShot (!player.refire, "BulletPuff", BulletSlope ());