changeset 2:62f9b057c91b

use GetTime() directly
author Nenue
date Tue, 15 Dec 2015 08:24:51 -0500
parents 766d8a40a1d6
children 9de4a810fda7
files Fog.lua Turok.lua
diffstat 2 files changed, 1 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Fog.lua	Tue Dec 15 08:07:21 2015 -0500
+++ b/Fog.lua	Tue Dec 15 08:24:51 2015 -0500
@@ -56,7 +56,6 @@
   _G.print(TL, ...)
 end
 --setprinthandler(function (...) T:debug('Fog', nil, ...) end)
-local time = _G.ct
 local FADE_OUT_TIME = 1   -- duration per 1-0 alpha transition
 local FADE_IN_TIME = 0.4  -- duration per 0-1 alpha transition
 
@@ -108,7 +107,7 @@
   self:CreateStatusTextures(f, config)
 
   f.throttle_rate = 0.0166666666 -- ~60fps
-  f.throttle_point = time
+  f.throttle_point = GetTime()
 
   -- default handler
   f.Update = T.Bar_Update
--- a/Turok.lua	Tue Dec 15 08:07:21 2015 -0500
+++ b/Turok.lua	Tue Dec 15 08:24:51 2015 -0500
@@ -3,7 +3,6 @@
 local T = LibStub("AceAddon-3.0"):NewAddon("Turok", "AceConsole-3.0", "AceEvent-3.0")
 local _G = _G
 local rawset = _G.rawset
-local time = GetTime()
 _G.Turok = T
 local print = function(...)
   --_G.print('Core', ...)