]> git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
enable svc_pointparticles1 protocol, because the pointparticles
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 May 2007 18:46:56 +0000 (18:46 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 22 May 2007 18:46:56 +0000 (18:46 +0000)
extension is so new that compatibility with month-old clients that never
officially supported the DP_SV_POINTPARTICLES feature is not a concern

git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@7338 d7cf8633-e32d-0410-b094-e92efae38249

svvm_cmds.c

index 0fb024e8aaec8d276e7781b7f8b010474d9b1282..e57eedcc1b804c76d1287310c92f3210647f06bc 100644 (file)
@@ -2656,7 +2656,7 @@ static void VM_SV_pointparticles (void)
        VectorCopy(PRVM_G_VECTOR(OFS_PARM1), org);
        VectorCopy(PRVM_G_VECTOR(OFS_PARM2), vel);
        count = bound(0, (int)PRVM_G_FLOAT(OFS_PARM3), 65535);
-       if (count == 1 && !VectorLength2(vel) && (sv.protocol != PROTOCOL_QUAKE && sv.protocol != PROTOCOL_QUAKEDP && sv.protocol != PROTOCOL_NEHAHRAMOVIE && sv.protocol != PROTOCOL_DARKPLACES1 && sv.protocol != PROTOCOL_DARKPLACES2 && sv.protocol != PROTOCOL_DARKPLACES3 && sv.protocol != PROTOCOL_DARKPLACES4 && sv.protocol != PROTOCOL_DARKPLACES5 && sv.protocol != PROTOCOL_DARKPLACES6 && sv.protocol != PROTOCOL_DARKPLACES7))
+       if (count == 1 && !VectorLength2(vel))
        {
                // 1+2+12=15 bytes
                MSG_WriteByte(&sv.datagram, svc_pointparticles1);