Fix two small ambient sound bugs. (#13249)

This commit is contained in:
Leon Friedrich
2023-01-01 13:40:22 +13:00
committed by GitHub
parent c2d3aedc58
commit ccac9efc26
2 changed files with 3 additions and 8 deletions

View File

@@ -86,6 +86,7 @@ namespace Content.Client.Audio
{
base.Initialize();
UpdatesOutsidePrediction = true;
UpdatesAfter.Add(typeof(AmbientSoundTreeSystem));
_cfg.OnValueChanged(CCVars.AmbientCooldown, SetCooldown, true);
_cfg.OnValueChanged(CCVars.MaxAmbientSources, SetAmbientCount, true);