Fix streamersafemusic Cvar

This commit is contained in:
NepDisk 2025-02-18 14:50:02 -05:00
parent 71dd3666b8
commit b181133810

View file

@ -261,6 +261,7 @@ void S_RegisterSoundStuff(void)
CV_RegisterVar(&cv_samplerate);
CV_RegisterVar(&cv_playsoundifunfocused);
CV_RegisterVar(&cv_playmusicifunfocused);
CV_RegisterVar(&cv_streamersafemusic);
CV_RegisterVar(&cv_gamesounds);
CV_RegisterVar(&cv_gamedigimusic);
@ -1699,6 +1700,11 @@ void S_ShowMusicCredit(void)
return;
}
if (def->contentidunsafe && cv_streamersafemusic.value)
{
return;
}
work = va("\x1F %s", def->title);
worklen = strlen(work);
if (worklen <= len)