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
This commit is contained in:
Lance 2009-04-06 05:46:17 +00:00
parent 648caa9c57
commit 030e080baa

View file

@ -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
}
}
/*
===============