diff options
author | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-05-30 17:19:31 +0000 |
---|---|---|
committer | ludwig <ludwig@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-05-30 17:19:31 +0000 |
commit | 94017ca419caff91bf26841b503b5867d992ca4c (patch) | |
tree | cc47c21ed603a9d1da62133019b2234d445bf0fc /code/client/cl_cgame.c | |
parent | 159ae1a34675660e6d155ac77975e8ec7efc5f7b (diff) | |
download | ioquake3-aero-94017ca419caff91bf26841b503b5867d992ca4c.tar.gz ioquake3-aero-94017ca419caff91bf26841b503b5867d992ca4c.zip |
mumble link support
The coordinate calculation was adopted from Warsow's mumble patch.
git-svn-id: svn://svn.icculus.org/quake3/trunk@1347 edf5b092-35ff-0310-97b2-ce42778d08ea
Diffstat (limited to 'code/client/cl_cgame.c')
-rw-r--r-- | code/client/cl_cgame.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/code/client/cl_cgame.c b/code/client/cl_cgame.c index da9ac01..334294e 100644 --- a/code/client/cl_cgame.c +++ b/code/client/cl_cgame.c @@ -25,6 +25,8 @@ Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA #include "../botlib/botlib.h" +#include "libmumblelink.h" + extern botlib_export_t *botlib_export; extern qboolean loadCamera(const char *name); @@ -907,6 +909,13 @@ void CL_FirstSnapshot( void ) { Cbuf_AddText( cl_activeAction->string ); Cvar_Set( "activeAction", "" ); } + +#ifdef USE_MUMBLE + if ((cl_useMumble->integer) && !mumble_islinked()) { + int ret = mumble_link(CLIENT_WINDOW_TITLE); + Com_Printf("Mumble: Linking to Mumble application %s\n", ret==0?"ok":"failed"); + } +#endif } /* |