From 1bff78ae3736ceae4c108024b11a1bf3805933e5 Mon Sep 17 00:00:00 2001 From: earth-metal <38820385+earth-metal@users.noreply.github.com> Date: Wed, 26 Sep 2018 22:21:32 -0400 Subject: [PATCH] Use a generic path for loading *.chn files. --- src/g_ctf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/g_ctf.c b/src/g_ctf.c index ff334c0..19428b3 100644 --- a/src/g_ctf.c +++ b/src/g_ctf.c @@ -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)