diff options
author | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-06-08 08:25:25 +0000 |
---|---|---|
committer | icculus <icculus@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2008-06-08 08:25:25 +0000 |
commit | ba53563804ad3589f5ad5618230606dd3cb4410f (patch) | |
tree | f6362763e85fa190ab609fd53d44586040d11604 /code/client/cl_parse.c | |
parent | 0cfbb51836fefc35f6e1aa612d6bc77203d6b1d3 (diff) | |
download | ioquake3-aero-ba53563804ad3589f5ad5618230606dd3cb4410f.tar.gz ioquake3-aero-ba53563804ad3589f5ad5618230606dd3cb4410f.zip |
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
Diffstat (limited to 'code/client/cl_parse.c')
-rw-r--r-- | code/client/cl_parse.c | 4 |
1 files changed, 2 insertions, 2 deletions
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]) |