Fix implementation error for manually managed timers
This commit is contained in:
@@ -59,10 +59,12 @@ return {
|
|||||||
update = function(delta)
|
update = function(delta)
|
||||||
local expired = {}
|
local expired = {}
|
||||||
for timer in pairs(timers) do
|
for timer in pairs(timers) do
|
||||||
|
if not timer.manual then
|
||||||
if timer:update(delta) then
|
if timer:update(delta) then
|
||||||
expired[timer] = true
|
expired[timer] = true
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
end
|
||||||
for timer in pairs(expired) do
|
for timer in pairs(expired) do
|
||||||
timers[timer] = nil
|
timers[timer] = nil
|
||||||
end
|
end
|
||||||
|
|||||||
Reference in New Issue
Block a user