From 590018b5cd476a4f2ee8963f5342d0a6c5adcdcb Mon Sep 17 00:00:00 2001 From: thilo Date: Thu, 4 May 2006 13:59:58 +0000 Subject: - Added SV_Shutdown to Linux signal handler to ensure that clients don't hang when server gets killed, as suggested by Tony J. White - Added newline to final message sent to clients. - Added check for whether client is running at all before CL_Shutdown runs through. git-svn-id: svn://svn.icculus.org/quake3/trunk@738 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_main.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'code/client') diff --git a/code/client/cl_main.c b/code/client/cl_main.c index 8f9cbae..7b207e5 100644 --- a/code/client/cl_main.c +++ b/code/client/cl_main.c @@ -2564,6 +2564,10 @@ CL_Shutdown void CL_Shutdown( void ) { static qboolean recursive = qfalse; + // check whether the client is running at all. + if(!(com_cl_running && com_cl_running->integer)) + return; + Com_Printf( "----- CL_Shutdown -----\n" ); if ( recursive ) { -- cgit v1.2.3