- 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.
This commit is contained in:
Adam Olsen 2001-12-12 13:31:04 +00:00
parent 93bd170770
commit a7687a7fda
2 changed files with 3 additions and 2 deletions

View file

@ -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");

View file

@ -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