From 2a7e9d044e6ffd8988eccf62f85fd35af41ef138 Mon Sep 17 00:00:00 2001 From: zorba Date: Tue, 28 Apr 2009 01:37:51 -0700 Subject: [PATCH] this will almost certainly break something --- arrow.lua | 2 +- dodads.lua | 18 ++++++++---------- 2 files changed, 9 insertions(+), 11 deletions(-) diff --git a/arrow.lua b/arrow.lua index 23edb7c..f4fb408 100755 --- a/arrow.lua +++ b/arrow.lua @@ -99,7 +99,7 @@ local function OnDragStop(self, button) end local function OnEvent(self, event, ...) - if event == "ZONE_CHANGED_NEW_AREA" and QuestHelper_Pref.arrow then -- TODO TWEAKERY + if event == "ZONE_CHANGED_NEW_AREA" and QuestHelper_Pref.arrow and not QuestHelper_Pref.hide then -- TODO TWEAKERY self:Show() OnUpdate(self, nil) end diff --git a/dodads.lua b/dodads.lua index aa03b9c..58f8a83 100644 --- a/dodads.lua +++ b/dodads.lua @@ -624,16 +624,14 @@ end function QuestHelper:InvokeWaypointCallbacks(c, z, x, y, desc) if c ~= last_c or z ~= last_z or x ~= last_x or y ~= last_y or desc ~= last_desc then last_c, last_z, last_x, last_y, last_desc = c, z, x, y, desc - if c and z and x and y and z then - for cb in pairs(callbacks) do - local len = cb.len - cb[len+1] = c - cb[len+2] = z - cb[len+3] = x - cb[len+4] = y - cb[len+5] = desc - cb.func(unpack(cb, 1, len+5)) - end + for cb in pairs(callbacks) do + local len = cb.len + cb[len+1] = c + cb[len+2] = z + cb[len+3] = x + cb[len+4] = y + cb[len+5] = desc + cb.func(unpack(cb, 1, len+5)) end end end -- 2.11.4.GIT