X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;ds=sidebyside;f=netconn.c;h=3f0796e54e9485027ae685c18c4f981cfc751412;hb=d896dc4570e9eea6e50367f9a1c13a8d2a16b865;hp=4e80136d47643dd9b77608de446abc66d63dfa6a;hpb=5bdfdac0033b9bf26b17ff4589c8fdc031516d84;p=xonotic%2Fdarkplaces.git diff --git a/netconn.c b/netconn.c index 4e80136d..3f0796e5 100755 --- a/netconn.c +++ b/netconn.c @@ -2125,8 +2125,14 @@ void NetConn_ClientFrame(void) SZ_Clear(&net_message); } for (i = 0;i < cl_numsockets;i++) + { while (cl_sockets[i] && (length = NetConn_Read(cl_sockets[i], readbuffer, sizeof(readbuffer), &peeraddress)) > 0) + { +// R_TimeReport("clientreadnetwork"); NetConn_ClientParsePacket(cl_sockets[i], readbuffer, length, &peeraddress); +// R_TimeReport("clientparsepacket"); + } + } NetConn_QueryQueueFrame(); if (cls.netcon && realtime > cls.netcon->timeout && !sv.active) { @@ -2207,7 +2213,7 @@ static qboolean NetConn_BuildStatusResponse(const char* challenge, char* out_msg "%s", fullstatus ? "statusResponse" : "infoResponse", gamename, com_modname, gameversion.integer, svs.maxclients, - nb_clients, nb_bots, sv.name, hostname.string, NET_PROTOCOL_VERSION, + nb_clients, nb_bots, sv.worldbasename, hostname.string, NET_PROTOCOL_VERSION, *qcstatus ? "\\qcstatus\\" : "", qcstatus, challenge ? "\\challenge\\" : "", challenge ? challenge : "", fullstatus ? "\n" : "");