Skip to content

Commit

Permalink
Print messages about missing sounds in developer mode only.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexandr Bushuev committed Dec 1, 2024
1 parent 3a5601b commit 024a3b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion code/client/snd_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions code/client/snd_dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down

0 comments on commit 024a3b0

Please sign in to comment.