changeset 5:a10b7ef54e09 Release

Fixed an LUA error effecting Shrine of Two Moons
author only1yzerman
date Thu, 30 May 2013 05:44:47 -0400
parents 3fe17b1a54e3
children ee1d6e6a4c52
files Bloodhound2.lua Bloodhound2.toc
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/Bloodhound2.lua	Mon May 20 16:18:09 2013 -0400
+++ b/Bloodhound2.lua	Thu May 30 05:44:47 2013 -0400
@@ -93,7 +93,7 @@
 			local m = Minimap:GetZoom();
 			SetMapZoom(cmap, zmap);
             
-            if (c ~= player.C and c ~= 0) then						-- reload continent data if continent has changed
+            if (c ~= player.C and c ~= 0 and c ~= -1) then						-- reload continent data if continent has changed
                 Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]);
                 Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]);
                 Bloodhound2.MiscNodes, Bloodhound2.ContinentNode = Bloodhound2.ReloadNodes(Bloodhound2.MiscDatabase[c], Bloodhound2.ZoneDatum[c]);
@@ -283,7 +283,7 @@
 	local x = player.X;
 	local y = player.Y;
 	
-	if c == 0 or z == 0 then return 0,0 end     -- don't draw arrow if using world coordinates
+	if c == 0 or z == 0 or c == -1 then return 0,0 end     -- don't draw arrow if using world coordinates
     if not Bloodhound2.ZoneDatum then return 0,0 end
     
     local datum = Bloodhound2.ZoneDatum[c][z];	-- get scale and offset for current zone map
--- a/Bloodhound2.toc	Mon May 20 16:18:09 2013 -0400
+++ b/Bloodhound2.toc	Thu May 30 05:44:47 2013 -0400
@@ -2,7 +2,7 @@
 ## Title: Bloodhound2
 ## Author: Paul Louis
 ## Former Author: Bret Mulvey
-## Version: 2.0
+## Version: 2.0.2
 ## HerbDB: 5/8/2013
 ## OreDB: 5/9/2013
 ## Notes: An herb and ore gathering add-on with a focus on ease-of-use.