fix a r1003 bug in COM_Game_f()

git-svn-id: svn+ssh://svn.code.sf.net/p/quakespasm/code/trunk@1006 af15c1b1-3010-417e-b628-4374ebc0bcbd
This commit is contained in:
sezero 2014-09-08 22:15:50 +00:00
parent d7fb4c3d00
commit d7bf2dff4f

View file

@ -1990,6 +1990,11 @@ static void COM_Game_f (void)
if (q_strcasecmp(p, GAMENAME)) //game is not id1
COM_AddGameDirectory (com_basedir, p);
else // just update com_gamedir
q_snprintf (com_gamedir, sizeof(com_gamedir), "%s/%s",
(host_parms->userdir != host_parms->basedir)?
host_parms->userdir : com_basedir,
GAMENAME);
//clear out and reload appropriate data
Cache_Flush ();