Move the debt spike fuse initialization from P_ZMovement to P_MobjThinker

slopes + upward momentum = no upward momentum haha
This commit is contained in:
James R 2021-02-16 04:43:20 -08:00
parent 81d162d19c
commit 49bbdd537b

View file

@ -2296,11 +2296,6 @@ boolean P_ZMovement(mobj_t *mo)
{
mom.x = mom.y = 0;
mom.z = -mom.z/2;
if (mo->fuse == 0)
{
mo->fuse = 90;
}
}
else if (mo->flags & MF_MISSILE)
{
@ -6267,6 +6262,12 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
else
A_AttractChase(mobj);
break;
case MT_DEBTSPIKE:
if (mobj->fuse == 0 && P_GetMobjFeet(mobj) == P_GetMobjGround(mobj))
{
mobj->fuse = 90;
}
break;
case MT_EMBLEM:
if (mobj->flags2 & MF2_NIGHTSPULL)
P_NightsItemChase(mobj);