slightly better version.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@4343 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2013-05-07 19:39:35 +00:00
parent f293ffa8a5
commit 029b630ab7
1 changed files with 9 additions and 6 deletions

View File

@ -2380,14 +2380,17 @@ void SV_WritePlayersToClient (client_t *client, client_frame_t *frame, edict_t *
if (client->spec_track > 0 && client->spec_track <= sv.allocated_client_slots)
s = &svs.clients[client->spec_track-1];
else if (client->spec_track || !s->state != cs_spawned)
{
Con_Printf("Client was spectating now-invalid entity: %i\n", client->spec_track);
client->spec_track = 0;
s = NULL;
}
else
s = NULL;
if (!s || s->state != cs_spawned)
{
if (client->spec_track)
{
Con_Printf("Client was spectating now-invalid entity: %i\n", client->spec_track);
client->spec_track = 0;
}
s = NULL;
}
if (s)
{