removed needless global

This commit is contained in:
Manuel Simon Hirsig
2015-09-07 14:07:38 +02:00
parent 42ced873f8
commit 3978a67fb2
2 changed files with 6 additions and 7 deletions
+5 -3
View File
@@ -12,6 +12,8 @@ auctionatorEntries = {}
local AUCTIONATOR_TAB_INDEX = 4
local timeOfLastUpdate = GetTime()
-----------------------------------------
local Auctionator_Orig_AuctionFrameBrowse_Update
@@ -641,15 +643,15 @@ end
-----------------------------------------
function Auctionator_OnUpdate(self)
function Auctionator_OnUpdate()
if not AuctionatorMessage then
return
end
if scanState == SCAN_STATE_PREQUERY and GetTime() - self.TimeOfLastUpdate > 0.5 then
if scanState == SCAN_STATE_PREQUERY and GetTime() - timeOfLastUpdate > 0.5 then
self.TimeOfLastUpdate = GetTime()
timeOfLastUpdate = GetTime()
if CanSendAuctionQuery() then
Auctionator_Scan_Query()
+1 -4
View File
@@ -13,12 +13,9 @@
this:RegisterEvent("AUCTION_HOUSE_SHOW")
this:RegisterEvent("AUCTION_HOUSE_CLOSED")
this:RegisterEvent("NEW_AUCTION_UPDATE")
self = {}
self.TimeOfLastUpdate = GetTime()
</OnLoad>
<OnUpdate>
Auctionator_OnUpdate(self)
Auctionator_OnUpdate()
</OnUpdate>
<OnEvent>
Auctionator_EventHandler()