mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-24 10:40:46 +00:00
Whitespace
git-svn-id: https://svn.eduke32.com/eduke32@139 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
0709b4ba67
commit
19a7ae03e6
5 changed files with 23 additions and 21 deletions
|
@ -664,12 +664,12 @@ const char *getexternaladdress(void)
|
|||
WSADATA ws;
|
||||
|
||||
if (WSAStartup(0x101,&ws) == SOCKET_ERROR) {
|
||||
initprintf("winsock error %d\n",errno);
|
||||
initprintf("mmulti: Winsock error in getexternaladdress() (%d)\n",errno);
|
||||
return(0);
|
||||
}
|
||||
#endif
|
||||
if ((h=gethostbyname(host)) == NULL) {
|
||||
initprintf("gethostbyname error %d\n",h_errno);
|
||||
initprintf("mmulti: gethostbyname() error in getexternaladdress() (%d)\n",h_errno);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
@ -681,18 +681,18 @@ const char *getexternaladdress(void)
|
|||
|
||||
sockfd = socket(PF_INET, SOCK_STREAM, 0);
|
||||
if(sockfd == SOCKET_ERROR) {
|
||||
initprintf("socket error %d\n",errno);
|
||||
initprintf("mmulti: socket() error in getexternaladdress() (%d)\n",errno);
|
||||
return(0);
|
||||
}
|
||||
|
||||
if(connect(sockfd, (struct sockaddr *)&dest_addr, sizeof(struct sockaddr)) == SOCKET_ERROR) {
|
||||
initprintf("connect error %d\n",errno);
|
||||
initprintf("mmulti: connect() error in getexternaladdress() (%d)\n",errno);
|
||||
return(0);
|
||||
}
|
||||
|
||||
bytes_sent = send(sockfd, req, strlen(req), 0);
|
||||
if(bytes_sent == SOCKET_ERROR) {
|
||||
initprintf("bytes_sent error %d\n",errno);
|
||||
initprintf("mmulti: send() error in getexternaladdress() (%d)\n",errno);
|
||||
return(0);
|
||||
}
|
||||
|
||||
|
|
|
@ -7670,7 +7670,6 @@ void checkcommandline(int argc,char **argv)
|
|||
if(j != netparamcount)
|
||||
netparam[j] = rancid_local_port_string;
|
||||
}
|
||||
// initprintf("ip: %s\n",rancid_ip_strings[MAXPLAYERS]);
|
||||
}
|
||||
i++;
|
||||
continue;
|
||||
|
@ -8394,6 +8393,9 @@ void Startup(void)
|
|||
|
||||
for(i=0;i<MAXPLAYERS;i++) playerreadyflag[i] = 0;
|
||||
|
||||
if(rancid_ip_strings[MAXPLAYERS])
|
||||
initprintf("net: Using %s as sort IP\n",rancid_ip_strings[MAXPLAYERS]);
|
||||
|
||||
//initmultiplayers(netparamcount,netparam, 0,0,0);
|
||||
if (initmultiplayersparms(netparamcount,netparam)) {
|
||||
initprintf("Waiting for players...\n");
|
||||
|
|
Loading…
Reference in a new issue