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:
Yamagi Burmeister 2017-11-05 15:01:44 +01:00
parent 9174879424
commit e4f3f07dfc

View file

@ -85,11 +85,11 @@ void Load_BotInfo()
gamepath = gi.cvar ("game", "0", CVAR_NOSET);
//load info
sprintf(Buff,".\\%s\\3ZBconfig.cfg",gamepath->string);
sprintf(Buff,"%s/3ZBConfig.cfg",gamepath->string);
fp = fopen(Buff,"rt");
if(fp == NULL)
{
gi.dprintf("3ZB CFG: file not found.\n");
gi.dprintf("3ZB CFG: file not found: %s\n", Buff);
return;
}
else