From f96760380f06b4b7a849008f4be034df92baa44c Mon Sep 17 00:00:00 2001 From: Hendrik Leppkes Date: Thu, 21 May 2009 16:05:20 +0200 Subject: [PATCH] Disable the range update when the range display is disabled. --- ActionButton.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ActionButton.lua b/ActionButton.lua index 9f04112..6b8ecd3 100644 --- a/ActionButton.lua +++ b/ActionButton.lua @@ -280,7 +280,7 @@ end local function updateFunc(self) local parent = self:GetParent() if not self.BT4init or not parent.BT4BarType then return end - if not ActionHasRange(self.action) then + if oorsetting == "none" or not ActionHasRange(self.action) then self.rangeTimer = nil self.outOfRange = nil end @@ -467,6 +467,10 @@ function Button:UpdateUsable() end function Button:UpdateRange() + if oorsetting == "none" or not ActionHasRange(self.action) then + self.rangeTimer = nil + self.outOfRange = nil + end self.hotkey:SetVertexColor(1.0, 1.0, 1.0) self:UpdateUsable() onUpdate(self, 10)