1
0
Bifurcation 0

More assertions for tracking purposes, probably will stay afterwards... Useful stuff assertions.

Cette révision appartient à :
Nathanial.C.Jones 2011-02-04 20:11:33 +00:00
Parent 71a2a6dfbc
révision 80d06c012a
1 fichiers modifiés avec 10 ajouts et 0 suppressions

Voir le fichier

@ -483,6 +483,10 @@ function QuestHelper:CreateWorldMapDodad(objective, nxt)
self.dot:SetPoint("TOPLEFT", self, "TOPLEFT", 3*QuestHelper_Pref.scale, -3*QuestHelper_Pref.scale)
self.dot:SetPoint("BOTTOMRIGHT", self, "BOTTOMRIGHT", -3*QuestHelper_Pref.scale, 3*QuestHelper_Pref.scale)
QuestHelper: Assert(objective, "Missing objective.")
QuestHelper: Assert(objective.loc, "Missing Location.")
local locarray = convertLocation(objective.loc)
QuestHelper: Assert(locarray[1] and locarray[2] and locarray[3] and locarray[4], "Location conversion failed. " .. tostring(locarray[1]) .. " " .. tostring(locarray[2]) .. " " .. tostring(locarray[3]) .. " " .. tostring(locarray[4]))
QuestHelper.Astrolabe:PlaceIconOnWorldMap(QuestHelper.map_overlay, self, convertLocation(objective.loc))
--QuestHelper.Astrolabe:PlaceIconOnWorldMap(QuestHelper.map_overlay, self, 0, 0, globx, globy)
else
@ -1045,6 +1049,12 @@ function QuestHelper:CreateMipmapDodad()
if self.obj and not QuestHelper.InBrokenInstance then
self:Show() -- really only triggers if the non-broken-instance code is being poked
QuestHelper: Assert(self, "Missing self.") -- Yeah right.
QuestHelper: Assert(self.obj, "Missing objective.")
QuestHelper: Assert(self.obj.loc, "Missing Location.")
local locarray = convertLocation(self.obj.loc)
QuestHelper: Assert(locarray[1] and locarray[2] and locarray[3] and locarray[4], "Location conversion failed. " .. tostring(locarray[1]) .. " " .. tostring(locarray[2]) .. " " .. tostring(locarray[3]) .. " " .. tostring(locarray[4]))
if not QuestHelper_Pref.hide and QuestHelper.Astrolabe:PlaceIconOnMinimap(self, convertLocation(self.obj.loc)) ~= -1 then
local edge = QuestHelper.Astrolabe:IsIconOnEdge(self)