summaryrefslogtreecommitdiff
path: root/src/server/sv_client.c
diff options
context:
space:
mode:
authorBen Millwood <thebenmachine@gmail.com>2009-10-03 11:59:25 +0000
committerTim Angus <tim@ngus.net>2013-01-03 00:15:34 +0000
commitbae28b3f786d6806287e71479e2ebf185eac36b8 (patch)
treea52cea6b60535aac6c26eac5468b00d8644cb238 /src/server/sv_client.c
parentbb8b36150fe210e050ed47781f8cded1cf753b68 (diff)
Fix server-side team voip check
Diffstat (limited to 'src/server/sv_client.c')
-rw-r--r--src/server/sv_client.c8
1 files 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.