]> de.git.xonotic.org Git - xonotic/darkplaces.git/commitdiff
don't warn about svc_precache failing to precache sounds if snd_initialized is false...
authorhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Dec 2004 15:01:08 +0000 (15:01 +0000)
committerhavoc <havoc@d7cf8633-e32d-0410-b094-e92efae38249>
Tue, 14 Dec 2004 15:01:08 +0000 (15:01 +0000)
git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4842 d7cf8633-e32d-0410-b094-e92efae38249

cl_parse.c

index 4f509d7cc4a4b9e015c918e98cfcd1b84b6e9e4d..3b9f93d857c08b0cecdbb7a91f47deef5559c486 100644 (file)
@@ -1516,7 +1516,7 @@ void CL_ParseServerMessage(void)
                                        if (i >= 1 && i < MAX_SOUNDS)
                                        {
                                                sfx_t *sfx = S_PrecacheSound (s, true, false);
-                                               if (!sfx)
+                                               if (!sfx && snd_initialized.integer)
                                                        Con_Printf("svc_precache: S_PrecacheSound(\"%s\") failed\n", s);
                                                cl.sound_precache[i] = sfx;
                                        }