From: havoc Date: Tue, 14 Dec 2004 15:01:08 +0000 (+0000) Subject: don't warn about svc_precache failing to precache sounds if snd_initialized is false... X-Git-Tag: xonotic-v0.1.0preview~5297 X-Git-Url: https://git.rm.cloudns.org/?a=commitdiff_plain;h=d3fdee360f1ff1d74e917005b633c024e0538aba;p=xonotic%2Fdarkplaces.git don't warn about svc_precache failing to precache sounds if snd_initialized is false (-nosound or -safe was used) git-svn-id: svn://svn.icculus.org/twilight/trunk/darkplaces@4842 d7cf8633-e32d-0410-b094-e92efae38249 --- diff --git a/cl_parse.c b/cl_parse.c index 4f509d7c..3b9f93d8 100644 --- a/cl_parse.c +++ b/cl_parse.c @@ -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; }