]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
fixed the complaints about missing sounds (no longer complains after the initial...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 1 Jan 2004 02:33:48 +0000 (02:33 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Thu, 1 Jan 2004 02:33:48 +0000 (02:33 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@3771 d7cf8633-e32d-0410-b094-e92efae38249

snd_dma.c

index 29bb664b5a06e064273019fab6b51e40a513b5bb..2faf2967a4555e53d1c7225722c831b1de19978d 100644 (file)
--- a/snd_dma.c
+++ b/snd_dma.c
@@ -474,7 +474,7 @@ void S_StartSound(int entnum, int entchannel, sfx_t *sfx, vec3_t origin, float f
        int             ch_idx;
        int             skip;
 
-       if (!sound_started || !sfx || nosound.integer)
+       if (!sound_started || !sfx || !sfx->sfxcache || nosound.integer)
                return;
 
        vol = fvol*255;