exec default.cfg and config.cfg upon in-game gamedir changes.

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1052 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2014-09-21 11:10:22 +00:00
parent 696214e82e
commit 04ec6efeb3
1 changed files with 5 additions and 1 deletions

View File

@ -2072,9 +2072,13 @@ static void COM_Game_f (void)
R_NewGame ();
}
ExtraMaps_NewGame ();
//Cbuf_InsertText ("exec quake.rc\n");
Con_Printf("\"game\" changed to \"%s\"\n", COM_SkipPath(com_gamedir));
//Cbuf_InsertText ("exec quake.rc\n");
// full quake.rc can result in unpredictable results, run config.cfg instead.
Cbuf_InsertText ("exec config.cfg\n");
Cbuf_InsertText ("exec default.cfg\n"); // ... but after default.cfg.
}
else //Diplay the current gamedir
Con_Printf("\"game\" is \"%s\"\n", COM_SkipPath(com_gamedir));