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:
parent
3444d3a6a2
commit
82b17eb7b9
1 changed files with 19 additions and 0 deletions
19
src/p_mobj.c
19
src/p_mobj.c
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue