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
|
@ -489,6 +489,8 @@ void SV_SpawnServer( const char *server, qboolean loadgame, qboolean restart, qb
|
|||
int SV_PVSSoundIndex(const char* name, qboolean streamed);
|
||||
void SV_HandleNonPVSSound();
|
||||
|
||||
void SV_ApplyOriginalConfigTweaks();
|
||||
|
||||
|
||||
//
|
||||
// sv_client.c
|
||||
|
|
|
@ -1109,6 +1109,12 @@ void SV_Init (void)
|
|||
|
||||
// Load saved bans
|
||||
Cbuf_AddText("rehashbans\n");
|
||||
|
||||
if (com_gotOriginalConfig) {
|
||||
// Added in OPM
|
||||
// Apply config tweaks after loading the original config
|
||||
SV_ApplyOriginalConfigTweaks();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -1325,3 +1331,11 @@ void SV_HandleNonPVSSound()
|
|||
SV_CleanupNonPVSSound();
|
||||
}
|
||||
|
||||
/*
|
||||
===============
|
||||
SV_ApplyOriginalConfigTweaks
|
||||
===============
|
||||
*/
|
||||
void SV_ApplyOriginalConfigTweaks()
|
||||
{
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue