mirror of
https://github.com/yquake2/3zb2.git
synced 2024-11-25 13:21:43 +00:00
Merge pull request #1 from earth-metal/master
File-loading improvements + original keyboard config
This commit is contained in:
commit
365f8a2da4
3 changed files with 7 additions and 3 deletions
BIN
misc/assets.zip
BIN
misc/assets.zip
Binary file not shown.
|
@ -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))
|
||||||
|
|
|
@ -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