summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author/dev/humancontroller <devhc@example.com>2017-03-09 13:40:01 +0100
committer/dev/humancontroller <devhc@example.com>2017-03-09 13:51:06 +0100
commitfe068e5491534206f386c31fa71568872eb7dc13 (patch)
treef51063a11921036764e90b44c12350e128d6094d
parentad5130290834957a2637e899ffa847420d0510fe (diff)
fix the client's GUID resetting (to the non-serverunique value) upon switching fs_game (when connecting to a modded server)
-rw-r--r--src/client/cl_main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/client/cl_main.c b/src/client/cl_main.c
index 16253921..dbaaa2a9 100644
--- a/src/client/cl_main.c
+++ b/src/client/cl_main.c
@@ -3755,7 +3755,8 @@ void CL_Init( void ) {
CL_GenerateQKey();
Cvar_Get( "cl_guid", "", CVAR_USERINFO | CVAR_ROM );
- CL_UpdateGUID( NULL, 0 );
+ if( clc.state == CA_DISCONNECTED )
+ CL_UpdateGUID( NULL, 0 );
Com_Printf( "----- Client Initialization Complete -----\n" );
}