From 1ea3044fd64a8c0da3fba767bee7ca6ea339e18e Mon Sep 17 00:00:00 2001 From: Regalis Date: Mon, 13 Feb 2017 21:12:15 +0200 Subject: [PATCH] Firesource sound fix --- Subsurface/Source/Map/FireSource.cs | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/Subsurface/Source/Map/FireSource.cs b/Subsurface/Source/Map/FireSource.cs index c0948a07e..f735dde1a 100644 --- a/Subsurface/Source/Map/FireSource.cs +++ b/Subsurface/Source/Map/FireSource.cs @@ -344,8 +344,16 @@ namespace Barotrauma lightSource.Remove(); - if (basicSoundIndex > -1) Sounds.SoundManager.Stop(basicSoundIndex); - if (largeSoundIndex > -1) Sounds.SoundManager.Stop(largeSoundIndex); + if (basicSoundIndex > -1) + { + Sounds.SoundManager.Stop(basicSoundIndex); + basicSoundIndex = -1; + } + if (largeSoundIndex > -1) + { + Sounds.SoundManager.Stop(largeSoundIndex); + largeSoundIndex = -1; + } hull.RemoveFire(this); }