From a2c83144c07d0ea7fdfd1e6238ed4b2d8c7d5f76 Mon Sep 17 00:00:00 2001 From: SNMetamorph <25657591+SNMetamorph@users.noreply.github.com> Date: Sun, 20 Jun 2021 23:28:27 +0400 Subject: [PATCH] engine: sound: warn about late precached sounds in developer mode --- engine/client/s_load.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/engine/client/s_load.c b/engine/client/s_load.c index 8f3a0d36..e71d457b 100644 --- a/engine/client/s_load.c +++ b/engine/client/s_load.c @@ -141,6 +141,9 @@ wavdata_t *S_LoadSound( sfx_t *sfx ) if( Q_stricmp( sfx->name, "*default" )) { // load it from disk + if( host_developer.value > 0 && CL_Active() ) { + Con_Printf( S_WARN "S_LoadSound: late precache of %s\n", sfx->name ); + } if( sfx->name[0] == '*' ) sc = FS_LoadSound( sfx->name + 1, NULL, 0 ); else sc = FS_LoadSound( sfx->name, NULL, 0 );