diff --git a/codemp/cgame/cg_main.c b/codemp/cgame/cg_main.c index 91d0204ae5..b9c926d787 100644 --- a/codemp/cgame/cg_main.c +++ b/codemp/cgame/cg_main.c @@ -2403,6 +2403,8 @@ void CG_Init( int serverMessageNum, int serverCommandSequence, int clientNum ) const char *s; int i = 0; + Rand_Init( trap->Milliseconds() ); + BG_InitAnimsets(); //clear it out trap->RegisterSharedMemory( cg.sharedBuffer.raw ); diff --git a/codemp/game/g_main.c b/codemp/game/g_main.c index 9ec7f32ef5..31715742ad 100644 --- a/codemp/game/g_main.c +++ b/codemp/game/g_main.c @@ -179,6 +179,9 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) { vmCvar_t ckSum; char serverinfo[MAX_INFO_STRING] = {0}; + Rand_Init( randomSeed ); + srand( randomSeed ); + //Init RMG to 0, it will be autoset to 1 if there is terrain on the level. trap->Cvar_Set("RMG", "0"); RMG.integer = 0; @@ -199,8 +202,6 @@ void G_InitGame( int levelTime, int randomSeed, int restart ) { trap->Print ("gamename: %s\n", GAMEVERSION); trap->Print ("gamedate: %s\n", SOURCE_DATE); - srand( randomSeed ); - G_RegisterCvars(); G_ProcessIPBans(); diff --git a/codemp/ui/ui_main.c b/codemp/ui/ui_main.c index 8ca16b705e..45501d9479 100644 --- a/codemp/ui/ui_main.c +++ b/codemp/ui/ui_main.c @@ -9838,6 +9838,8 @@ UI_Init void UI_Init( qboolean inGameLoad ) { const char *menuSet; + Rand_Init( trap->Milliseconds() ); + // Get the list of possible languages uiInfo.languageCount = trap->SE_GetNumLanguages(); // this does a dir scan, so use carefully