- Use dt in JS.retrieveData

This commit is contained in:
ParticleG
2024-10-31 12:12:18 +08:00
parent 7ae19b6431
commit 8a663e29a6

View File

@@ -735,16 +735,16 @@ function love.run()
end end
return function() return function()
if JS and JS.retrieveData(1) then
return
end
local _ local _
local time=timer() local time=timer()
local dt=time-lastFrame local dt=time-lastFrame
lastFrame=time lastFrame=time
if JS and JS.retrieveData(dt) then
return
end
-- EVENT -- EVENT
PUMP() PUMP()
for N,a,b,c,d,e in POLL() do for N,a,b,c,d,e in POLL() do