Use a generic path for loading *.chn files.

This commit is contained in:
earth-metal 2018-09-26 22:21:32 -04:00
parent 2a630eaa5a
commit 1bff78ae37

View file

@ -3010,8 +3010,8 @@ void CTFSetupNavSpawn()
memset(Route,0,sizeof(Route));
memset(code,0,8);
if(!ctf->value) sprintf(name,".\\%s\\chdtm\\%s.chn",gamepath->string,level.mapname);
else sprintf(name,".\\%s\\chctf\\%s.chf",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);
fpout = fopen(name,"rb");
if(fpout == NULL)