Allow mentalsonic to affect things targeting players

This commit is contained in:
AJ Martinez 2024-01-23 04:55:32 -07:00
parent 0c6820b350
commit 4b245b7a85

View file

@ -5984,7 +5984,7 @@ void K_Squish(mobj_t *mo)
mo->spriteyscale = mo->spriteyscale =
FixedDiv(FRACUNIT, mo->spritexscale); FixedDiv(FRACUNIT, mo->spritexscale);
if (cv_mentalsonic.value && mo->type == MT_PLAYER) if (cv_mentalsonic.value && (mo->type == MT_PLAYER || (!P_MobjWasRemoved(mo->target) && mo->target->type == MT_PLAYER)))
mo->spriteyscale *= 2; mo->spriteyscale *= 2;
} }