mirror of
https://github.com/openmoh/openmohaa.git
synced 2025-04-28 13:47:58 +03:00
Apply client and server config tweaks when loading the original config
This commit is contained in:
parent
b8c7223da7
commit
02fc573e31
6 changed files with 42 additions and 1 deletions
|
@ -3685,6 +3685,12 @@ void CL_Init( void ) {
|
|||
|
||||
end = Sys_Milliseconds();
|
||||
|
||||
if (com_gotOriginalConfig) {
|
||||
// Added in OPM
|
||||
// Apply config tweaks after loading the original config
|
||||
CL_ApplyOriginalConfigTweaks();
|
||||
}
|
||||
|
||||
Com_Printf( "----- Client Initialization Complete ----- %i ms\n", start - end );
|
||||
}
|
||||
|
||||
|
@ -4861,3 +4867,15 @@ void TIKI_CG_Command_ProcessFile(char* filename, qboolean quiet, dtiki_t* curTik
|
|||
|
||||
Com_Printf("NO CGE \n");
|
||||
}
|
||||
|
||||
void CL_ApplyOriginalConfigTweaks()
|
||||
{
|
||||
cvar_t* snaps = Cvar_Get("snaps", "", 0);
|
||||
|
||||
// Those variables are not editable via UI so reset them
|
||||
// snaps/maxpackets can also have wrong values due to them being changed
|
||||
// via stufftext
|
||||
|
||||
Cvar_Set("snaps", snaps->resetString);
|
||||
Cvar_Set("cl_maxpackets", cl_maxpackets->resetString);
|
||||
}
|
||||
|
|
|
@ -561,6 +561,7 @@ qboolean CL_CheckPaused(void);
|
|||
|
||||
int CL_GetRefSequence(void);
|
||||
qboolean CL_IsRendererLoaded(void);
|
||||
void CL_ApplyOriginalConfigTweaks();
|
||||
|
||||
//
|
||||
// cl_input
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue