- Use dt in JS.retrieveData
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user