From a7687a7fda485ebc9d8c577d1579c74d8938821d Mon Sep 17 00:00:00 2001 From: Adam Olsen Date: Wed, 12 Dec 2001 13:31:04 +0000 Subject: [PATCH] - tweak the description string for cl_timeframes - when getting a new connection request and searching for matching connections, treat cs_zombie the same as cs_free (ignore it), so that we don't attempt to drop it twice. --- qw/source/cl_main.c | 3 ++- qw/source/sv_main.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/qw/source/cl_main.c b/qw/source/cl_main.c index fd823bf1c..c5d4f594a 100644 --- a/qw/source/cl_main.c +++ b/qw/source/cl_main.c @@ -1319,7 +1319,8 @@ CL_Init_Cvars (void) "something to do with client authentication." "No description"); cl_timeframes = Cvar_Get ("cl_timeframes", "0", CVAR_ARCHIVE, NULL, - "write timestamps for every frame"); + "write timestamps for every frame of a " + "timedemo"); // info mirrors cl_name = Cvar_Get ("name", "unnamed", CVAR_ARCHIVE | CVAR_USERINFO, Cvar_Info, "Player name"); diff --git a/qw/source/sv_main.c b/qw/source/sv_main.c index 822d6f7f3..9a0527672 100644 --- a/qw/source/sv_main.c +++ b/qw/source/sv_main.c @@ -800,7 +800,7 @@ SVC_DirectConnect (void) // if there is allready a slot for this ip, drop it for (i = 0, cl = svs.clients; i < MAX_CLIENTS; i++, cl++) { - if (cl->state == cs_free) + if (cl->state <= cs_zombie) continue; if (NET_CompareBaseAdr (adr, cl->netchan.remote_address) && (cl->netchan.qport == qport