mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-12-10 18:54:25 +00:00
Remove redundant non-nil check
This commit is contained in:
parent
d94b178670
commit
d720d361e6
2
tiny.lua
2
tiny.lua
@ -809,10 +809,8 @@ function tiny.update(world, dt, filter)
|
||||
local bufferedTime = (system.bufferedTime or 0) + dt
|
||||
while bufferedTime >= interval do
|
||||
bufferedTime = bufferedTime - interval
|
||||
if update then
|
||||
update(system, interval)
|
||||
end
|
||||
end
|
||||
system.bufferedTime = bufferedTime
|
||||
else
|
||||
update(system, dt)
|
||||
|
Loading…
Reference in New Issue
Block a user