git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4711
d7cf8633-e32d-0410-b094-
e92efae38249
// rights reserved.
#include "quakedef.h"
+#include "snd_main.h"
#define MAXTRACKS 256
return;
}
- if (cdPlaying && cdPlayTrack == track)
+ if (cdPlaying && cdPlayTrack == track && faketrack == -1)
return;
CDAudio_Stop ();
// Try playing a fake track (sound file) first
sfx = S_PrecacheSound (va ("cdtracks/track%02u.wav", track), false, false);
// FIXME: perhaps force it to be always %03u (but for compatibility?):
- if (!sfx)
+ if (sfx == NULL || sfx->fetcher == NULL)
sfx = S_PrecacheSound (va ("cdtracks/track%03u.wav", track), false, false);
if (sfx != NULL)
{