]> git.rm.cloudns.org Git - voretournament/voretournament.git/commitdiff
Stunning: Return instead of setting wishspeed to 0
authorMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 Jan 2012 15:11:55 +0000 (17:11 +0200)
committerMirceaKitsune <sonichedgehog_hyperblast00@yahoo.com>
Mon, 2 Jan 2012 15:11:55 +0000 (17:11 +0200)
data/qcsrc/server/cl_physics.qc

index d03319591a4e856c85cd07170485a2b8033d6e61..492dc2a4fb828db0cbdca36c6ed5a954fe71fc1a 100644 (file)
@@ -518,7 +518,7 @@ void PM_Accelerate(vector wishdir, float wishspeed, float wishspeed0, float acce
                if(self.swallow_progress_pred) // cut speed based on swallow progress for preds\r
                        wishspeed *= 1 - (self.swallow_progress_pred * cvar("g_balance_vore_swallow_speed_cutspd_pred"));\r
                if(self.grabber_stunned > time && random() <= cvar("g_balance_grabber_secondary_stun_rate")) // randomly cut speed while the player is stunned\r
-                       wishspeed = 0;\r
+                       return;\r
        }\r
 \r
        if(cvar("sv_gameplayfix_q2airaccelerate"))\r