]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
DODGING: reset dodging direction component when any checks fail
authorFlorian Paul Schmidt <mista.tapas@gmx.net>
Mon, 29 Mar 2010 23:30:27 +0000 (01:30 +0200)
committerFlorian Paul Schmidt <mista.tapas@gmx.net>
Mon, 29 Mar 2010 23:30:27 +0000 (01:30 +0200)
qcsrc/server/mutators/mutator_dodging.qc

index 472fb0ba270a63a56fd7caf822ab7730b167af60..c51ca01db2f1cb4696ed0f594a66705e9ef78783 100644 (file)
@@ -61,6 +61,8 @@ MUTATOR_HOOKFUNCTION(dodging_PlayerPhysics) {
 
        if (clean_up_and_do_nothing != 0) {
                self.dodging_action = 0;
+               self.dodging_direction_x = 0;
+               self.dodging_direction_y = 0;
                return 0;
        }