Mercurial > wow > worldplan
diff FlightMap.lua @ 96:8591401ec278
- Fixed quest markers for other maps becoming visible due to ambiguous interpretations of pin.used.
- Removed some redundant filter checking calls on pins obtained through Acquire()
author | Nenue |
---|---|
date | Sun, 14 May 2017 23:45:08 -0400 |
parents | 98b5e08b75ed |
children | caa482329919 |
line wrap: on
line diff
--- a/FlightMap.lua Mon May 08 22:38:52 2017 -0400 +++ b/FlightMap.lua Sun May 14 23:45:08 2017 -0400 @@ -98,9 +98,10 @@ print(pin:GetID(), pin.used, pin.filtered) - if pin.used then + if pin.canShow then pinsToRemove[info.questId] = nil; + pin.used = true local frame = self.activePins[info.questId] if not frame then frame = self:GetMap():AcquirePin("WorldPlanFlightPin") @@ -119,6 +120,7 @@ pin.throttle = 1 pin:ClearAllPoints() pin:SetPoint('CENTER', frame, 'CENTER') + pin:SetShown(true) frame:SetSize(pin:GetSize()) --print(pin.Overlay:IsShown(), pin.Overlay:GetPoint(1)) end