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

git-svn-id: svn://svn.code.sf.net/p/quakespasm/code/trunk/quakespasm@1052 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
Ozkan Sezer 2014-09-21 11:10:22 +00:00
parent 84e79ad4a2
commit 11c1b1f67c

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));