fix: adapt menus to new sfx code

This commit is contained in:
Kazhnuz 2021-04-21 17:12:47 +02:00
parent 85e687276f
commit b3dd97a272

View file

@ -280,9 +280,7 @@ end
function Menu:playNavigationSound() function Menu:playNavigationSound()
if self.sound.active == true then if self.sound.active == true then
love.audio.stop( self.sound.asset ) self.sound.asset:play()
self.sound.asset:setVolume(core.options.data.audio.sfx / 100)
love.audio.play( self.sound.asset )
end end
end end