From 030e080baaebf07a864906141f65bf46faf474b5 Mon Sep 17 00:00:00 2001 From: Lance Date: Mon, 6 Apr 2009 05:46:17 +0000 Subject: [PATCH] Wrapped sv.state with #ifndef CLIENTONLY to resolve npqtv's compile error (I hope it's the proper fix, Spike please check if I did the right thing): ./client/cl_main.c: In function "Host_Init" ./client/cl_main.c:3708: error: "sv" undeclared (first use in this function) ./client/cl_main.c:3708: error: (Each undeclared identifier is reported only once git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3158 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_main.c | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/engine/client/cl_main.c b/engine/client/cl_main.c index 6e912655b..ae5c79041 100644 --- a/engine/client/cl_main.c +++ b/engine/client/cl_main.c @@ -3704,15 +3704,19 @@ Con_TPrintf (TL_NL); "\n" "See the GNU General Public License for more details.\n"); - if (!*cls.servername) - if (!sv.state) - { - if (qrenderer > QR_NONE) - M_ToggleMenu_f(); - //Con_ForceActiveNow(); - } -} + if (!*cls.servername) + { + #ifndef CLIENTONLY + if (!sv.state) + { + if (qrenderer > QR_NONE) + M_ToggleMenu_f(); + //Con_ForceActiveNow(); + } + #endif + } +} /* ===============