fix a missing sqrt
authorRudolf Polzer <divverent@alientrap.org>
Tue, 9 Nov 2010 18:28:13 +0000 (19:28 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Tue, 9 Nov 2010 18:28:13 +0000 (19:28 +0100)
qcsrc/server/w_crylink.qc

index 8a65d9b..5424b64 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)