missed recoil for MBF21 codepointers (#694)

This commit is contained in:
Roman Fomin 2022-08-09 20:31:49 +07:00 committed by GitHub
parent 1a1ff34159
commit acdec29c96
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1212,6 +1212,8 @@ void A_WeaponBulletAttack(player_t *player, pspdef_t *psp)
P_LineAttack(player->mo, angle, MISSILERANGE, slope, damage);
}
A_Recoil(player);
}
//
@ -1259,6 +1261,8 @@ void A_WeaponMeleeAttack(player_t *player, pspdef_t *psp)
// attack, dammit!
P_LineAttack(player->mo, angle, range, slope, damage);
A_Recoil(player);
// missed? ah, welp.
if (!linetarget)
return;