From bae28b3f786d6806287e71479e2ebf185eac36b8 Mon Sep 17 00:00:00 2001 From: Ben Millwood Date: Sat, 3 Oct 2009 11:59:25 +0000 Subject: Fix server-side team voip check --- src/server/sv_client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/server/sv_client.c b/src/server/sv_client.c index 4be1ec10..4fa0b24f 100644 --- a/src/server/sv_client.c +++ b/src/server/sv_client.c @@ -1537,10 +1537,10 @@ void SV_UserVoip( client_t *cl, msg_t *msg ) { continue; // not addressed to this player. // this is not really the best way to do this - else if (Info_ValueForKey(svs.clients[sender].userinfo, - "cg_voipTeamOnly") && - Info_ValueForKey(svs.clients[sender].userinfo, "t") != - Info_ValueForKey(svs.clients[i].userinfo, "t")) + else if (atoi(Info_ValueForKey(svs.clients[sender].userinfo, + "cg_voipTeamOnly")) && + atoi(Info_ValueForKey(svs.clients[sender].userinfo, "t")) != + atoi(Info_ValueForKey(svs.clients[i].userinfo, "t"))) continue; // Transmit this packet to the client. -- cgit