From 024a3b05d836c84394a9ae5d9d25666765f9b135 Mon Sep 17 00:00:00 2001 From: Alexandr Bushuev Date: Sun, 1 Dec 2024 22:30:33 +0500 Subject: [PATCH] Print messages about missing sounds in developer mode only. --- code/client/snd_codec.c | 2 +- code/client/snd_dma.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/code/client/snd_codec.c b/code/client/snd_codec.c index bc7e0bcb9..f97f509cf 100644 --- a/code/client/snd_codec.c +++ b/code/client/snd_codec.c @@ -112,7 +112,7 @@ static void *S_CodecGetSound( const char *filename, snd_info_t *info ) } } - Com_Printf( S_COLOR_YELLOW "WARNING: Failed to %s sound %s!\n", info ? "load" : "open", filename ); + Com_DPrintf( S_COLOR_YELLOW "WARNING: Failed to %s sound %s!\n", info ? "load" : "open", filename ); return NULL; } diff --git a/code/client/snd_dma.c b/code/client/snd_dma.c index b950b61bb..46f0c3312 100644 --- a/code/client/snd_dma.c +++ b/code/client/snd_dma.c @@ -331,7 +331,7 @@ static sfxHandle_t S_Base_RegisterSound( const char *name, qboolean compressed ) if ( sfx->soundData ) { if ( sfx->defaultSound ) { - Com_Printf( S_COLOR_YELLOW "WARNING: could not find %s - using default\n", sfx->soundName ); + Com_DPrintf( S_COLOR_YELLOW "WARNING: could not find %s - using default\n", sfx->soundName ); return 0; } return sfx - s_knownSfx; @@ -343,7 +343,7 @@ static sfxHandle_t S_Base_RegisterSound( const char *name, qboolean compressed ) S_memoryLoad( sfx ); if ( sfx->defaultSound ) { - Com_Printf( S_COLOR_YELLOW "WARNING: could not find %s - using default\n", sfx->soundName ); + Com_DPrintf( S_COLOR_YELLOW "WARNING: could not find %s - using default\n", sfx->soundName ); return 0; }