From 262c21afd14c1e60ea24b1bb2275973b7c14554b Mon Sep 17 00:00:00 2001 From: Spoike Date: Wed, 22 Feb 2006 23:35:04 +0000 Subject: [PATCH] Added f_qizmoconnect don't know if it works or not. git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@1996 fc73d0e0-1445-4013-8a0c-d673dee63da5 --- engine/client/cl_parse.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/engine/client/cl_parse.c b/engine/client/cl_parse.c index 767894073..6af00a5a4 100644 --- a/engine/client/cl_parse.c +++ b/engine/client/cl_parse.c @@ -1428,6 +1428,8 @@ void CL_ParseServerData (void) // game directory str = MSG_ReadString (); + if (!*str) + str = "qw"; #ifndef CLIENTONLY if (!sv.state) @@ -2751,6 +2753,16 @@ void CL_UpdateUserinfo (void) Q_strncpyz (player->userinfo, MSG_ReadString(), sizeof(player->userinfo)); CL_ProcessUserInfo (slot, player); + + + + if (slot == cl.playernum[0] && player->name[0]) + { + char *qz; + qz = Info_ValueForKey(player->userinfo, "Qizmo"); + if (*qz) + TP_ExecTrigger("f_qizmoconnect"); + } } /*