add MF_PAIN fallback just in case

This commit is contained in:
NepDisk 2025-06-02 09:39:49 -04:00
parent 3f98670fa4
commit b0b9d97b1f

View file

@ -619,7 +619,7 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
if (g_tm.thing->player && g_tm.thing->flags & MF_SHOOTABLE && thing->health > 0) if (g_tm.thing->player && g_tm.thing->flags & MF_SHOOTABLE && thing->health > 0)
{ {
UINT32 damagetype = (g_tm.thing->info->mass & DMG_TYPEMASK); UINT32 damagetype = (g_tm.thing->info->mass & DMG_TYPEMASK);
if (!damagetype && thing->flags & MF_FIRE) // BURN! if (!damagetype) // OWWWWW!
damagetype = DMG_NORMAL; damagetype = DMG_NORMAL;
P_DamageMobj(g_tm.thing, thing, thing, 1, damagetype); P_DamageMobj(g_tm.thing, thing, thing, 1, damagetype);
} }
@ -635,7 +635,7 @@ static BlockItReturn_t PIT_CheckThing(mobj_t *thing)
if (thing->player && thing->flags & MF_SHOOTABLE && g_tm.thing->health > 0) if (thing->player && thing->flags & MF_SHOOTABLE && g_tm.thing->health > 0)
{ {
UINT32 damagetype = (g_tm.thing->info->mass & DMG_TYPEMASK); UINT32 damagetype = (g_tm.thing->info->mass & DMG_TYPEMASK);
if (!damagetype && g_tm.thing->flags & MF_FIRE) // BURN! if (!damagetype) // OWWWWW!
damagetype = DMG_NORMAL; damagetype = DMG_NORMAL;
P_DamageMobj(thing, g_tm.thing, g_tm.thing, 1, damagetype); P_DamageMobj(thing, g_tm.thing, g_tm.thing, 1, damagetype);
} }