]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cd_shared.c
Merge PR 'Curl improvements'
[xonotic/darkplaces.git] / cd_shared.c
index b5b520007593171cbc6db44bff65bf0421a601de..88551e0a43ee6fa7d16844dd7ae3e13f3d0c30ba 100644 (file)
@@ -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)