From: havoc Date: Sat, 12 Jul 2003 15:05:33 +0000 (+0000) Subject: NetConn_Write should print packets even if LHNET_Write returns 0 X-Git-Tag: xonotic-v0.1.0preview~6541 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=b48a0c5b1a91ce77bef20c9e9f71c745bad2e4dd;p=xonotic%2Fdarkplaces.git NetConn_Write should print packets even if LHNET_Write returns 0 git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3258 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index 5f3a9ec4..3c0f5322 100755 --- a/netconn.c +++ b/netconn.c @@ -105,7 +105,7 @@ int NetConn_Read(lhnetsocket_t *mysocket, void *data, int maxlength, lhnetaddres int NetConn_Write(lhnetsocket_t *mysocket, const void *data, int length, const lhnetaddress_t *peeraddress) { int ret = LHNET_Write(mysocket, data, length, peeraddress); - if (developer_networking.integer && ret != 0) + if (developer_networking.integer) { char addressstring[128], addressstring2[128]; LHNETADDRESS_ToString(LHNET_AddressFromSocket(mysocket), addressstring, sizeof(addressstring), true); @@ -1014,7 +1014,7 @@ int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length, // allocated connection strcpy(conn->address, addressstring2); if (developer.integer) - Con_Printf("Datagram_ParseConnectionless: sending CCREP_ACCEPT to %s.\n", addressstring2); + Con_Printf("Datagram_ParseConnectionless: sending \"accept\" to %s.\n", addressstring2); NetConn_WriteString(mysocket, "\377\377\377\377accept", peeraddress); // now set up the client struct SV_ConnectClient(clientnum, conn);