X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=qcsrc%2Fcommon%2Fmutators%2Fbase.qh;h=cc4cc0129593044474468adff6b9434636fcdcf9;hb=f63733d5838553838e5b58ae413e016cc2b0467f;hp=c1d658576e2cb4b22e43a7e6446356312467265f;hpb=aff08d8c43e7d40207495ed9a938338aae7f0666;p=xonotic%2Fxonotic-data.pk3dir.git diff --git a/qcsrc/common/mutators/base.qh b/qcsrc/common/mutators/base.qh index c1d658576..cc4cc0129 100644 --- a/qcsrc/common/mutators/base.qh +++ b/qcsrc/common/mutators/base.qh @@ -171,7 +171,8 @@ void Mutator_Remove(Mutator mut); bool mutator_log = false; .bool m_added; -#define MUTATOR_IS_ENABLED(this) MUTATOR_##this.mutatorcheck() +#define _MUTATOR_IS_ENABLED(this) this.mutatorcheck() +#define MUTATOR_IS_ENABLED(this) _MUTATOR_IS_ENABLED(MUTATOR_##this) #ifdef GAMEQC /** server mutators activate corresponding client mutators for all clients */ @@ -276,7 +277,7 @@ STATIC_INIT(Mutators) { } STATIC_INIT_LATE(Mutators) { - FOREACH(Mutators, it.mutatorcheck(), Mutator_Add(it)); + FOREACH(Mutators, _MUTATOR_IS_ENABLED(it), Mutator_Add(it)); } #define MUTATOR_ONADD if (mode == MUTATOR_ADDING)