Pausing all sounds when switching to editor screen, temp save folder is cleared before saving (fixes unnecessary files being included in saves)
This commit is contained in:
@@ -314,6 +314,10 @@ namespace Barotrauma
|
||||
}
|
||||
|
||||
SoundPlayer.OverrideMusicType = "none";
|
||||
for (int i = 0; i < Sounds.SoundManager.DefaultSourceCount; i++)
|
||||
{
|
||||
Sounds.SoundManager.Pause(i);
|
||||
}
|
||||
|
||||
cam.UpdateTransform();
|
||||
}
|
||||
@@ -333,6 +337,10 @@ namespace Barotrauma
|
||||
if (wiringMode) ToggleWiringMode();
|
||||
|
||||
SoundPlayer.OverrideMusicType = null;
|
||||
for (int i = 0; i < Sounds.SoundManager.DefaultSourceCount; i++)
|
||||
{
|
||||
Sounds.SoundManager.Resume(i);
|
||||
}
|
||||
|
||||
if (dummyCharacter != null)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user