Return nil if interpolation is stopped

This commit is contained in:
Matthias Richter 2010-10-17 16:03:52 +02:00
parent 0be37cfbba
commit 2579a7f6bc

View File

@ -62,6 +62,6 @@ function Interpolator(length, func)
return function(dt)
func(math.min(1, t/length))
t = t + dt
return t - dt <= length
return t - dt <= length or nil
end
end