]> de.git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
more questions for someone who knows what's actually goingo n here
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 12 Aug 2017 23:25:19 +0000 (01:25 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 12 Aug 2017 23:25:19 +0000 (01:25 +0200)
qcsrc/common/mutators/mutator/dodging/sv_dodging.qc

index 7a572445742f99866911114b428bff4dbd3354ac..a6c42533c34c09d71074508098500b5dd3c4fc4f 100644 (file)
@@ -29,7 +29,7 @@
 #define PHYS_DODGING_MAXSPEED                          STAT(DODGING_MAXSPEED, this)
 #endif
 
-#ifdef CSQC
+#ifdef CSQC // FIXME this is an sv_ file, none of this will even be compiled
        #define PHYS_DODGING_FRAMETIME                          (1 / (frametime <= 0 ? 60 : frametime))
        #define PHYS_DODGING_TIMEOUT(s)                         STAT(DODGING_TIMEOUT)
        #define PHYS_DODGING_PRESSED_KEYS(s)            (s).pressedkeys
@@ -244,6 +244,9 @@ void PM_dodging(entity this)
        // ramp up dodging speed by adding some velocity each frame..
        if (this.dodging_action == 1)
        {
+               // FIXME is movement.z ever used?
+               // it seems the rest of the code uses PHYS_INPUT_BUTTON_JUMP for jumping
+
                //disable jump key during dodge accel phase
                if(PHYS_CS(this).movement.z > 0) { PHYS_CS(this).movement_z = 0; }