From: Mario Date: Wed, 2 Dec 2015 00:54:19 +0000 (+1000) Subject: Don't show doublejump in running mutators X-Git-Tag: xonotic-v0.8.2~1586 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=25fe36de00bf643291d4692dc7f1b444a27c9888;p=xonotic%2Fxonotic-data.pk3dir.git Don't show doublejump in running mutators --- diff --git a/qcsrc/common/mutators/mutator/doublejump/doublejump.qc b/qcsrc/common/mutators/mutator/doublejump/doublejump.qc index 7a09b81e1..a7aaa780f 100644 --- a/qcsrc/common/mutators/mutator/doublejump/doublejump.qc +++ b/qcsrc/common/mutators/mutator/doublejump/doublejump.qc @@ -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