# HG changeset patch # User Nenue # Date 1491155484 14400 # Node ID cce68795f9550178c6a30e459cc2958640dca174 # Parent 96183f981acbf132693583d1a5e4f313ae3584c1 - microDungeon status should trigger a full update diff -r 96183f981acb -r cce68795f955 WorldPlan.lua --- a/WorldPlan.lua Sat Apr 01 08:17:30 2017 -0400 +++ b/WorldPlan.lua Sun Apr 02 13:51:24 2017 -0400 @@ -295,13 +295,14 @@ } function WorldPlanCore:SetCurrentMap(event) - local mapAreaID = GetCurrentMapAreaID() + local mapAreaID, isContinent = GetCurrentMapAreaID() if not mapAreaID then return end print('SetCurrentMap()', event, mapAreaID) local isBrokenIsle = BROKEN_ISLE_MAPS[mapAreaID] - local isContinent = (mapAreaID == BROKEN_ISLES_ID) + + local mapFileName, textureHeight, textureWidth, isMicroDungeon, microDungeonMapName = GetMapInfo() if db.isContinentMap ~= isContinent then @@ -310,13 +311,15 @@ end end local isMapOpen = WorldMapFrame:IsShown() - local isNewMap = isMapOpen and (mapAreaID ~= db.currentMapID) + local isNewMap = isMapOpen and ((mapAreaID ~= db.currentMapID) or (isMapOpen ~= db.isMapOpen) or (db.isMicroDungeon ~= isMicroDungeon)) + + db.isMicroDungeon = isMicroDungeon + db.isMapOpen = isMapOpen db.currentMapID = mapAreaID db.isContinentMap = isContinent db.isBrokenIsle = isBrokenIsle db.useContinentType = (WorldMapDetailFrame:GetScale() < 1) - for _, module in ipairs(db.OrderedModules) do if module.OnMapInfo then print(' |cFF00FFFF'..module:GetName() .. ':OnMapInfo()|r')