mirror of
https://github.com/bakpakin/tiny-ecs.git
synced 2024-11-17 04:44:23 +00:00
Remove redundant non-nil check
This commit is contained in:
parent
d94b178670
commit
d720d361e6
4
tiny.lua
4
tiny.lua
@ -809,9 +809,7 @@ 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
|
||||
update(system, interval)
|
||||
end
|
||||
system.bufferedTime = bufferedTime
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user