mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Fix #940
This commit is contained in:
parent
0d9875effd
commit
b461855a40
1 changed files with 1 additions and 1 deletions
|
@ -120,12 +120,12 @@ Timer = {
|
|||
t.remainingTime = t.remainingTime - dt
|
||||
|
||||
if t.remainingTime <= 0 then
|
||||
t.func(table.unpack(t.funcArgs))
|
||||
if not t.loop then
|
||||
t.active = false
|
||||
else
|
||||
t.remainingTime = t.remainingTime + t.totalTime
|
||||
end
|
||||
t.func(table.unpack(t.funcArgs))
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue