git repos / blockattack-game

commit 32090628

sago007 · 2016-04-10 14:13
320906281b97404c71233fac0de9c6328d06c41d patch · browse files
parent f2dac7e49c978bbbc3e82f4a22163e015fc39d74

Lowered the music volume to be more in line with other programs

Changed files

M source/code/main.cpp before
diff --git a/source/code/main.cpp b/source/code/main.cpp index 3827e09..0ec58ff 100644 --- a/source/code/main.cpp +++ b/source/code/main.cpp
@@ -1847,21 +1847,21 @@ int runGame(int gametype, int level) {
//Sees if music is stopped and if music is enabled
if ((!NoSound)&&(!Mix_PlayingMusic())&&(MusicEnabled)&&(!bNearDeath)) {
// then starts playing it.
- Mix_VolumeMusic(MIX_MAX_VOLUME);
Mix_PlayMusic(bgMusic, -1); //music loop
+ Mix_VolumeMusic((MIX_MAX_VOLUME*3)/10);
}
if (bNearDeath!=bNearDeathPrev) {
if (bNearDeath) {
if (!NoSound &&(MusicEnabled)) {
- Mix_VolumeMusic(MIX_MAX_VOLUME);
Mix_PlayMusic(highbeatMusic, 1);
+ Mix_VolumeMusic((MIX_MAX_VOLUME*5)/10);
}
}
else {
if (!NoSound &&(MusicEnabled)) {
- Mix_VolumeMusic(MIX_MAX_VOLUME);
Mix_PlayMusic(bgMusic, -1);
+ Mix_VolumeMusic((MIX_MAX_VOLUME*3)/10);
}
}
}