v1.6.17.0 (Unto the Breach update)

This commit is contained in:
Regalis11
2024-10-22 17:29:04 +03:00
parent e74b3cdb17
commit 6e6c17e100
417 changed files with 17166 additions and 5870 deletions
@@ -73,9 +73,16 @@ namespace Barotrauma
}
Sound? existingSound = null;
if (roundSoundByPath.TryGetValue(filename.FullPath, out RoundSound? rs) && rs.Sound is { Disposed: false })
if (roundSoundByPath.TryGetValue(filename.FullPath, out RoundSound? rs))
{
existingSound = rs.Sound;
if (rs.Sound is { Disposed: false })
{
existingSound = rs.Sound;
}
else
{
roundSoundByPath.Remove(filename.FullPath);
}
}
if (existingSound is null)