mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-22 20:21:26 +00:00
- fixed A_FireCGun.
This commit is contained in:
parent
a638cfbd6e
commit
4201c4fbb5
1 changed files with 6 additions and 3 deletions
|
@ -71,9 +71,12 @@ extend class StateProvider
|
||||||
// Removed most of the mess that was here in the C++ code because SetSafeFlash already does some thorough validation.
|
// Removed most of the mess that was here in the C++ code because SetSafeFlash already does some thorough validation.
|
||||||
State atk = weap.FindState('Fire');
|
State atk = weap.FindState('Fire');
|
||||||
let psp = player.GetPSprite(PSP_WEAPON);
|
let psp = player.GetPSprite(PSP_WEAPON);
|
||||||
if (psp) State cur = psp.CurState;
|
if (psp)
|
||||||
int theflash = atk == cur? 0:1;
|
{
|
||||||
player.SetSafeFlash(weap, flash, theflash);
|
State cur = psp.CurState;
|
||||||
|
int theflash = atk == cur? 0:1;
|
||||||
|
player.SetSafeFlash(weap, flash, theflash);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
player.mo.PlayAttacking2 ();
|
player.mo.PlayAttacking2 ();
|
||||||
|
|
Loading…
Reference in a new issue