-nosound readded (which registers and locks the nosound cvar, and prevents any sound devices being intiailsed or anything fun like that)

git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@544 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
Spoike 2004-12-02 07:09:14 +00:00
parent f3c4aa6293
commit 73680ca9b7

View file

@ -272,6 +272,9 @@ void S_Restart_f (void)
extern qboolean snd_firsttime;
Cache_Flush();//forget the old sounds.
if (COM_CheckParm("-nosound"))
return;
S_StopAllSounds (true);
S_Shutdown();
@ -428,10 +431,15 @@ void S_Init (void)
Con_Printf("Sound is already initialized\n");
return;
}
// Con_Printf("\nSound Initialization\n");
Con_Printf("\nSound Initialization\n");
// if (COM_CheckParm("-nosound"))
// return;
if (COM_CheckParm("-nosound"))
{
Cvar_Register(&nosound, "Sound controls");
Cvar_ForceSet(&nosound, "1");
nosound.flags |= CVAR_NOSET;
return;
}
// if (COM_CheckParm("-simsound"))
// fakedma = true;