Fix crumbling FOF in Ancient Tomb (and missing flags for pushables)

What a fucking ride... I spent an hour stepping through T_StartCrumble
and P_CheckSector and whatnot only to realize the gargoyle isn't supposed to
have MF_PUSHABLE because it has the ambush flag set
This commit is contained in:
GenericHeroGuy 2025-02-06 02:52:43 +01:00 committed by NepDisk
parent 3444d3a6a2
commit 82b17eb7b9

View file

@ -12049,6 +12049,25 @@ static boolean P_SetupSpawnedMapThing(mapthing_t *mthing, mobj_t *mobj, boolean
if (mthing->args[1]) // No egg trap for this boss
mobj->flags2 |= MF2_BOSSNOTRAP;
}
if (mobj->flags & MF_PUSHABLE)
{
switch (mthing->args[0])
{
case TMP_NORMAL:
default:
break;
case TMP_SLIDE:
mobj->flags2 |= MF2_SLIDEPUSH;
mobj->flags |= MF_BOUNCE;
break;
case TMP_IMMOVABLE:
mobj->flags &= ~MF_PUSHABLE;
break;
case TMP_CLASSIC:
mobj->flags2 |= MF2_CLASSICPUSH;
break;
}
}
return true;
}