mirror of
https://github.com/ZDoom/raze-gles.git
synced 2025-01-11 18:50:46 +00:00
git-svn-id: https://svn.eduke32.com/eduke32@1136 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
4f029a0097
commit
a0b49f13e4
3 changed files with 155 additions and 150 deletions
|
@ -1888,7 +1888,7 @@ static int parse_udp_config(int argc, char **argv, gcomtype *gcom)
|
|||
initprintf("mmulti_unstable: Player %d at %s:%d\n",daindex,st,allowed_addresses[daindex].port);
|
||||
daindex++;
|
||||
}
|
||||
/* else
|
||||
else
|
||||
{
|
||||
struct hostent * lph;
|
||||
unsigned short pt = BUILD_DEFAULT_UDP_PORT;
|
||||
|
@ -1898,15 +1898,15 @@ static int parse_udp_config(int argc, char **argv, gcomtype *gcom)
|
|||
{ pt = (unsigned short)atol(&st[j+1]); st[j] = 0; break; }
|
||||
if ((lph = gethostbyname(st)))
|
||||
{
|
||||
if ((danetmode == 1) && (daindex == myconnectindex)) daindex++;
|
||||
allowed_addresses[daindex].host = *(int *)lph->h_addr;
|
||||
// if ((danetmode == 1) && (daindex == myconnectindex)) daindex++;
|
||||
allowed_addresses[daindex].host = ntohl(*(int *)lph->h_addr);
|
||||
allowed_addresses[daindex].port = pt;
|
||||
initprintf("mmulti: Player %d at %s:%d (%s)\n",daindex,
|
||||
inet_ntoa(*(struct in_addr *)lph->h_addr),ntohs(pt),argv[i]);
|
||||
initprintf("mmulti_unstable: Player %d at %s:%d (%s)\n",daindex,
|
||||
inet_ntoa(*(struct in_addr *)lph->h_addr),pt,argv[i]);
|
||||
daindex++;
|
||||
}
|
||||
else initprintf("mmulti: Failed resolving %s\n",argv[i]);
|
||||
} */
|
||||
else initprintf("mmulti_unstable: Failed resolving %s\n",argv[i]);
|
||||
}
|
||||
free(st);
|
||||
}
|
||||
if ((danetmode == 255) && (daindex)) { gcom->numplayers = 2; udpmode = udpmode_client; } //an IP w/o /n# defaults to /n0
|
||||
|
|
|
@ -13180,11 +13180,16 @@ FRAGBONUS:
|
|||
fadepal(0,0,0, 63,0,-7);
|
||||
|
||||
KB_FlushKeyboardQueue();
|
||||
|
||||
{
|
||||
int tc = totalclock;
|
||||
while (KB_KeyWaiting()==0)
|
||||
{
|
||||
if (totalclock > tc + 600) break;
|
||||
handleevents();
|
||||
getpackets();
|
||||
}
|
||||
}
|
||||
|
||||
if (bonusonly || ud.multimode > 1) return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue