]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/base.qh
Added MUTATOR_IS_ENABLED macro.
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / base.qh
index 565e39998d7d4186d20ef3937f60ceddc9d53830..163960ba5f5d9ee2d4841b277d28bbe2b316f464 100644 (file)
@@ -171,6 +171,8 @@ void Mutator_Remove(Mutator mut);
 bool mutator_log = false;
 .bool m_added;
 
+#define MUTATOR_IS_ENABLED(this) MUTATOR_##this.mutatorcheck()
+
 #ifdef GAMEQC
 /** server mutators activate corresponding client mutators for all clients */
 REGISTER_NET_LINKED(Mutator)