From 51b54cf6adaf9a4df7e8590d1a58ec142831b502 Mon Sep 17 00:00:00 2001 From: terminx Date: Tue, 2 May 2006 03:12:44 +0000 Subject: [PATCH] Only get the external IP if no peers have internal IPs and the IP we're using is a LAN IP git-svn-id: https://svn.eduke32.com/eduke32@137 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/source/game.c | 91 ++++++++++++++++++----------------- 1 file changed, 48 insertions(+), 43 deletions(-) diff --git a/polymer/eduke32/source/game.c b/polymer/eduke32/source/game.c index b812c18c4..6e23e3b31 100644 --- a/polymer/eduke32/source/game.c +++ b/polymer/eduke32/source/game.c @@ -7607,60 +7607,65 @@ void checkcommandline(int argc,char **argv) } if(CommandNet) { - load_rancid_net(CommandNet); - qsort((char *)rancid_ip_strings, rancid_players, sizeof(rancid_ip_strings[0]), (int(*)(const void*,const void*))stringsort); - CommandNet = 0; - netparamcount = rancid_players; - if(rancid_local_port_string[0] == '-') - netparamcount++; - netparam = (char **)calloc(netparamcount, sizeof(char **)); - for(j=0;j