mirror of
https://github.com/ZDoom/raze-gles.git
synced 2024-12-25 03:00: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;
|
WSADATA ws;
|
||||||
|
|
||||||
if (WSAStartup(0x101,&ws) == SOCKET_ERROR) {
|
if (WSAStartup(0x101,&ws) == SOCKET_ERROR) {
|
||||||
initprintf("winsock error %d\n",errno);
|
initprintf("mmulti: Winsock error in getexternaladdress() (%d)\n",errno);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
if ((h=gethostbyname(host)) == NULL) {
|
if ((h=gethostbyname(host)) == NULL) {
|
||||||
initprintf("gethostbyname error %d\n",h_errno);
|
initprintf("mmulti: gethostbyname() error in getexternaladdress() (%d)\n",h_errno);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -681,18 +681,18 @@ const char *getexternaladdress(void)
|
||||||
|
|
||||||
sockfd = socket(PF_INET, SOCK_STREAM, 0);
|
sockfd = socket(PF_INET, SOCK_STREAM, 0);
|
||||||
if(sockfd == SOCKET_ERROR) {
|
if(sockfd == SOCKET_ERROR) {
|
||||||
initprintf("socket error %d\n",errno);
|
initprintf("mmulti: socket() error in getexternaladdress() (%d)\n",errno);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(connect(sockfd, (struct sockaddr *)&dest_addr, sizeof(struct sockaddr)) == SOCKET_ERROR) {
|
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);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
bytes_sent = send(sockfd, req, strlen(req), 0);
|
bytes_sent = send(sockfd, req, strlen(req), 0);
|
||||||
if(bytes_sent == SOCKET_ERROR) {
|
if(bytes_sent == SOCKET_ERROR) {
|
||||||
initprintf("bytes_sent error %d\n",errno);
|
initprintf("mmulti: send() error in getexternaladdress() (%d)\n",errno);
|
||||||
return(0);
|
return(0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -7670,7 +7670,6 @@ void checkcommandline(int argc,char **argv)
|
||||||
if(j != netparamcount)
|
if(j != netparamcount)
|
||||||
netparam[j] = rancid_local_port_string;
|
netparam[j] = rancid_local_port_string;
|
||||||
}
|
}
|
||||||
// initprintf("ip: %s\n",rancid_ip_strings[MAXPLAYERS]);
|
|
||||||
}
|
}
|
||||||
i++;
|
i++;
|
||||||
continue;
|
continue;
|
||||||
|
@ -8394,6 +8393,9 @@ void Startup(void)
|
||||||
|
|
||||||
for(i=0;i<MAXPLAYERS;i++) playerreadyflag[i] = 0;
|
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);
|
//initmultiplayers(netparamcount,netparam, 0,0,0);
|
||||||
if (initmultiplayersparms(netparamcount,netparam)) {
|
if (initmultiplayersparms(netparamcount,netparam)) {
|
||||||
initprintf("Waiting for players...\n");
|
initprintf("Waiting for players...\n");
|
||||||
|
|
Loading…
Reference in a new issue