* make songtransition not infinite

This commit is contained in:
FajsiEx 2021-07-26 22:24:54 +02:00
parent 179a8deebe
commit eee4922e18
1 changed files with 2 additions and 2 deletions

View File

@ -28,14 +28,14 @@ function render(deltaTime)
render_screen(transitionTimer)
transitionTimer = transitionTimer + deltaTime * 2
transitionTimer = math.min(transitionTimer,1)
return transitionTimer >= 10
return transitionTimer >= 1
end
function render_out(deltaTime)
outTimer = outTimer + deltaTime * 2
outTimer = math.min(outTimer, 2)
-- render_screen(outTimer)
return outTimer >= 10;
return outTimer >= 1;
end
function sign(x)