From: Mario <mario@smbclan.net>
Date: Mon, 20 Mar 2017 11:21:19 +0000 (+1000)
Subject: If player is dead, reset dodging fields
X-Git-Tag: xonotic-v0.8.2~29
X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=fd2140d036953937c7b99a2dcae0cb5a34d04e62;p=xonotic%2Fxonotic-data.pk3dir.git

If player is dead, reset dodging fields
---

diff --git a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc
index 9dda6aeb3..88547f7bf 100644
--- a/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc
+++ b/qcsrc/common/mutators/mutator/dodging/sv_dodging.qc
@@ -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;