]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
let's not pretend this code actuall does anything or that we can use the return value
authorMartin Taibr <taibr.martin@gmail.com>
Sat, 12 Aug 2017 23:26:28 +0000 (01:26 +0200)
committerMartin Taibr <taibr.martin@gmail.com>
Sat, 12 Aug 2017 23:26:28 +0000 (01:26 +0200)
qcsrc/common/mutators/mutator/dodging/sv_dodging.qc

index a6c42533c34c09d71074508098500b5dd3c4fc4f..d0516e6d1996fcb05d69c289b37bfa85339f52ec 100644 (file)
@@ -283,9 +283,9 @@ void PM_dodging(entity this)
        }
 }
 
+#ifdef CSQC
 void PM_dodging_GetPressedKeys(entity this)
 {
-#ifdef CSQC
        PM_dodging_checkpressedkeys(this);
 
        int keys = this.pressedkeys;
@@ -299,15 +299,16 @@ void PM_dodging_GetPressedKeys(entity this)
        keys = BITSET(keys, KEY_ATCK,           PHYS_INPUT_BUTTON_ATCK(this));
        keys = BITSET(keys, KEY_ATCK2,          PHYS_INPUT_BUTTON_ATCK2(this));
        this.pressedkeys = keys;
-#endif
 }
+#endif
 
 MUTATOR_HOOKFUNCTION(dodging, PlayerPhysics)
 {
        entity player = M_ARGV(0, entity);
 
-       // print("dodging_PlayerPhysics\n");
+#ifdef CSQC
        PM_dodging_GetPressedKeys(player);
+#endif
        PM_dodging(player);
 }