1
0
Fork 0
forked from fte/fteqw

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:
Molgrum 2007-11-23 18:27:30 +00:00
parent ed83fb0fc4
commit 925987dfbe

View file

@ -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)