mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-23 04:11:53 +00:00
Check to make sure we don't send lightstyle updates to unsuspecting fake-clients/bots
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5799 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
d8e001b336
commit
4a2c74ee83
1 changed files with 2 additions and 0 deletions
|
@ -4705,6 +4705,8 @@ void QCBUILTIN PF_applylightstyle(int style, const char *val, vec3_t rgb)
|
|||
|
||||
for (j=0, client = svs.clients ; j<sv.allocated_client_slots ; j++, client++)
|
||||
{
|
||||
if (client->protocol == SCP_BAD)
|
||||
continue;
|
||||
if (client->controller)
|
||||
continue;
|
||||
if (client->state == cs_spawned)
|
||||
|
|
Loading…
Reference in a new issue