Incorporated the general game volume in calculation of notifications volumes
This commit is contained in:
2 files changed
+2
-2
No files matched your search
+1
-1
@@ -1884,7 +1884,7 @@ CM.Disp.Flash = function(mode, config) {
|
||||
CM.Disp.PlaySound = function(url, sndConfig, volConfig) {
|
||||
if (CM.Config[sndConfig] == 1) {
|
||||
var sound = new realAudio(url);
|
||||
sound.volume = CM.Config[volConfig] / 100;
|
||||
sound.volume = (CM.Config[volConfig] / 100) * (Game.volume / 100);
|
||||
sound.play();
|
||||
}
|
||||
}
|
||||
|
||||
+1
-1
@@ -980,7 +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);
|
||||
sound.volume = CM.Config[volConfig] / 100;
|
||||
sound.volume = (CM.Config[volConfig] / 100) * (Game.volume / 100);
|
||||
sound.play();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user