]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/blobdiff - qcsrc/common/mutators/base.qh
Increase the maximum number of mutators
[xonotic/xonotic-data.pk3dir.git] / qcsrc / common / mutators / base.qh
index 4c39d6f7d5a4f32b46ef32e20fe90910a9b9eaee..1183914cf157ed5b1573bb4546d27c6a52579c5b 100644 (file)
@@ -155,7 +155,7 @@ CLASS(Mutator, Object)
     }
 ENDCLASS(Mutator)
 
-const int MAX_MUTATORS = 15;
+const int MAX_MUTATORS = 20;
 Mutator loaded_mutators[MAX_MUTATORS];
 
 bool Mutator_Add(Mutator mut)
@@ -228,6 +228,9 @@ STATIC_INIT(Mutators) {
     RegisterHooks();
     RegisterCallbacks();
     RegisterMutators();
+}
+
+STATIC_INIT_LATE(Mutators) {
     FOREACH(MUTATORS, it.mutatorcheck(), LAMBDA(Mutator_Add(it)));
 }