]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
PROTOCOL_DARKPLACES5
[xonotic/darkplaces.git] / netconn.c
index 12636d4c3ef5ec5b2161d5d90d5a57b83205cf86..591056c46c01ac28c6faad77cb0281d072530dfe 100755 (executable)
--- a/netconn.c
+++ b/netconn.c
@@ -1119,21 +1119,16 @@ int NetConn_ServerParsePacket(lhnetsocket_t *mysocket, qbyte *data, int length,
                                                                if (clientnum < svs.maxclients)
                                                                {
                                                                        // prepare the client struct
-                                                                       if ((client->entitydatabase4 = EntityFrame4_AllocDatabase(sv_clients_mempool)))
+                                                                       if ((conn = NetConn_Open(mysocket, peeraddress)))
                                                                        {
-                                                                               if ((conn = NetConn_Open(mysocket, peeraddress)))
-                                                                               {
-                                                                                       // allocated connection
-                                                                                       LHNETADDRESS_ToString(peeraddress, conn->address, sizeof(conn->address), true);
-                                                                                       if (developer.integer)
-                                                                                               Con_Printf("Datagram_ParseConnectionless: sending \"accept\" to %s.\n", conn->address);
-                                                                                       NetConn_WriteString(mysocket, "\377\377\377\377accept", peeraddress);
-                                                                                       // now set up the client
-                                                                                       SV_ConnectClient(clientnum, conn);
-                                                                                       NetConn_Heartbeat(1);
-                                                                               }
-                                                                               else
-                                                                                       EntityFrame4_FreeDatabase(client->entitydatabase4);
+                                                                               // allocated connection
+                                                                               LHNETADDRESS_ToString(peeraddress, conn->address, sizeof(conn->address), true);
+                                                                               if (developer.integer)
+                                                                                       Con_Printf("Datagram_ParseConnectionless: sending \"accept\" to %s.\n", conn->address);
+                                                                               NetConn_WriteString(mysocket, "\377\377\377\377accept", peeraddress);
+                                                                               // now set up the client
+                                                                               SV_ConnectClient(clientnum, conn);
+                                                                               NetConn_Heartbeat(1);
                                                                        }
                                                                }
                                                                else