fix a missing case
[xonotic/xonotic-data.pk3dir.git] / 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);