From: havoc Date: Mon, 30 Apr 2007 05:39:00 +0000 (+0000) Subject: count empty packets in rate limiting X-Git-Tag: xonotic-v0.1.0preview~3233 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=22892946d447eb18e4aacade393c1709a044215f;p=xonotic%2Fdarkplaces.git count empty packets in rate limiting git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7212 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/netconn.c b/netconn.c index c83b3bde..cc560f2f 100755 --- a/netconn.c +++ b/netconn.c @@ -697,8 +697,7 @@ int NetConn_SendUnreliableMessage(netconn_t *conn, sizebuf_t *data, protocolvers packetsSent++; unreliableMessagesSent++; - if (data->cursize) - totallen += packetLen + 28; + totallen += packetLen + 28; } } @@ -919,8 +918,6 @@ static int NetConn_ReceivedMessage(netconn_t *conn, unsigned char *data, int len if (length < 8) return 0; - // TODO: add netgraph stuff rather than just packetloss counting... - if (protocol == PROTOCOL_QUAKEWORLD) { int sequence, sequence_ack;