Security measures to prevent cheating with instant-join.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@2795 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
ed83fb0fc4
commit
925987dfbe
1 changed files with 6 additions and 0 deletions
|
@ -3006,9 +3006,15 @@ void CL_ProcessUserInfo (int slot, player_info_t *player)
|
||||||
else
|
else
|
||||||
player->spectator = false;
|
player->spectator = false;
|
||||||
|
|
||||||
|
// If it's us
|
||||||
if (slot == cl.playernum[0] && player->name[0])
|
if (slot == cl.playernum[0] && player->name[0])
|
||||||
|
{
|
||||||
cl.spectator = player->spectator;
|
cl.spectator = player->spectator;
|
||||||
|
|
||||||
|
// Update the rules since spectators can bypass everything but players can't
|
||||||
|
CL_CheckServerInfo();
|
||||||
|
}
|
||||||
|
|
||||||
player->model = NULL;
|
player->model = NULL;
|
||||||
|
|
||||||
if (cls.state == ca_active)
|
if (cls.state == ca_active)
|
||||||
|
|
Loading…
Reference in a new issue