Skip to content

Commit

Permalink
Prevent music volume from going higher than 100%
Browse files Browse the repository at this point in the history
  • Loading branch information
ForbodingAngel committed Dec 10, 2019
1 parent 77af2b2 commit 253d697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion LuaUI/Widgets_Evo/gui_musicPlayer_Dynamic_Advanced.lua
Expand Up @@ -414,7 +414,7 @@ end

function changeMusicVolume(value)
music_volume = value
Spring.SetConfigInt("snd_volmusic", music_volume)
Spring.SetConfigInt("snd_volmusic", music_volume * 0.5)
createList()
end

Expand Down

0 comments on commit 253d697

Please sign in to comment.