Remove an unneccessary check.

This check involved an uninitialized pointer, so it never worked. It
could lead to crashes in some situations, especially when clients tried
to reconnect after a manual map change on the dedictated server.
This commit is contained in:
Yamagi Burmeister 2013-03-10 12:08:58 +01:00
parent e1903dd925
commit d9519cee61

View file

@ -28,9 +28,6 @@
extern cvar_t *hostname;
extern cvar_t *rcon_password;
cvar_t *sv_reconnect_limit; /* minimum seconds between connect messages */
char *SV_StatusString(void);
/*
@ -240,9 +237,7 @@ SVC_DirectConnect(void)
((cl->netchan.qport == qport) ||
(adr.port == cl->netchan.remote_address.port)))
{
if (!NET_IsLocalAddress(adr) &&
((svs.realtime - cl->lastconnect) <
((int)sv_reconnect_limit->value * 1000)))
if (!NET_IsLocalAddress(adr))
{
Com_DPrintf("%s:reconnect rejected : too soon\n",
NET_AdrToString(adr));