bpm bugfix

This commit is contained in:
jill 2021-09-18 13:57:23 +03:00
parent 9080dd7607
commit 8c0d66e12d
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ function self.update(dt)
local mx, my = love.mouse.getPosition()
if not (love.mouse.isDown(1) and mx > x and mx < x + w and my > y and my < y + h) then
timer = (timer + dt * (slider.kvalue('bpm')/120)) % 2
timer = (timer + dt * ((slider.kvalue('bpm') or 120)/120)) % 2
else
timer = mix(timer, (mx - x) / w, dt * 14)
end