From 06c761d4fa2fd9fd0a87dda7f0a2ad1b9b519cbe Mon Sep 17 00:00:00 2001 From: terencehill Date: Sat, 9 Feb 2019 13:06:33 +0100 Subject: [PATCH] Disable spawnfunc.qh code in client and menu as it's not used --- qcsrc/lib/spawnfunc.qh | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.39.2