]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/mutator/dodging/sv_dodging.qc
If player is dead, reset dodging fields
[xonotic/xonotic-data.pk3dir.git] / 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;