- Added new class `ZONE_ELASTIC`
This commit is contained in:
Frank
2022-07-31 01:13:42 +02:00
parent 5083428a06
commit 9c83d5e752
3 changed files with 324 additions and 27 deletions

View File

@@ -167,7 +167,7 @@ function TIMER:Start(Tstart, dT, Duration)
local Tnow=timer.getTime()
-- Start time in sec.
self.Tstart=Tstart and Tnow+Tstart or Tnow+0.001 -- one millisecond delay if Tstart=nil
self.Tstart=Tstart and Tnow+math.max(Tstart, 0.001) or Tnow+0.001 -- one millisecond delay if Tstart=nil
-- Set time interval.
self.dT=dT