From d2fd1daba82fc171caa67e45504f4f190c263b5f Mon Sep 17 00:00:00 2001 From: Spoike Date: Sat, 7 Sep 2019 16:19:13 +0000 Subject: [PATCH] Fix some CLIENT_ONLY issues. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5538 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/common/plugin.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/engine/common/plugin.c b/engine/common/plugin.c index 6963a83c7..3a2b812ef 100644 --- a/engine/common/plugin.c +++ b/engine/common/plugin.c @@ -541,7 +541,7 @@ static qboolean QDECL Plug_Cvar_GetString(const char *name, char *outbuffer, qui if (!strcmp(name, "sv.mapname")) { #ifdef CLIENTONLY - Q_strncpyz(ret, "", retsize); + Q_strncpyz(outbuffer, "", sizeofbuffer); #else Q_strncpyz(outbuffer, svs.name, sizeofbuffer); #endif @@ -1855,7 +1855,11 @@ static void *QDECL PlugBI_GetEngineInterface(const char *interfacename, size_t s Plug_GetLastInputFrame, Plug_GetServerInfo, Plug_SetUserInfo, +#if defined(HAVE_SERVER) && defined(HAVE_CLIENT) Plug_MapLog_Query, +#else + NULL, +#endif #ifdef QUAKEHUD Plug_GetTeamInfo, Plug_GetWeaponStats,