Drop sounds starting with * before allocating sfx slot
Causes handle 0 to be returned by S_RegisterSound.
This commit is contained in:
parent
e4227d1cd5
commit
a836c2db89
3 changed files with 10 additions and 9 deletions
|
@ -208,11 +208,6 @@ qboolean S_LoadSound( sfx_t *sfx )
|
|||
snd_info_t info;
|
||||
// int size;
|
||||
|
||||
// player specific sounds are never directly loaded
|
||||
if ( sfx->soundName[0] == '*') {
|
||||
return qfalse;
|
||||
}
|
||||
|
||||
// load it in
|
||||
data = S_CodecLoad(sfx->soundName, &info);
|
||||
if(!data)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue