Solved bug in SCHEDULER

This commit is contained in:
Sven Van de Velde 2016-05-10 17:28:14 +02:00
parent 9f8bfa1603
commit 4667e7c41c

View File

@ -85,7 +85,7 @@ function SCHEDULER:Scheduler()
timer.scheduleFunction(
self.Scheduler,
self,
timer.getTime() + self.RepeatSecondsInterval * math.random( self.RandomizationFactor * self.RepeatSecondsInterval ) + 0.01
timer.getTime() + self.RepeatSecondsInterval + math.random( - ( self.RandomizationFactor * self.RepeatSecondsInterval / 2 ), ( self.RandomizationFactor * self.RepeatSecondsInterval / 2 ) ) + 0.01
)
end
end