]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - snd_mem.c
no longer complains about missing sounds loaded by the engine (wind2, water1, etc...
[xonotic/darkplaces.git] / snd_mem.c
index 4e2a94ec26d91c0511d6da07e4739387bd5efcfb..9c355a12db7409fc32abd53a603962b3921ce63c 100644 (file)
--- a/snd_mem.c
+++ b/snd_mem.c
@@ -211,7 +211,7 @@ void ResampleSfx (sfxcache_t *sc, qbyte *data, char *name)
 S_LoadSound
 ==============
 */
-sfxcache_t *S_LoadSound (sfx_t *s)
+sfxcache_t *S_LoadSound (sfx_t *s, int complain)
 {
     char       namebuffer[256];
        qbyte   *data;
@@ -231,7 +231,8 @@ sfxcache_t *S_LoadSound (sfx_t *s)
 
        if (!data)
        {
-               Con_Printf ("Couldn't load %s\n", namebuffer);
+               if (complain)
+                       Con_Printf ("Couldn't load %s\n", namebuffer);
                return NULL;
        }