From 40298cefb628e0d763d11b76821672ead576c7d5 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Tue, 14 Jun 2022 03:30:10 +0300 Subject: [PATCH] engine: client: don't save configs if shutdown was issued before client was initialized. Remove dead ucmd --- engine/client/cl_main.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 518f4225..225172aa 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -2872,7 +2872,6 @@ void CL_InitLocal( void ) Cmd_AddRestrictedCommand ("kill", NULL, "die instantly" ); Cmd_AddCommand ("god", NULL, "enable godmode" ); Cmd_AddCommand ("fov", NULL, "set client field of view" ); - Cmd_AddCommand ("log", NULL, "logging server events" ); // register our commands Cmd_AddCommand ("pause", NULL, "pause the game (if the server allows pausing)" ); @@ -3091,7 +3090,7 @@ void CL_Shutdown( void ) { Con_Printf( "CL_Shutdown()\n" ); - if( !host.crashed ) + if( !host.crashed && cls.initialized ) { Host_WriteOpenGLConfig (); Host_WriteVideoConfig ();