mirror of
https://github.com/yquake2/3zb2.git
synced 2024-11-22 03:41:50 +00:00
Use a generic path for loading *.chn files.
This commit is contained in:
parent
2a630eaa5a
commit
1bff78ae37
1 changed files with 2 additions and 2 deletions
|
@ -3010,8 +3010,8 @@ void CTFSetupNavSpawn()
|
||||||
memset(Route,0,sizeof(Route));
|
memset(Route,0,sizeof(Route));
|
||||||
memset(code,0,8);
|
memset(code,0,8);
|
||||||
|
|
||||||
if(!ctf->value) sprintf(name,".\\%s\\chdtm\\%s.chn",gamepath->string,level.mapname);
|
if(!ctf->value) sprintf(name,"%s/chdtm/%s.chn",gamepath->string,level.mapname);
|
||||||
else sprintf(name,".\\%s\\chctf\\%s.chf",gamepath->string,level.mapname);
|
else sprintf(name,"%s/chctf/%s.chf",gamepath->string,level.mapname);
|
||||||
|
|
||||||
fpout = fopen(name,"rb");
|
fpout = fopen(name,"rb");
|
||||||
if(fpout == NULL)
|
if(fpout == NULL)
|
||||||
|
|
Loading…
Reference in a new issue