comparison WorldPlan.lua @ 56:0749e38081e7

- More fixes for map updates from non-Legion zones.
author Nenue
date Tue, 03 Jan 2017 20:04:16 -0500
parents b289eb3e6a32
children abcdef801db5
comparison
equal deleted inserted replaced
55:6a2e85836219 56:0749e38081e7
285 285
286 } 286 }
287 287
288 function WorldPlanCore:SetCurrentMap() 288 function WorldPlanCore:SetCurrentMap()
289 local mapAreaID = GetCurrentMapAreaID() 289 local mapAreaID = GetCurrentMapAreaID()
290 if not mapAreaID then
291 return
292 end
293 print(mapAreaID)
290 local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID] 294 local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID]
291
292 local isContinent = (mapAreaID == BROKEN_ISLES_ID) 295 local isContinent = (mapAreaID == BROKEN_ISLES_ID)
296
293 db.currentMapID = mapAreaID 297 db.currentMapID = mapAreaID
294 db.isContinentMap = isContinent 298 db.isContinentMap = isContinent
295 db.useContinentType = (WorldMapDetailFrame:GetScale() < 1) 299 db.useContinentType = (WorldMapDetailFrame:GetScale() < 1)
296 300
297 for _, module in ipairs(db.OrderedModules) do 301 for _, module in ipairs(db.OrderedModules) do