Skip to content

Commit

Permalink
Update small things
Browse files Browse the repository at this point in the history
  • Loading branch information
Zariel committed Jun 7, 2010
1 parent 94d069d commit f8f069c
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 6 deletions.
14 changes: 13 additions & 1 deletion core.lua
Expand Up @@ -21,9 +21,21 @@ local OnUpdate = function(self, elapsed)
end
end

local bor = function(...)
if select("#", ...) > 0 then
local r = 0
for i = 0, select("#", ...) do
r = bit.bor(r, select(i, ...))
end
else
return 0
end
end

local ldb
local band = bit.band
local filter = COMBATLOG_OBJECT_AFFILIATION_RAID + COMBATLOG_OBJECT_AFFILIATION_PARTY + COMBATLOG_OBJECT_AFFILIATION_MINE
local filter = bit.bor(COMBATLOG_OBJECT_AFFILIATION_RAID, COMBATLOG_OBJECT_AFFILIATION_PARTY)
filter = bit.bor(filter, COMBATLOG_OBJECT_AFFILIATION_MINE)

local events = {
["SWING_DAMAGE"] = "Damage",
Expand Down
8 changes: 3 additions & 5 deletions display.lua
Expand Up @@ -134,11 +134,9 @@ function View:Activate()

self.display.currentView = self

--[[
if fiend.dropDown:IsShown() then
UIDropDownMenu_Refresh(fiend.dropDown)
if self.display.dropDown:IsShown() then
UIDropDownMenu_Refresh(self.dropDown)
end
]]

self.isActive = true
-- Update faster
Expand Down Expand Up @@ -189,7 +187,7 @@ function View:Output(count, where, player)
end

function Display:OnUpdate(elapsed)
if self.currentView then
if self.currentView and self.currentView.dirty then
self.currentView:UpdateDisplay()
end
end
Expand Down

0 comments on commit f8f069c

Please sign in to comment.