X-Git-Url: https://git.xonotic.org/?a=blobdiff_plain;f=cd_shared.c;h=88551e0a43ee6fa7d16844dd7ae3e13f3d0c30ba;hb=42e86ab7892c3d8f5373402a714b73b2e040d81b;hp=b5b520007593171cbc6db44bff65bf0421a601de;hpb=f13419f00e3f8335e9a25498560a433597f28f50;p=xonotic%2Fdarkplaces.git diff --git a/cd_shared.c b/cd_shared.c index b5b52000..88551e0a 100644 --- a/cd_shared.c +++ b/cd_shared.c @@ -122,7 +122,7 @@ static void CDAudio_Play_byName (const char *trackname, qbool looping, qbool try sfx_t* sfx; char filename[MAX_QPATH]; - Host_StartVideo(); + CL_StartVideo(); if (!enabled) return; @@ -275,7 +275,7 @@ static void CD_f(cmd_state_t *cmd) command = Cmd_Argv(cmd, 1); if (strcasecmp(command, "remap") != 0) - Host_StartVideo(); + CL_StartVideo(); if (strcasecmp(command, "on") == 0) { @@ -417,12 +417,12 @@ static void CDAudio_SetVolume (float newvol) return; // If the CD has been muted - if (newvol == 0.0f) + if (newvol <= 0.0f) CDAudio_Pause (); else { // If the CD has been unmuted - if (cdvolume == 0.0f) + if (cdvolume <= 0.0f) CDAudio_Resume (); if (faketrack != -1)