From 79f3a6f60eb1b909305113262d33a16e1c06ff2b Mon Sep 17 00:00:00 2001 From: Alibek Omarov #SupportRMS Date: Tue, 22 Jun 2021 00:49:22 +0300 Subject: [PATCH] engine: sound: code style fix --- engine/client/s_load.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/engine/client/s_load.c b/engine/client/s_load.c index e71d457b..10144c4a 100644 --- a/engine/client/s_load.c +++ b/engine/client/s_load.c @@ -141,9 +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() ) { + 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 );