]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_input.c
QW support getting closer
[xonotic/darkplaces.git] / cl_input.c
index 8bc8ef1644c6ef44336ff1eb6a6f9047de0fd8b3..c6eb720b293b6049eed0d26acbdb61559dbf6b63 100644 (file)
@@ -914,7 +914,7 @@ void CL_SendMove(void)
                        // PROTOCOL_DARKPLACES5  clc_move = 19 bytes total
                        // PROTOCOL_DARKPLACES6  clc_move = 52 bytes total
                        // PROTOCOL_DARKPLACES7  clc_move = 56 bytes total
-                       if (cl.protocol == PROTOCOL_QUAKE || cl.protocol == PROTOCOL_QUAKEDP || cl.protocol == PROTOCOL_NEHAHRAMOVIE)
+                       if (cls.protocol == PROTOCOL_QUAKE || cls.protocol == PROTOCOL_QUAKEDP || cls.protocol == PROTOCOL_NEHAHRAMOVIE)
                        {
                                // 5 bytes
                                MSG_WriteByte (&buf, clc_move);
@@ -930,7 +930,7 @@ void CL_SendMove(void)
                                MSG_WriteByte (&buf, bits);
                                MSG_WriteByte (&buf, impulse);
                        }
-                       else if (cl.protocol == PROTOCOL_DARKPLACES2 || cl.protocol == PROTOCOL_DARKPLACES3)
+                       else if (cls.protocol == PROTOCOL_DARKPLACES2 || cls.protocol == PROTOCOL_DARKPLACES3)
                        {
                                // 5 bytes
                                MSG_WriteByte (&buf, clc_move);
@@ -946,7 +946,7 @@ void CL_SendMove(void)
                                MSG_WriteByte (&buf, bits);
                                MSG_WriteByte (&buf, impulse);
                        }
-                       else if (cl.protocol == PROTOCOL_DARKPLACES1 || cl.protocol == PROTOCOL_DARKPLACES4 || cl.protocol == PROTOCOL_DARKPLACES5)
+                       else if (cls.protocol == PROTOCOL_DARKPLACES1 || cls.protocol == PROTOCOL_DARKPLACES4 || cls.protocol == PROTOCOL_DARKPLACES5)
                        {
                                // 5 bytes
                                MSG_WriteByte (&buf, clc_move);
@@ -966,7 +966,7 @@ void CL_SendMove(void)
                        {
                                // 5 bytes
                                MSG_WriteByte (&buf, clc_move);
-                               if (cl.protocol != PROTOCOL_DARKPLACES6)
+                               if (cls.protocol != PROTOCOL_DARKPLACES6)
                                {
                                        if (cl_movement.integer)
                                        {
@@ -1023,7 +1023,7 @@ void CL_SendMove(void)
        }
 
        // send the reliable message (forwarded commands) if there is one
-       NetConn_SendUnreliableMessage(cls.netcon, &buf);
+       NetConn_SendUnreliableMessage(cls.netcon, &buf, cls.protocol);
 
        if (cls.netcon->message.overflowed)
        {