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 2dcd433..702cefc 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);