Skip to content

Commit

Permalink
Check for MBF21 flag WPF_NOAUTOFIRE
Browse files Browse the repository at this point in the history
  • Loading branch information
bradharding committed Nov 1, 2024
1 parent e8c4ea3 commit 3fa00eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/p_pspr.c
Original file line number Diff line number Diff line change
Expand Up @@ -293,7 +293,7 @@ void A_WeaponReady(mobj_t *actor, player_t *player, pspdef_t *psp)
// the missile launcher and BFG do not auto fire
if (player->cmd.buttons & BT_ATTACK)
{
if (!player->attackdown || (readyweapon != wp_missile && readyweapon != wp_bfg))
if (!player->attackdown || !(weaponinfo[readyweapon].flags & WPF_NOAUTOFIRE))
{
player->attackdown = true;
P_FireWeapon();
Expand Down

0 comments on commit 3fa00eb

Please sign in to comment.