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:
terminx 2006-05-03 04:16:08 +00:00
parent d4ffa1f689
commit 4a380c2b4a

View file

@ -7606,6 +7606,14 @@ void checkcommandline(int argc,char **argv)
i++; i++;
continue; continue;
} }
if (!Bstrcasecmp(c+1,"stun")) {
i++;
continue;
}
if (!Bstrcasecmp(c+1,"disableautoaim")) {
i++;
continue;
}
if (!Bstrcasecmp(c+1,"rmnet")) if (!Bstrcasecmp(c+1,"rmnet"))
{ {
if (argc > i+1) if (argc > i+1)
@ -7652,12 +7660,21 @@ void checkcommandline(int argc,char **argv)
break; 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(tempbuf,rancid_ip_strings[MAXPLAYERS]);
Bstrcpy(tmp,strtok(tempbuf,".")); 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()); Bsprintf(tempbuf, getexternaladdress());
if(tempbuf[0]) if(tempbuf[0])