mirror of
https://github.com/Shpoike/Quakespasm.git
synced 2025-02-15 08:31:03 +00:00
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:
parent
162e47a5ec
commit
d7d6ad2d05
1 changed files with 5 additions and 0 deletions
|
@ -1990,6 +1990,11 @@ static void COM_Game_f (void)
|
||||||
|
|
||||||
if (q_strcasecmp(p, GAMENAME)) //game is not id1
|
if (q_strcasecmp(p, GAMENAME)) //game is not id1
|
||||||
COM_AddGameDirectory (com_basedir, p);
|
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
|
//clear out and reload appropriate data
|
||||||
Cache_Flush ();
|
Cache_Flush ();
|
||||||
|
|
Loading…
Reference in a new issue