From: TimePath Date: Wed, 14 Oct 2015 11:17:45 +0000 (+1100) Subject: Mutators: remove MUTATOR_HOOKFUNCTION_1 X-Git-Tag: xonotic-v0.8.2~1801^2~39^2 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=1d8eda74bd20ea5eaafe078313a0e4f7ca40134e;p=xonotic%2Fxonotic-data.pk3dir.git Mutators: remove MUTATOR_HOOKFUNCTION_1 --- diff --git a/qcsrc/common/mutators/base.qh b/qcsrc/common/mutators/base.qh index f6fa534d6..58213aabd 100644 --- a/qcsrc/common/mutators/base.qh +++ b/qcsrc/common/mutators/base.qh @@ -249,10 +249,6 @@ STATIC_INIT_LATE(Mutators) { #define MUTATOR_HOOKFUNCTION(...) \ EVAL(OVERLOAD(MUTATOR_HOOKFUNCTION, __VA_ARGS__)) -#define MUTATOR_HOOKFUNCTION_1(name) \ - _MUTATOR_CALLBACK(name, HOOKFUNCTION_##name) \ - bool HOOKFUNCTION_##name() - #define MUTATOR_HOOKFUNCTION_2(mut, cb) \ MUTATOR_HOOKFUNCTION_3(mut, cb, CBC_ORDER_ANY) diff --git a/qcsrc/server/mutators/gamemode_ca.qc b/qcsrc/server/mutators/gamemode_ca.qc index fe28a25bb..fb66bb28f 100644 --- a/qcsrc/server/mutators/gamemode_ca.qc +++ b/qcsrc/server/mutators/gamemode_ca.qc @@ -214,7 +214,7 @@ MUTATOR_HOOKFUNCTION(ca, ClientConnect) return 1; } -MUTATOR_HOOKFUNCTION(ca_reset_map_global) +MUTATOR_HOOKFUNCTION(ca, reset_map_global) { allowed_to_spawn = true; return 1;