]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cd_shared.c
Add support for libmodplug (when found). Sound files with an extension are now all...
[xonotic/darkplaces.git] / cd_shared.c
index 03596e78bd5cbcf17b41ddf23c718a3d6fee2d9b..e6c27a88217276737e1d221281d810d3ed4b2ca0 100644 (file)
@@ -133,6 +133,8 @@ void CDAudio_Play_byName (const char *trackname, qboolean looping)
        else
        {
                sfx = S_PrecacheSound (va("cdtracks/%s.wav", trackname), false, false);
+               if (sfx == NULL || !S_IsSoundPrecached (sfx))
+                       sfx = S_PrecacheSound (va("cdtracks/%s", trackname), false, false);
        }
        if (sfx != NULL)
        {