diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 56824244..428b6a79 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -3666,6 +3666,8 @@ void CL_Init( void ) if( !CL_LoadProgs( libpath )) Host_Error( "can't initialize %s: %s\n", libpath, COM_GetLibraryError( )); + ID_Init(); + cls.build_num = 0; cls.initialized = true; cl.maxclients = 1; // allow to drawing player in menu diff --git a/engine/client/client.h b/engine/client/client.h index 9a56e89a..09beb724 100644 --- a/engine/client/client.h +++ b/engine/client/client.h @@ -1209,6 +1209,13 @@ void Key_EnableTextInput( qboolean enable, qboolean force ); int Key_ToUpper( int key ); void OSK_Draw( void ); +// +// identification.c +// +void ID_Init( void ); +const char *ID_GetMD5( void ); +void GAME_EXPORT ID_SetCustomClientID( const char *id ); + extern rgba_t g_color_table[8]; extern triangleapi_t gTriApi; extern net_api_t gNetApi; diff --git a/engine/common/identification.c b/engine/client/identification.c similarity index 100% rename from engine/common/identification.c rename to engine/client/identification.c diff --git a/engine/common/common.h b/engine/common/common.h index 50c918f9..750b56c3 100644 --- a/engine/common/common.h +++ b/engine/common/common.h @@ -875,13 +875,6 @@ void V_CheckGamma( void ); void V_CheckGammaEnd( void ); intptr_t V_GetGammaPtr( int parm ); -// -// identification.c -// -void ID_Init( void ); -const char *ID_GetMD5( void ); -void GAME_EXPORT ID_SetCustomClientID( const char *id ); - // // masterlist.c // diff --git a/engine/common/host.c b/engine/common/host.c index 01774941..e00f6f66 100644 --- a/engine/common/host.c +++ b/engine/common/host.c @@ -1256,7 +1256,6 @@ int EXPORT Host_Main( int argc, char **argv, const char *progname, int bChangeGa CL_Init(); HTTP_Init(); - ID_Init(); SoundList_Init(); if( Host_IsDedicated( ))