mirror of
https://github.com/ZDoom/Raze.git
synced 2024-11-15 00:42:08 +00:00
Add dummy options for some Rancidmeat parameters we want to ignore, as well as add detection of APIPA addresses
git-svn-id: https://svn.eduke32.com/eduke32@145 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
d4ffa1f689
commit
4a380c2b4a
1 changed files with 18 additions and 1 deletions
|
@ -7606,6 +7606,14 @@ void checkcommandline(int argc,char **argv)
|
|||
i++;
|
||||
continue;
|
||||
}
|
||||
if (!Bstrcasecmp(c+1,"stun")) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if (!Bstrcasecmp(c+1,"disableautoaim")) {
|
||||
i++;
|
||||
continue;
|
||||
}
|
||||
if (!Bstrcasecmp(c+1,"rmnet"))
|
||||
{
|
||||
if (argc > i+1)
|
||||
|
@ -7652,12 +7660,21 @@ void checkcommandline(int argc,char **argv)
|
|||
break;
|
||||
}
|
||||
}
|
||||
else if(Bstrcmp(tmp,"169") == 0)
|
||||
{
|
||||
Bstrcpy(tmp,strtok(NULL,"."));
|
||||
if(Bstrcmp(tmp,"254") == 0)
|
||||
{
|
||||
j = 0;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Bstrcpy(tempbuf,rancid_ip_strings[MAXPLAYERS]);
|
||||
Bstrcpy(tmp,strtok(tempbuf,"."));
|
||||
if(j == rancid_players && ((Bstrcmp(tmp,"192") == 0) || (Bstrcmp(tmp,"172") == 0) || (Bstrcmp(tmp,"10") == 0)))
|
||||
if(j == rancid_players && ((Bstrcmp(tmp,"192") == 0) || (Bstrcmp(tmp,"172") == 0) || (Bstrcmp(tmp,"169") == 0) || (Bstrcmp(tmp,"10") == 0)))
|
||||
{
|
||||
Bsprintf(tempbuf, getexternaladdress());
|
||||
if(tempbuf[0])
|
||||
|
|
Loading…
Reference in a new issue