aboutsummaryrefslogtreecommitdiffstats
path: root/code/client
diff options
context:
space:
mode:
Diffstat (limited to 'code/client')
-rw-r--r--code/client/cl_main.c4
1 files changed, 4 insertions, 0 deletions
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 ) {