Skip to content

Commit 3fa00eb

Browse files
committed
Check for MBF21 flag WPF_NOAUTOFIRE
1 parent e8c4ea3 commit 3fa00eb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/p_pspr.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -293,7 +293,7 @@ void A_WeaponReady(mobj_t *actor, player_t *player, pspdef_t *psp)
293293
// the missile launcher and BFG do not auto fire
294294
if (player->cmd.buttons & BT_ATTACK)
295295
{
296-
if (!player->attackdown || (readyweapon != wp_missile && readyweapon != wp_bfg))
296+
if (!player->attackdown || !(weaponinfo[readyweapon].flags & WPF_NOAUTOFIRE))
297297
{
298298
player->attackdown = true;
299299
P_FireWeapon();

0 commit comments

Comments
 (0)