(e42047dc1) Tester's build, January 30th 2020

This commit is contained in:
Juan Pablo Arce
2020-01-30 15:56:31 -03:00
parent eaa18a20a3
commit 15499cb704
203 changed files with 8274 additions and 4950 deletions
@@ -504,11 +504,12 @@ namespace Barotrauma.Items.Components
loopingSoundChannel = null;
}
foreach (SoundChannel channel in playingOneshotSoundChannels)
//no need to Dispose these - SoundManager will do it when it when it needs a free channel and the sound has stopped playing
//disposing immediately on Remove will for example prevent explosives from playing a sound if the explosion removes the item
/*foreach (SoundChannel channel in playingOneshotSoundChannels)
{
channel.Dispose();
loopingSoundChannel = null;
}
}*/
if (GuiFrame != null) { GUI.RemoveFromUpdateList(GuiFrame, true); }
#endif