# HG changeset patch # User James D. Callahan III # Date 1359054930 21600 # Node ID 54e268151cd2bc931895deb5aa2069698ec0c67c # Parent 719fe69d3af2af1b9e57907bbd0fe08a8a27bbf9 Removed code dealing with blacklisted battleground maps. diff -r 719fe69d3af2 -r 54e268151cd2 Main.lua --- a/Main.lua Tue Jan 22 15:21:44 2013 -0600 +++ b/Main.lua Thu Jan 24 13:15:30 2013 -0600 @@ -425,26 +425,6 @@ end -- do-block -local function UpdateBlacklistMaps() - local empty_count = 0 - - for index = 1, _G.MAX_BLACKLIST_BATTLEGROUNDS do - local map_id = _G.GetBlacklistMap(index) - char_db.bg_blacklist = char_db.bg_blacklist or {} - char_db.bg_blacklist[index] = map_id - - if map_id < 0 then - empty_count = empty_count + 1 - empty_count = empty_count + 1 - end - end - - if empty_count == _G.MAX_BLACKLIST_BATTLEGROUNDS then - char_db.bg_blacklist = nil - end -end - - local UpdateDBEntryLocation do local pi = math.pi @@ -817,11 +797,6 @@ HandleItemUse(item_link) end) self:SetCurrentAreaID("OnEnable") - - _G.hooksecurefunc("SetBlacklistMap", UpdateBlacklistMaps) - _G.hooksecurefunc("ClearBlacklistMap", UpdateBlacklistMaps) - - UpdateBlacklistMaps() end