Permalink
Browse files

Minor fixes

  • Loading branch information...
1 parent 2eccb66 commit d4bd8d349f3898d11c677fa221e0d214f1537121 @ka-ka committed Jul 27, 2012
Showing with 13 additions and 7 deletions.
  1. +1 −1 RareDar/RiftAddon.toc
  2. +7 −5 RareDar/event.lua
  3. +5 −1 RareDar/radarbutton.lua
View
@@ -17,7 +17,7 @@ Description = {
-- Current maintainer of RareDar
Email = "karl_johan_karlsson@yahoo.se"
-Version = "0.2.7"
+Version = "0.2.8"
Environment = "1.9"
View
@@ -20,7 +20,7 @@ local function update()
job_coroutine = coroutine.create(run_job)
end
coroutine.resume(job_coroutine)
- if(coroutine.status(job_coroutine) == "dead") then
+ if (coroutine.status(job_coroutine) == "dead") then
job_coroutine = nil
end
end
@@ -65,7 +65,9 @@ end
-- Initialization
local function init(addon)
- if addon == "RareDar" then
+ if (addon == "RareDar") then
+ -- make sure the watchdog dont complain during initialization
+ Command.System.Watchdog.Quiet()
print("loaded! We'll do our best to let you know when we find a rare mob!")
print("Type /raredar for options.")
-- Command.System.Strict()
@@ -114,7 +116,7 @@ local function process(param)
--print(param)
if (param ~= nil) and (param ~= "") then
- local found = false;
+ local found = false
if param == "help" then
help()
@@ -132,12 +134,12 @@ local function process(param)
end
if param == "lock" then
- RareDar.locked = true;
+ RareDar.locked = true
found = true
end
if param == "unlock" then
- RareDar.locked = false;
+ RareDar.locked = false
found = true
end
View
@@ -81,6 +81,7 @@ end
-- them in all zones.
local function zoneMenuClick(zone)
+ if RareDar.secureMode then return end
hideZoneMenu()
local lang=Inspect.System.Language()
cycle={}
@@ -264,7 +265,7 @@ end
function RareDar_SetZoneMobs(list)
local str = ""
local message = ""
- local n=0
+ local n = 0
local max = table.maxn(list)
for i,name in ipairs(list) do
yieldcheck()
@@ -279,6 +280,9 @@ function RareDar_SetZoneMobs(list)
end
message = message .. name
end
+
+ yieldcheck()
+
if (n > 0) then
if (lastShownMessage ~= message) then
print(message .. " might be close")

0 comments on commit d4bd8d3

Please sign in to comment.