- added a compatibility option for stopping sounds when the owning actor is destroyed.

This commit is contained in:
Christoph Oelckers 2014-10-25 12:12:06 +02:00
commit ef5707d73b
6 changed files with 6 additions and 1 deletions

View file

@ -1575,7 +1575,7 @@ void S_RelinkSound (AActor *from, AActor *to)
{
chan->Actor = to;
}
else if (!(chan->ChanFlags & CHAN_LOOP))
else if (!(chan->ChanFlags & CHAN_LOOP) && !(compatflags2 & COMPATF2_SOUNDCUTOFF))
{
chan->Actor = NULL;
chan->SourceType = SOURCE_Unattached;