Unstable 0.17.7.0
This commit is contained in:
@@ -178,6 +178,7 @@ namespace Barotrauma
|
||||
SoundChannel chn = waterAmbienceChannels.FirstOrDefault(c => c.Sound == sound);
|
||||
if (chn is null || !chn.IsPlaying)
|
||||
{
|
||||
if (volume < 0.01f) { return; }
|
||||
if (!(chn is null)) { waterAmbienceChannels.Remove(chn); }
|
||||
chn = sound.Play(volume, "waterambience");
|
||||
chn.Looping = true;
|
||||
|
||||
Reference in New Issue
Block a user