From 0d438e255daf092851b03f73246b38f41c6db2a4 Mon Sep 17 00:00:00 2001 From: Bill Currie Date: Mon, 25 Aug 2003 01:11:23 +0000 Subject: [PATCH] allow server clients to be tracked while spectating --- qw/source/sv_user.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/qw/source/sv_user.c b/qw/source/sv_user.c index 943c3d1b0..b00eee56c 100644 --- a/qw/source/sv_user.c +++ b/qw/source/sv_user.c @@ -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;