]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
NetConn_Write should print packets even if LHNET_Write returns 0
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Jul 2003 15:05:33 +0000 (15:05 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Sat, 12 Jul 2003 15:05:33 +0000 (15:05 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3258 d7cf8633-e32d-0410-b094-e92efae38249

netconn.c

index 5f3a9ec4918a6515d03433f3ac3d4ea5f7bb1a84..3c0f53220662d7b18c8098271f0b203b5cca2e30 100755 (executable)
--- 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);