Mercurial > wow > bloodhound2
comparison 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 |
comparison
equal
deleted
inserted
replaced
| 4:3fe17b1a54e3 | 5:a10b7ef54e09 |
|---|---|
| 91 local x, y = GetPlayerMapPosition("player"); | 91 local x, y = GetPlayerMapPosition("player"); |
| 92 local f = GetPlayerFacing(); | 92 local f = GetPlayerFacing(); |
| 93 local m = Minimap:GetZoom(); | 93 local m = Minimap:GetZoom(); |
| 94 SetMapZoom(cmap, zmap); | 94 SetMapZoom(cmap, zmap); |
| 95 | 95 |
| 96 if (c ~= player.C and c ~= 0) then -- reload continent data if continent has changed | 96 if (c ~= player.C and c ~= 0 and c ~= -1) then -- reload continent data if continent has changed |
| 97 Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]); | 97 Bloodhound2.HerbNodes, Bloodhound2.ContinentHerbs = Bloodhound2.ReloadNodes(Bloodhound2.HerbDatabase[c], Bloodhound2.ZoneDatum[c]); |
| 98 Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]); | 98 Bloodhound2.OreNodes, Bloodhound2.ContinentOre = Bloodhound2.ReloadNodes(Bloodhound2.OreDatabase[c], Bloodhound2.ZoneDatum[c]); |
| 99 Bloodhound2.MiscNodes, Bloodhound2.ContinentNode = Bloodhound2.ReloadNodes(Bloodhound2.MiscDatabase[c], Bloodhound2.ZoneDatum[c]); | 99 Bloodhound2.MiscNodes, Bloodhound2.ContinentNode = Bloodhound2.ReloadNodes(Bloodhound2.MiscDatabase[c], Bloodhound2.ZoneDatum[c]); |
| 100 end | 100 end |
| 101 | 101 |
| 281 local c = player.C; -- get player position | 281 local c = player.C; -- get player position |
| 282 local z = player.Z; | 282 local z = player.Z; |
| 283 local x = player.X; | 283 local x = player.X; |
| 284 local y = player.Y; | 284 local y = player.Y; |
| 285 | 285 |
| 286 if c == 0 or z == 0 then return 0,0 end -- don't draw arrow if using world coordinates | 286 if c == 0 or z == 0 or c == -1 then return 0,0 end -- don't draw arrow if using world coordinates |
| 287 if not Bloodhound2.ZoneDatum then return 0,0 end | 287 if not Bloodhound2.ZoneDatum then return 0,0 end |
| 288 | 288 |
| 289 local datum = Bloodhound2.ZoneDatum[c][z]; -- get scale and offset for current zone map | 289 local datum = Bloodhound2.ZoneDatum[c][z]; -- get scale and offset for current zone map |
| 290 if datum == nil then return 0,0 end | 290 if datum == nil then return 0,0 end |
| 291 | 291 |
