mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Remove follower on player departure
This commit is contained in:
parent
fa5aa408be
commit
35a3a9db4a
1 changed files with 5 additions and 0 deletions
|
|
@ -2487,6 +2487,11 @@ void CL_ClearPlayer(INT32 playernum)
|
|||
{
|
||||
int i;
|
||||
|
||||
if (players[playernum].follower)
|
||||
{
|
||||
K_RemoveFollower(&players[playernum]);
|
||||
}
|
||||
|
||||
if (players[playernum].mo)
|
||||
{
|
||||
P_RemoveMobj(players[playernum].mo);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue