diff options
author | Andrey Nazarov <skuller@skuller.net> | 2011-02-23 19:29:06 +0300 |
---|---|---|
committer | Andrey Nazarov <skuller@skuller.net> | 2011-02-23 19:29:06 +0300 |
commit | bde7623f497b9624585db62a40459f096a307c1e (patch) | |
tree | 65a2e6e49aa20fde57bbe865771e1c709ebe8ccb /src/cl_main.c | |
parent | e7b4367c5b243d9210fbd5df957fce6623dc40f0 (diff) |
Make CL_Disconnect receive only error type as an argument.
Diffstat (limited to 'src/cl_main.c')
-rw-r--r-- | src/cl_main.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/cl_main.c b/src/cl_main.c index 25bae16..8d90b06 100644 --- a/src/cl_main.c +++ b/src/cl_main.c @@ -450,7 +450,7 @@ usage: NET_Config( NET_CLIENT ); - CL_Disconnect( ERR_DISCONNECT, NULL ); + CL_Disconnect( ERR_DISCONNECT ); cls.serverAddress = address; cls.serverProtocol = protocol; @@ -486,7 +486,7 @@ static void CL_PassiveConnect_f( void ) { NET_Config( NET_CLIENT ); - CL_Disconnect( ERR_DISCONNECT, NULL ); + CL_Disconnect( ERR_DISCONNECT ); if( !NET_GetAddress( NS_CLIENT, &address ) ) { return; @@ -585,7 +585,7 @@ Sends a disconnect message to the server This is also called on Com_Error, so it shouldn't cause any errors ===================== */ -void CL_Disconnect( error_type_t type, const char *text ) { +void CL_Disconnect( error_type_t type ) { if( !cls.state ) { return; } @@ -1006,7 +1006,7 @@ The server is changing levels */ static void CL_Reconnect_f( void ) { if( cls.state >= ca_precached ) { - CL_Disconnect( ERR_DISCONNECT, NULL ); + CL_Disconnect( ERR_DISCONNECT ); } if( cls.state >= ca_connected ) { @@ -3260,7 +3260,7 @@ void CL_Shutdown( void ) { return; } - CL_Disconnect( ERR_DISCONNECT, NULL ); + CL_Disconnect( ERR_DISCONNECT ); #if USE_ZLIB inflateEnd( &cls.z ); |