Incorporated Game volume settings
This commit is contained in:
@@ -1884,7 +1884,8 @@ CM.Disp.Flash = function(mode, config) {
|
|||||||
CM.Disp.PlaySound = function(url, sndConfig, volConfig) {
|
CM.Disp.PlaySound = function(url, sndConfig, volConfig) {
|
||||||
if (CM.Config[sndConfig] == 1) {
|
if (CM.Config[sndConfig] == 1) {
|
||||||
var sound = new realAudio(url);
|
var sound = new realAudio(url);
|
||||||
sound.volume = CM.Config[volConfig] / 100;
|
// * 2 as the standard Game volume is 50%, which is quite low
|
||||||
|
sound.volume = (CM.Config[volConfig] / 100) * Game.volume * 2;
|
||||||
sound.play();
|
sound.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -980,7 +980,8 @@ CM.Disp.Flash = function(mode, config) {
|
|||||||
CM.Disp.PlaySound = function(url, sndConfig, volConfig) {
|
CM.Disp.PlaySound = function(url, sndConfig, volConfig) {
|
||||||
if (CM.Config[sndConfig] == 1) {
|
if (CM.Config[sndConfig] == 1) {
|
||||||
var sound = new realAudio(url);
|
var sound = new realAudio(url);
|
||||||
sound.volume = CM.Config[volConfig] / 100;
|
// * 2 as the standard Game volume is 50%, which is quite low
|
||||||
|
sound.volume = (CM.Config[volConfig] / 100) * Game.volume * 2;
|
||||||
sound.play();
|
sound.play();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user