mirror of
https://github.com/yquake2/3zb2.git
synced 2025-02-26 13:11:31 +00:00
Use a generic path for 3ZBConfig.cfg.
Otherwise the file will not be loaded on Unix. And trust the VFS that it does the right thing(tm).
This commit is contained in:
parent
9174879424
commit
e4f3f07dfc
1 changed files with 2 additions and 2 deletions
|
@ -85,11 +85,11 @@ void Load_BotInfo()
|
||||||
gamepath = gi.cvar ("game", "0", CVAR_NOSET);
|
gamepath = gi.cvar ("game", "0", CVAR_NOSET);
|
||||||
|
|
||||||
//load info
|
//load info
|
||||||
sprintf(Buff,".\\%s\\3ZBconfig.cfg",gamepath->string);
|
sprintf(Buff,"%s/3ZBConfig.cfg",gamepath->string);
|
||||||
fp = fopen(Buff,"rt");
|
fp = fopen(Buff,"rt");
|
||||||
if(fp == NULL)
|
if(fp == NULL)
|
||||||
{
|
{
|
||||||
gi.dprintf("3ZB CFG: file not found.\n");
|
gi.dprintf("3ZB CFG: file not found: %s\n", Buff);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in a new issue