mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-03-01 06:50:59 +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));
|
i = atoi (Cmd_Argv (1));
|
||||||
if (i < 0 || i >= MAX_CLIENTS || svs.clients[i].state != cs_spawned ||
|
if (i < 0 || i >= MAX_CLIENTS
|
||||||
svs.clients[i].spectator) {
|
|| (svs.clients[i].state != cs_spawned
|
||||||
|
&& svs.clients[i].state != cs_server)
|
||||||
|
|| svs.clients[i].spectator) {
|
||||||
SV_ClientPrintf (1, host_client, PRINT_HIGH,
|
SV_ClientPrintf (1, host_client, PRINT_HIGH,
|
||||||
"Invalid client to track\n");
|
"Invalid client to track\n");
|
||||||
host_client->spec_track = 0;
|
host_client->spec_track = 0;
|
||||||
|
|
Loading…
Reference in a new issue