]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cd_linux.c
changed collision brush loader to not discard planes that don't produce a polygon...
[xonotic/darkplaces.git] / cd_linux.c
index b0e4fb0093d26a46a67d08dab4f783522bcb52b6..2db702cb3f9f2b685ee644377b51e49c997a4fea 100644 (file)
@@ -105,7 +105,7 @@ void CDAudio_SysSetVolume (float volume)
        if (cdfile == -1)
                return;
 
-       vol.channel0 = vol.channel1 = volume * 255;
+       vol.channel0 = vol.channel1 = (__u8)(volume * 255);
        vol.channel2 = vol.channel3 = 0;
 
        if (ioctl (cdfile, CDROMVOLCTRL, &vol) == -1)