]> git.rm.cloudns.org Git - xonotic/darkplaces.git/commitdiff
Misc tweaks to fitzquake client support
authorCloudwalk <cloudwalk009@gmail.com>
Mon, 19 Oct 2020 04:38:13 +0000 (00:38 -0400)
committerCloudwalk <cloudwalk009@gmail.com>
Mon, 19 Oct 2020 04:38:13 +0000 (00:38 -0400)
cl_input.c
cl_parse.c
cl_protocol_basenq.h

index ffb719b50f8d623a97f413a6092ffa967fb161e3..91e383d4fba2abfaf42204d149f113f517fa359e 100644 (file)
@@ -1859,6 +1859,7 @@ void CL_SendMove(void)
        case PROTOCOL_DARKPLACES3:
        case PROTOCOL_DARKPLACES4:
        case PROTOCOL_DARKPLACES5:
+       case PROTOCOL_FITZQUAKE:
                break;
        case PROTOCOL_DARKPLACES6:
        case PROTOCOL_DARKPLACES7:
index 8a6282ad90a5ecde2890ffc593f3f6b9d5c1826c..3bbbe3ac570d2787cc76eae0eae418f4342efff2 100644 (file)
@@ -2058,7 +2058,7 @@ void CL_ParseClientdata (void)
                        else
                                cl.mpunchangle[0][i] = MSG_ReadAngle16i(&cl_message);
                }
-               if (bits & (SU_PUNCHVEC1<<i) && cls.protocol != &protocol_fitzquake)
+               if (cls.protocol != &protocol_fitzquake && bits & (SU_PUNCHVEC1<<i))
                {
                        if (cls.protocol == &protocol_dpp1 || cls.protocol == &protocol_dpp2 || cls.protocol == &protocol_dpp3 || cls.protocol == &protocol_dpp4)
                                cl.mpunchvector[0][i] = MSG_ReadCoord16i(&cl_message);
index 72c7d4dd2e1c7530a32f378217518fa5ac8d6fcc..d600769a202bf9afb51efbf9790b199687676622 100644 (file)
@@ -87,6 +87,7 @@ static void Netmsg_svc_stufftext (protocol_t *protocol)               // [string] stuffed int
        else */ switch(cls.protocol->num)
        {
                case PROTOCOL_QUAKE:
+               case PROTOCOL_FITZQUAKE:
                        // maybe add other protocols if
                        // so desired, but not DP7
                        strip_pqc = true;