fix a missing sqrt
[xonotic/xonotic-data.pk3dir.git] / qcsrc / server / w_crylink.qc
index 8a65d9bec4c3a6b3938c62e2764bd79579764c8e..5424b64b8e8104cee9902fb59f15f89c117885de 100644 (file)
@@ -69,6 +69,7 @@ vector W_Crylink_LinkJoin(entity e, float joinspeed)
        for(p = e; (p = p.queuenext) != e; )
                avg_dist += pow(vlen(e.origin - avg_origin), 2);
        avg_dist *= (1.0 / n);
+       avg_dist = sqrt(avg_dist);
 
        w_crylink_linkjoin_time = 0;
        if(avg_dist == 0)