mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Don't try to soften removed/null traps
This commit is contained in:
parent
ec70f62f36
commit
8c212a194c
1 changed files with 5 additions and 2 deletions
|
|
@ -7498,10 +7498,13 @@ mobj_t *K_ThrowKartItemEx(player_t *player, boolean missile, mobjtype_t mapthing
|
||||||
}
|
}
|
||||||
|
|
||||||
// Missiles set as traps inflict a nocollide stumble
|
// Missiles set as traps inflict a nocollide stumble
|
||||||
|
if (mo && !P_MobjWasRemoved(mo))
|
||||||
|
{
|
||||||
if (dir < 0 && (mapthing == MT_ORBINAUT || mapthing == MT_ORBINAUT_SHIELD || mapthing == MT_JAWZ || mapthing == MT_JAWZ_SHIELD || mapthing == MT_GACHABOM))
|
if (dir < 0 && (mapthing == MT_ORBINAUT || mapthing == MT_ORBINAUT_SHIELD || mapthing == MT_JAWZ || mapthing == MT_JAWZ_SHIELD || mapthing == MT_GACHABOM))
|
||||||
{
|
{
|
||||||
mo->cvmem = 1;
|
mo->cvmem = 1;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return mo;
|
return mo;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue