Fix "S" extending invincibility timer on hit

This commit is contained in:
James R 2023-06-30 01:23:37 -07:00
parent e03e1aff0c
commit 4c30b84588

View file

@ -2424,7 +2424,7 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
{
// Extend the invincibility if the hit was a direct hit.
if (inflictor == source && source->player->invincibilitytimer &&
!K_PowerUpRemaining(player, POWERUP_SMONITOR))
!K_PowerUpRemaining(source->player, POWERUP_SMONITOR))
{
tic_t kinvextend;