]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - netconn.c
renamed QUAKEWORLD protocol to QW to shorten connect string
[xonotic/darkplaces.git] / netconn.c
index c83b3bde1a8888320f4aa33d198f1031b5054143..916dc6885ea85bd2e9834db53823bc06692b4a35 100755 (executable)
--- 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;
@@ -1168,7 +1165,7 @@ void NetConn_ConnectionEstablished(lhnetsocket_t *mysocket, lhnetaddress_t *peer
        cls.signon = 0;                         // need all the signon messages before playing
        cls.protocol = initialprotocol;
        // reset move sequence numbering on this new connection
-       cls.movesequence = 0;
+       cls.movesequence = 1;
        cls.servermovesequence = 0;
        if (cls.protocol == PROTOCOL_QUAKEWORLD)
                Cmd_ForwardStringToServer("new");