capturedemo wasn't respecting -nosound arg properly.

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@5765 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2020-09-15 09:58:29 +00:00
parent 378570256c
commit b040358b54
2 changed files with 2 additions and 1 deletions

View file

@ -4032,7 +4032,7 @@ static void Media_RecordFilm (char *recordingname, qboolean demo)
currentcapture_funcs = pluginencodersfunc[i]; currentcapture_funcs = pluginencodersfunc[i];
} }
} }
if (capturesound.ival) if (capturesound.ival && !nosound.ival)
{ {
sndkhz = snd_speed?snd_speed:48000; sndkhz = snd_speed?snd_speed:48000;
sndchannels = capturesoundchannels.ival; sndchannels = capturesoundchannels.ival;

View file

@ -312,6 +312,7 @@ extern cvar_t loadas8bit;
extern cvar_t bgmvolume; extern cvar_t bgmvolume;
extern cvar_t volume, mastervolume; extern cvar_t volume, mastervolume;
extern cvar_t snd_capture; extern cvar_t snd_capture;
extern cvar_t nosound;
extern float voicevolumemod; extern float voicevolumemod;