mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-12-09 09:33:10 +00:00
Reset party size
This commit is contained in:
parent
70bb244dd6
commit
e593b5297a
1 changed files with 4 additions and 2 deletions
|
|
@ -2652,6 +2652,8 @@ void CL_ClearPlayer(INT32 playernum)
|
|||
}
|
||||
|
||||
splitscreen_invitations[playernum] = -1;
|
||||
splitscreen_party_size[playernum] = 0;
|
||||
splitscreen_original_party_size[playernum] = 0;
|
||||
|
||||
memset(&players[playernum], 0, sizeof (player_t));
|
||||
}
|
||||
|
|
@ -2728,6 +2730,8 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason)
|
|||
(void)reason;
|
||||
#endif
|
||||
|
||||
G_RemovePartyMember(playernum);
|
||||
|
||||
// Reset player data
|
||||
CL_ClearPlayer(playernum);
|
||||
|
||||
|
|
@ -2745,8 +2749,6 @@ void CL_RemovePlayer(INT32 playernum, INT32 reason)
|
|||
RemoveAdminPlayer(playernum); // don't stay admin after you're gone
|
||||
}
|
||||
|
||||
G_RemovePartyMember(playernum);
|
||||
|
||||
if (playernum == g_localplayers[0] && !demo.playback)
|
||||
g_localplayers[0] = consoleplayer; // don't look through someone's view who isn't there
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue