]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Use the common definition to set movement
authorMario <zacjardine@y7mail.com>
Thu, 11 Dec 2014 01:48:57 +0000 (12:48 +1100)
committerMario <zacjardine@y7mail.com>
Thu, 11 Dec 2014 01:48:57 +0000 (12:48 +1100)
qcsrc/server/mutators/mutator_dodging.qc

index 72af95a039c0a65e1e210eb93338098b23093d28..489511c236f2c59fd64a89c918577575c5b2eedd 100644 (file)
@@ -394,11 +394,7 @@ void PM_dodging()
        if (self.dodging_action == 1)
        {
                //disable jump key during dodge accel phase
-#ifdef SVQC
-               if(self.movement_z > 0) self.movement_z = 0;
-#elif defined(CSQC)
-               if(input_movevalues_z > 0) input_movevalues_z = 0;
-#endif
+               if(PHYS_INPUT_MOVEVALUES(self)_z > 0) { PHYS_INPUT_MOVEVALUES(self)_z = 0; }
 
                self.velocity =
                          self.velocity