Merge pull request #1 from earth-metal/master

File-loading improvements + original keyboard config
This commit is contained in:
Yamagi 2018-09-28 07:38:04 +02:00 committed by GitHub
commit 365f8a2da4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 7 additions and 3 deletions

Binary file not shown.

View file

@ -142,7 +142,11 @@ MESS_NOTFOUND:
if(Buff[0] == '[') break; if(Buff[0] == '[') break;
if(Buff[0] == '\n' || Buff[0] == '#') {i--;continue;} if(Buff[0] == '\n' || Buff[0] == '#') {i--;continue;}
j = 2,k = 1; j = 2,k = 1;
if(!strncmp(Buff,"\\\\",2)) if(strncmp(Buff,"\\\\",2))
{
i--;
}
else
{ {
//netname //netname
if(Get_YenPos(Buff,&k)) if(Get_YenPos(Buff,&k))

View file

@ -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)