mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-30 08:00:51 +00:00
allow server clients to be tracked while spectating
This commit is contained in:
parent
b01d4d4589
commit
0d438e255d
1 changed files with 4 additions and 2 deletions
|
@ -1021,8 +1021,10 @@ SV_PTrack_f (void *unused)
|
|||
}
|
||||
|
||||
i = atoi (Cmd_Argv (1));
|
||||
if (i < 0 || i >= MAX_CLIENTS || svs.clients[i].state != cs_spawned ||
|
||||
svs.clients[i].spectator) {
|
||||
if (i < 0 || i >= MAX_CLIENTS
|
||||
|| (svs.clients[i].state != cs_spawned
|
||||
&& svs.clients[i].state != cs_server)
|
||||
|| svs.clients[i].spectator) {
|
||||
SV_ClientPrintf (1, host_client, PRINT_HIGH,
|
||||
"Invalid client to track\n");
|
||||
host_client->spec_track = 0;
|
||||
|
|
Loading…
Reference in a new issue