Hotfix v0.18.12.0

This commit is contained in:
Regalis11
2022-06-17 16:10:25 +03:00
parent 41154b8bb3
commit 631e59e8b8
14 changed files with 56 additions and 17 deletions
@@ -405,13 +405,13 @@ namespace Barotrauma.Items.Components
float newVolume;
try
{
newVolume = Math.Min(property.GetFloatValue(this), 1.0f);
newVolume = property.GetFloatValue(this);
}
catch
{
return 0.0f;
}
newVolume *= sound.VolumeMultiplier;
newVolume = Math.Min(newVolume * sound.VolumeMultiplier, 1.0f);
if (!MathUtils.IsValid(newVolume))
{