mirror of
https://github.com/yquake2/yquake2remaster.git
synced 2024-11-26 06:20:48 +00:00
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:
parent
e1903dd925
commit
d9519cee61
1 changed files with 1 additions and 6 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue