mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-25 19:43:22 +00:00
Move the debt spike fuse initialization from P_ZMovement to P_MobjThinker
slopes + upward momentum = no upward momentum haha
This commit is contained in:
parent
81d162d19c
commit
49bbdd537b
1 changed files with 6 additions and 5 deletions
11
src/p_mobj.c
11
src/p_mobj.c
|
|
@ -2296,11 +2296,6 @@ boolean P_ZMovement(mobj_t *mo)
|
||||||
{
|
{
|
||||||
mom.x = mom.y = 0;
|
mom.x = mom.y = 0;
|
||||||
mom.z = -mom.z/2;
|
mom.z = -mom.z/2;
|
||||||
|
|
||||||
if (mo->fuse == 0)
|
|
||||||
{
|
|
||||||
mo->fuse = 90;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
else if (mo->flags & MF_MISSILE)
|
else if (mo->flags & MF_MISSILE)
|
||||||
{
|
{
|
||||||
|
|
@ -6267,6 +6262,12 @@ static boolean P_MobjRegularThink(mobj_t *mobj)
|
||||||
else
|
else
|
||||||
A_AttractChase(mobj);
|
A_AttractChase(mobj);
|
||||||
break;
|
break;
|
||||||
|
case MT_DEBTSPIKE:
|
||||||
|
if (mobj->fuse == 0 && P_GetMobjFeet(mobj) == P_GetMobjGround(mobj))
|
||||||
|
{
|
||||||
|
mobj->fuse = 90;
|
||||||
|
}
|
||||||
|
break;
|
||||||
case MT_EMBLEM:
|
case MT_EMBLEM:
|
||||||
if (mobj->flags2 & MF2_NIGHTSPULL)
|
if (mobj->flags2 & MF2_NIGHTSPULL)
|
||||||
P_NightsItemChase(mobj);
|
P_NightsItemChase(mobj);
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue