From ba53563804ad3589f5ad5618230606dd3cb4410f Mon Sep 17 00:00:00 2001 From: icculus Date: Sun, 8 Jun 2008 08:25:25 +0000 Subject: VoIP: Save own voice when recording a demo. We fake a server packet and write it directly to the demo file at the point where we'd transmit to the server. This is a little nasty, but it seems to be the most reasonable solution. git-svn-id: svn://svn.icculus.org/quake3/trunk@1382 edf5b092-35ff-0310-97b2-ce42778d08ea --- code/client/cl_parse.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'code/client/cl_parse.c') diff --git a/code/client/cl_parse.c b/code/client/cl_parse.c index 18cbe27..2219529 100644 --- a/code/client/cl_parse.c +++ b/code/client/cl_parse.c @@ -641,8 +641,8 @@ qboolean CL_ShouldIgnoreVoipSender(int sender) { if (!voip->integer) return qtrue; // VoIP is disabled. - else if (sender == clc.clientNum) - return qtrue; // this is us, don't output our own voice. + else if ((sender == clc.clientNum) && (!clc.demoplaying)) + return qtrue; // ignore own voice (unless playing back a demo). else if (clc.voipMuteAll) return qtrue; // all channels are muted with extreme prejudice. else if (clc.voipIgnore[sender]) -- cgit v1.2.3