mirror of
https://github.com/yquake2/3zb2.git
synced 2024-11-25 05:11:40 +00:00
Improve recognition of lines with bot-characters in 3ZBConfig.
The original formatting of 3ZBConfig was causing 3 "blank" bot characters to be loaded into the initial slots of the list of bot characters. Decrementing the counter when it reaches an improperly formatted line prevents this.
This commit is contained in:
parent
f2c7daaa3b
commit
b28d18c3d3
1 changed files with 5 additions and 1 deletions
|
@ -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))
|
||||||
|
|
Loading…
Reference in a new issue