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:
Eukara 2021-01-04 13:44:42 +00:00
parent d8e001b336
commit 4a2c74ee83
1 changed files with 2 additions and 0 deletions

View File

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