mirror of
https://github.com/KartKrewDev/RingRacers.git
synced 2025-10-30 08:01:28 +00:00
Attempt fix for players being able to get admin
Tyron said there is an "outstanding base game bug where an authenticated player can ghost and a new player will log in on their node, inheriting admin" ... wow that's terrifying! Let's reset admin for every instance of CL_ClearPlayer instead of only in CL_RemovePlayer.
This commit is contained in:
parent
04ec0b1ffd
commit
55cbc41017
1 changed files with 2 additions and 5 deletions
|
|
@ -2291,6 +2291,8 @@ void CL_ClearPlayer(INT32 playernum)
|
|||
splitscreen_original_party_size[playernum] = 0;
|
||||
|
||||
memset(&players[playernum], 0, sizeof (player_t));
|
||||
|
||||
RemoveAdminPlayer(playernum); // don't stay admin after you're gone
|
||||
}
|
||||
|
||||
//
|
||||
|
|
@ -2348,11 +2350,6 @@ void CL_RemovePlayer(INT32 playernum, kickreason_t reason)
|
|||
|
||||
player_name_changes[playernum] = 0;
|
||||
|
||||
if (IsPlayerAdmin(playernum))
|
||||
{
|
||||
RemoveAdminPlayer(playernum); // don't stay admin after you're gone
|
||||
}
|
||||
|
||||
LUA_InvalidatePlayer(&players[playernum]);
|
||||
|
||||
K_CheckBumpers();
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue