From 4a380c2b4a50930fc355118412ec5ecb2381aa13 Mon Sep 17 00:00:00 2001 From: terminx Date: Wed, 3 May 2006 04:16:08 +0000 Subject: [PATCH] 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 --- polymer/eduke32/source/game.c | 19 ++++++++++++++++++- 1 file changed, 18 insertions(+), 1 deletion(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index e07c6d06f..ebac0f107 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -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])