]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
fix a missing case
authorRudolf Polzer <divverent@alientrap.org>
Thu, 11 Nov 2010 21:53:33 +0000 (22:53 +0100)
committerRudolf Polzer <divverent@alientrap.org>
Thu, 11 Nov 2010 21:53:33 +0000 (22:53 +0100)
qcsrc/server/w_crylink.qc

index 2dcd433c7e27d533de6fe3d299065259fb0107f2..702cefc57f5aeec78375b6838c881cdbd96110ed 100644 (file)
@@ -100,6 +100,8 @@ vector W_Crylink_LinkJoin(entity e, float jspeed, float jtime)
                        else
                                w_crylink_linkjoin_time = jtime;
                }
+               else
+                       w_crylink_linkjoin_time = avg_dist / jspeed;
                targ_origin = avg_origin + w_crylink_linkjoin_time * avg_velocity;
 
                e.velocity = (targ_origin - e.origin) * (1.0 / w_crylink_linkjoin_time);