mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2026-04-27 20:41:46 +00:00
Properly detach rocket sneakers when the player dies
This includes both death pits and spectating
This commit is contained in:
parent
a58ae6c472
commit
47ce32cfc9
1 changed files with 3 additions and 1 deletions
|
|
@ -1015,7 +1015,9 @@ void P_KillMobj(mobj_t *target, mobj_t *inflictor, mobj_t *source, UINT8 damaget
|
||||||
P_SetTarget(&target->target->hnext, NULL);
|
P_SetTarget(&target->target->hnext, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//
|
// Above block does not clean up rocket sneakers when a player dies, so we need to do it here target->target is null when using rocket sneakers
|
||||||
|
if (target->player)
|
||||||
|
K_DropRocketSneaker(target->player);
|
||||||
|
|
||||||
// Let EVERYONE know what happened to a player! 01-29-2002 Tails
|
// Let EVERYONE know what happened to a player! 01-29-2002 Tails
|
||||||
if (target->player && !target->player->spectator)
|
if (target->player && !target->player->spectator)
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue