]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
If player is dead, reset dodging fields
authorMario <mario@smbclan.net>
Mon, 20 Mar 2017 11:21:19 +0000 (21:21 +1000)
committerMario <mario@smbclan.net>
Mon, 20 Mar 2017 11:21:41 +0000 (21:21 +1000)
qcsrc/common/mutators/mutator/dodging/sv_dodging.qc

index 9dda6aeb31149ddb5f80b2f7030490f31822619c..88547f7bf4c2268e3dabd7507152aa100fa9d87d 100644 (file)
@@ -203,11 +203,8 @@ void PM_dodging(entity this)
        if (!PHYS_DODGING)
                return;
 
-    if (IS_DEAD(this))
-        return;
-
-       // when swimming, no dodging allowed..
-       if (this.waterlevel >= WATERLEVEL_SWIMMING)
+       // when swimming or dead, no dodging allowed..
+       if (this.waterlevel >= WATERLEVEL_SWIMMING || IS_DEAD(this))
        {
                this.dodging_action = 0;
                this.dodging_direction_x = 0;