removed needless global
This commit is contained in:
+5
-3
@@ -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
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user