I'm currently updating the Destinations addon for Murkmire, and unknown points of interest were broken by this update. The addon used to check for them like this:
Lua Code:
local zoneIndex = GetCurrentMapZoneIndex()
for poiIndex = 1, GetNumPOIs(zoneIndex) do
local normalizedX, normalizedY, poiType = GetPOIMapInfo(zoneIndex, poiIndex)
local unknown = poiType == MAP_PIN_TYPE_INVALID
if unkown do ......... end
end
Since 4.2.0 this no longer works, as poiType is now always MAP_PIN_TYPE_POI_SEEN, even if they are not shown to the player. Why was this changed? Does anyone know of a good new way to check for unknown POIs?