Fixed bug with Sound of notifications

This commit is contained in:
Daniel van Noord committed 2020-12-13 22:12:53 +01:00
1 parent a867d3d896
commit b80d2b63e8
2 files changed
+2 -4

No files matched your search

+1 -2
View File
@@ -980,8 +980,7 @@ CM.Disp.Flash = function(mode, config) {
CM.Disp.PlaySound = function(url, sndConfig, volConfig) {
if (CM.Config[sndConfig] == 1) {
var sound = new realAudio(url);
// * 2 as the standard Game volume is 50%, which is quite low
sound.volume = (CM.Config[volConfig] / 100) * Game.volume * 2;
sound.volume = (CM.Config[volConfig] / 100) * (Game.volume / 100);
sound.play();
}
}