diff Bloodhound2.lua @ 5:a10b7ef54e09 Release

Fixed an LUA error effecting Shrine of Two Moons
author only1yzerman
date Thu, 30 May 2013 05:44:47 -0400
parents 91131c35a2c3
children ee1d6e6a4c52
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