summaryrefslogtreecommitdiff
path: root/src/client/snd_openal.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/snd_openal.c')
-rw-r--r--src/client/snd_openal.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/client/snd_openal.c b/src/client/snd_openal.c
index 23a6a67d..b7ce3f0f 100644
--- a/src/client/snd_openal.c
+++ b/src/client/snd_openal.c
@@ -211,6 +211,11 @@ static sfxHandle_t S_AL_BufferFind(const char *filename)
return 0;
}
+ if ( filename[0] == '*' ) {
+ Com_Printf( S_COLOR_YELLOW "WARNING: Tried to load player sound directly: %s\n", filename );
+ return 0;
+ }
+
for(i = 0; i < numSfx; i++)
{
if(!Q_stricmp(knownSfx[i].filename, filename))
@@ -328,10 +333,6 @@ static void S_AL_BufferLoad(sfxHandle_t sfx, qboolean cache)
if(curSfx->filename[0] == '\0')
return;
- // Player SFX
- if(curSfx->filename[0] == '*')
- return;
-
// Already done?
if((curSfx->inMemory) || (curSfx->isDefault) || (!cache && curSfx->isDefaultChecked))
return;