From: Florian Paul Schmidt Date: Mon, 29 Mar 2010 23:30:27 +0000 (+0200) Subject: DODGING: reset dodging direction component when any checks fail X-Git-Tag: xonotic-v0.1.0preview~669^2~5 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25a5776b5c658b1ebdabfc3bb8a4b5058d2d59d5;p=xonotic%2Fxonotic-data.pk3dir.git DODGING: reset dodging direction component when any checks fail --- diff --git a/qcsrc/server/mutators/mutator_dodging.qc b/qcsrc/server/mutators/mutator_dodging.qc index 472fb0ba2..c51ca01db 100644 --- a/qcsrc/server/mutators/mutator_dodging.qc +++ b/qcsrc/server/mutators/mutator_dodging.qc @@ -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; }