From f8908e7d3187b212cdaafb93ca7c00cd608a4911 Mon Sep 17 00:00:00 2001 From: Night Owl Date: Sat, 22 Sep 2018 13:33:24 +0500 Subject: [PATCH] Do not read game.cfg under Xash3D. --- dlls/gamerules.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/dlls/gamerules.cpp b/dlls/gamerules.cpp index 023e7aa2..a9c859a3 100644 --- a/dlls/gamerules.cpp +++ b/dlls/gamerules.cpp @@ -28,6 +28,8 @@ extern edict_t *EntSelectSpawnPoint( CBaseEntity *pPlayer ); +extern BOOL gPhysicsInterfaceInitialized; + //++ BulliT DLL_GLOBAL AgGameRules *g_pGameRules = NULL; //-- Martin Webrant @@ -313,8 +315,11 @@ void CGameRules::RefreshSkillData ( void ) AgGameRules *InstallGameRules( void ) //-- Martin Webrant { - SERVER_COMMAND( "exec game.cfg\n" ); - SERVER_EXECUTE(); + if( !gPhysicsInterfaceInitialized ) + { + SERVER_COMMAND( "exec game.cfg\n" ); + SERVER_EXECUTE(); + } //++ BulliT char *servercfgfile = (char *)CVAR_GET_STRING( "servercfgfile" );