mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-01-13 18:22:18 +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.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);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue