From: terencehill Date: Sat, 9 Feb 2019 12:06:33 +0000 (+0100) Subject: Disable spawnfunc.qh code in client and menu as it's not used X-Git-Tag: xonotic-v0.8.5~1604^2~4 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=06c761d4fa2fd9fd0a87dda7f0a2ad1b9b519cbe;p=xonotic%2Fxonotic-data.pk3dir.git Disable spawnfunc.qh code in client and menu as it's not used --- diff --git a/qcsrc/lib/spawnfunc.qh b/qcsrc/lib/spawnfunc.qh index 2d1397bc1..37bb11768 100644 --- a/qcsrc/lib/spawnfunc.qh +++ b/qcsrc/lib/spawnfunc.qh @@ -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