mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 22:01:50 +00:00
Fix some CLIENT_ONLY issues.
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5538 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
474f01d553
commit
d2fd1daba8
1 changed files with 5 additions and 1 deletions
|
@ -541,7 +541,7 @@ static qboolean QDECL Plug_Cvar_GetString(const char *name, char *outbuffer, qui
|
||||||
if (!strcmp(name, "sv.mapname"))
|
if (!strcmp(name, "sv.mapname"))
|
||||||
{
|
{
|
||||||
#ifdef CLIENTONLY
|
#ifdef CLIENTONLY
|
||||||
Q_strncpyz(ret, "", retsize);
|
Q_strncpyz(outbuffer, "", sizeofbuffer);
|
||||||
#else
|
#else
|
||||||
Q_strncpyz(outbuffer, svs.name, sizeofbuffer);
|
Q_strncpyz(outbuffer, svs.name, sizeofbuffer);
|
||||||
#endif
|
#endif
|
||||||
|
@ -1855,7 +1855,11 @@ static void *QDECL PlugBI_GetEngineInterface(const char *interfacename, size_t s
|
||||||
Plug_GetLastInputFrame,
|
Plug_GetLastInputFrame,
|
||||||
Plug_GetServerInfo,
|
Plug_GetServerInfo,
|
||||||
Plug_SetUserInfo,
|
Plug_SetUserInfo,
|
||||||
|
#if defined(HAVE_SERVER) && defined(HAVE_CLIENT)
|
||||||
Plug_MapLog_Query,
|
Plug_MapLog_Query,
|
||||||
|
#else
|
||||||
|
NULL,
|
||||||
|
#endif
|
||||||
#ifdef QUAKEHUD
|
#ifdef QUAKEHUD
|
||||||
Plug_GetTeamInfo,
|
Plug_GetTeamInfo,
|
||||||
Plug_GetWeaponStats,
|
Plug_GetWeaponStats,
|
||||||
|
|
Loading…
Reference in a new issue