]> git.xonotic.org Git - xonotic/xonotic-data.pk3dir.git/commitdiff
Disable spawnfunc.qh code in client and menu as it's not used
authorterencehill <piuntn@gmail.com>
Sat, 9 Feb 2019 12:06:33 +0000 (13:06 +0100)
committerterencehill <piuntn@gmail.com>
Sat, 9 Feb 2019 12:06:33 +0000 (13:06 +0100)
qcsrc/lib/spawnfunc.qh

index 2d1397bc1be1271531c4ba40bf65a9891f0d4288..37bb11768c87022e1e698137a420c6307e1bce8c 100644 (file)
@@ -1,5 +1,8 @@
 #pragma once
 
+// remove this ifdef when client or menu will actually make use of this stuff
+#ifdef SVQC
+
 /** If this global exists, only functions with spawnfunc_ name prefix qualify as spawn functions */
 noref bool require_spawnfunc_prefix;
 .bool spawnfunc_checked;
@@ -278,3 +281,5 @@ noref bool __spawnfunc_first;
                if (__spawnfunc_unreachable_workaround) return; \
        } \
        void __spawnfunc_##id(entity this)
+
+#endif