Fix playglobalsound with a volume parameter being too loud (#13421)

This commit is contained in:
DrSmugleaf
2023-01-10 22:45:08 +01:00
committed by GitHub
parent b5ff3cad17
commit 333ee3edcc

View File

@@ -76,7 +76,7 @@ public sealed class ServerGlobalSoundSystem : SharedGlobalSoundSystem
public void PlayGlobalSoundCommand(IConsoleShell shell, string argStr, string[] args)
{
Filter filter;
var audio = AudioParams.Default.WithVolume(-8);
var audio = AudioParams.Default;
bool replay = true;
@@ -139,6 +139,7 @@ public sealed class ServerGlobalSoundSystem : SharedGlobalSoundSystem
break;
}
audio = audio.AddVolume(-8);
PlayAdminGlobal(filter, args[0], audio, replay);
}
}