mirror of
https://github.com/nzp-team/fteqw.git
synced 2025-01-31 20:50:47 +00:00
Sound mixing was failing to add sound effects on certain sound outputs...
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@3331 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
1d68abc578
commit
bce186834f
1 changed files with 2 additions and 0 deletions
|
@ -808,6 +808,8 @@ channel_t *SND_PickChannel(soundcardinfo_t *sc, int entnum, int entchannel)
|
|||
if (sc->channel[first_to_die].sfx)
|
||||
sc->channel[first_to_die].sfx = NULL;
|
||||
|
||||
if (sc->total_chans <= first_to_die)
|
||||
sc->total_chans = first_to_die+1;
|
||||
return &sc->channel[first_to_die];
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue