Let objects receive damage while in hitlag

This commit is contained in:
James R 2021-12-29 22:58:21 -08:00 committed by SinnamonLat
parent 5192c56d13
commit f0e33d9a36

View file

@ -1844,8 +1844,10 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
if (!(target->flags & MF_SHOOTABLE)) if (!(target->flags & MF_SHOOTABLE))
return false; // shouldn't happen... return false; // shouldn't happen...
#if 0
if (!(damagetype & DMG_DEATHMASK) && target->hitlag > 0) if (!(damagetype & DMG_DEATHMASK) && target->hitlag > 0)
return false; return false;
#endif
} }
if (target->flags2 & MF2_SKULLFLY) if (target->flags2 & MF2_SKULLFLY)
@ -1928,7 +1930,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
if (combo == false) if (combo == false)
{ {
if (player->flashing > 0) if (player->mo->hitlag == 0 && player->flashing > 0)
{ {
// Post-hit invincibility // Post-hit invincibility
K_DoInstashield(player); K_DoInstashield(player);