SPB explosion ignores Grow

This commit is contained in:
James R 2024-03-02 21:11:24 -08:00
parent 00643195a5
commit cd081ecc47

View file

@ -2935,7 +2935,9 @@ boolean P_DamageMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, INT32 da
{
sfx = sfx_invind;
}
else if (K_IsBigger(target, inflictor) == true)
else if (K_IsBigger(target, inflictor) == true &&
// SPB bypasses grow (K_IsBigger handles NULL check)
(type != DMG_EXPLODE || inflictor->type != MT_SPBEXPLOSION || !inflictor->movefactor))
{
sfx = sfx_grownd;
}