Put freeze return after freeze controls

This commit is contained in:
Sage Vaillancourt 2025-03-19 14:59:49 -04:00
parent 8730b38444
commit e2ffe2d552
1 changed files with 4 additions and 3 deletions

View File

@ -39,9 +39,6 @@ end
function love.update(dt)
delta = dt
if freeze then
return
end
if love.keyboard.isDown("r") then
World:clearEntities()
@ -53,6 +50,10 @@ function love.update(dt)
freeze = not freeze
end
if freeze then
return
end
World:update(delta, function(_, system)
if system.deferToEnd then
return false