Remove redundant non-nil check

This commit is contained in:
Calvin Rose 2016-07-13 09:43:36 -04:00
parent d94b178670
commit d720d361e6

View File

@ -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)