]> git.rm.cloudns.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Don't show doublejump in running mutators
authorMario <mario@smbclan.net>
Wed, 2 Dec 2015 00:54:19 +0000 (10:54 +1000)
committerMario <mario@smbclan.net>
Wed, 2 Dec 2015 00:54:19 +0000 (10:54 +1000)
qcsrc/common/mutators/mutator/doublejump/doublejump.qc

index 7a09b81e1dc9d251e59818768a806034b9991047..a7aaa780f9df472200d6de1360e6a1367b484403 100644 (file)
@@ -4,7 +4,11 @@
 #endif
 #include "../../../physics.qh"
 
+#ifdef SVQC
+REGISTER_MUTATOR(doublejump, autocvar_sv_doublejump);
+#elif defined(CSQC)
 REGISTER_MUTATOR(doublejump, true);
+#endif
 
 #define PHYS_DOUBLEJUMP(s)                     STAT(DOUBLEJUMP, s)
 
@@ -27,19 +31,4 @@ MUTATOR_HOOKFUNCTION(doublejump, PlayerJump)
        return false;
 }
 
-#ifdef SVQC
-
-MUTATOR_HOOKFUNCTION(doublejump, BuildMutatorsString)
-{
-       ret_string = strcat(ret_string, ":doublejump");
-       return false;
-}
-
-MUTATOR_HOOKFUNCTION(doublejump, BuildMutatorsPrettyString)
-{
-       ret_string = strcat(ret_string, ", Double jump");
-       return false;
-}
-
-#endif
 #endif