fix a r1003 bug in COM_Game_f()

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

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