summaryrefslogtreecommitdiff
path: root/src/client
diff options
context:
space:
mode:
authorZack Middleton <zturtleman@gmail.com>2012-11-24 20:55:47 +0000
committerTim Angus <tim@ngus.net>2013-01-12 21:24:51 +0000
commitcf1af69fa0bf6cabbbdb25ed39a13e6592e7f571 (patch)
tree936a8d11556c96fe0f39e999ab0c639d0460ebd0 /src/client
parentf6d07ac83a9a232bb75396485f7ab78890fefe2d (diff)
Remove unused function CL_DisconnectPacket. Pointed out by Ensiform.
Diffstat (limited to 'src/client')
-rw-r--r--src/client/cl_main.c32
1 files changed, 0 insertions, 32 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index 969f39d2..942c99f0 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -2358,38 +2358,6 @@ void CL_CheckForResend( void ) {
}
}
-/*
-===================
-CL_DisconnectPacket
-
-Sometimes the server can drop the client and the netchan based
-disconnect can be lost. If the client continues to send packets
-to the server, the server will send out of band disconnect packets
-to the client so it doesn't have to wait for the full timeout period.
-===================
-*/
-void CL_DisconnectPacket( netadr_t from ) {
- if ( clc.state < CA_AUTHORIZING ) {
- return;
- }
-
- // if not from our server, ignore it
- if ( !NET_CompareAdr( from, clc.netchan.remoteAddress ) ) {
- return;
- }
-
- // if we have received packets within three seconds, ignore it
- // (it might be a malicious spoof)
- if ( cls.realtime - clc.lastPacketTime < 3000 ) {
- return;
- }
-
- // drop the connection
- Com_Printf( "Server disconnected for unknown reason\n" );
- Cvar_Set("com_errorMessage", "Server disconnected for unknown reason\n" );
- CL_Disconnect( qtrue );
-}
-
/*
===================