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,9 +7498,12 @@ mobj_t *K_ThrowKartItemEx(player_t *player, boolean missile, mobjtype_t mapthing
|
|||
}
|
||||
|
||||
// Missiles set as traps inflict a nocollide stumble
|
||||
if (dir < 0 && (mapthing == MT_ORBINAUT || mapthing == MT_ORBINAUT_SHIELD || mapthing == MT_JAWZ || mapthing == MT_JAWZ_SHIELD || mapthing == MT_GACHABOM))
|
||||
if (mo && !P_MobjWasRemoved(mo))
|
||||
{
|
||||
mo->cvmem = 1;
|
||||
if (dir < 0 && (mapthing == MT_ORBINAUT || mapthing == MT_ORBINAUT_SHIELD || mapthing == MT_JAWZ || mapthing == MT_JAWZ_SHIELD || mapthing == MT_GACHABOM))
|
||||
{
|
||||
mo->cvmem = 1;
|
||||
}
|
||||
}
|
||||
|
||||
return mo;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue