X-Git-Url: http://de.git.xonotic.org/?a=blobdiff_plain;f=cl_input.c;h=c6eb720b293b6049eed0d26acbdb61559dbf6b63;hb=3478423d370b83ed35cc123790ab24a1939a9acd;hp=8bc8ef1644c6ef44336ff1eb6a6f9047de0fd8b3;hpb=dd8a6d49ec6e856d160365982a119f65acbb6913;p=xonotic%2Fdarkplaces.git diff --git a/cl_input.c b/cl_input.c index 8bc8ef16..c6eb720b 100644 --- a/cl_input.c +++ b/cl_input.c @@ -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) {