File tree Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Expand file tree Collapse file tree 4 files changed +20
-16
lines changed Original file line number Diff line number Diff line change 657
657
end
658
658
end
659
659
660
- function API :StartFlagCaptures (bgcaptime , uiMapID , colors )
660
+ local GetBestMapForUnit = C_Map .GetBestMapForUnit
661
+ function API :StartFlagCaptures (bgcaptime , _ , colors )
661
662
atlasColors = colors
662
663
capTime = bgcaptime -- cap time
663
- curMapID = C_Map . GetBestMapForUnit (" player" ) or uiMapID -- current map
664
+ curMapID = GetBestMapForUnit (" player" ) -- current map
664
665
landmarkCache = {}
665
666
curMod = self
666
- local pois = GetAreaPOIForMap (uiMapID )
667
+ local pois = GetAreaPOIForMap (curMapID )
667
668
for i = 1 , # pois do
668
- local tbl = GetAreaPOIInfo (uiMapID , pois [i ])
669
+ local tbl = GetAreaPOIInfo (curMapID , pois [i ])
669
670
local icon = tbl .textureIndex
670
671
local atlasName = tbl .atlasName
671
672
if icon then
Original file line number Diff line number Diff line change 732
732
end
733
733
end
734
734
735
- function API :StartFlagCaptures (bgcaptime , uiMapID , colors )
735
+ local GetBestMapForUnit = C_Map .GetBestMapForUnit
736
+ function API :StartFlagCaptures (bgcaptime , _ , colors )
736
737
atlasColors = colors
737
738
capTime = bgcaptime -- cap time
738
- curMapID = C_Map . GetBestMapForUnit (" player" ) or uiMapID -- current map
739
+ curMapID = GetBestMapForUnit (" player" ) -- current map
739
740
landmarkCache = {}
740
741
curMod = self
741
- local pois = GetAreaPOIForMap (uiMapID )
742
+ local pois = GetAreaPOIForMap (curMapID )
742
743
for i = 1 , # pois do
743
- local tbl = GetAreaPOIInfo (uiMapID , pois [i ])
744
+ local tbl = GetAreaPOIInfo (curMapID , pois [i ])
744
745
local icon = tbl .textureIndex
745
746
local atlasName = tbl .atlasName
746
747
if icon then
Original file line number Diff line number Diff line change 726
726
end
727
727
end
728
728
729
- function API :StartFlagCaptures (bgcaptime , uiMapID , colors )
729
+ local GetBestMapForUnit = C_Map .GetBestMapForUnit
730
+ function API :StartFlagCaptures (bgcaptime , _ , colors )
730
731
atlasColors = colors
731
732
capTime = bgcaptime -- cap time
732
- curMapID = C_Map . GetBestMapForUnit (" player" ) or uiMapID -- current map
733
+ curMapID = GetBestMapForUnit (" player" ) -- current map
733
734
landmarkCache = {}
734
735
curMod = self
735
- local pois = GetAreaPOIForMap (uiMapID )
736
+ local pois = GetAreaPOIForMap (curMapID )
736
737
for i = 1 , # pois do
737
- local tbl = GetAreaPOIInfo (uiMapID , pois [i ])
738
+ local tbl = GetAreaPOIInfo (curMapID , pois [i ])
738
739
local icon = tbl .textureIndex
739
740
local atlasName = tbl .atlasName
740
741
if icon then
Original file line number Diff line number Diff line change 732
732
end
733
733
end
734
734
735
- function API :StartFlagCaptures (bgcaptime , uiMapID , colors )
735
+ local GetBestMapForUnit = C_Map .GetBestMapForUnit
736
+ function API :StartFlagCaptures (bgcaptime , _ , colors )
736
737
atlasColors = colors
737
738
capTime = bgcaptime -- cap time
738
- curMapID = C_Map . GetBestMapForUnit (" player" ) or uiMapID -- current map
739
+ curMapID = GetBestMapForUnit (" player" ) -- current map
739
740
landmarkCache = {}
740
741
curMod = self
741
- local pois = GetAreaPOIForMap (uiMapID )
742
+ local pois = GetAreaPOIForMap (curMapID )
742
743
for i = 1 , # pois do
743
- local tbl = GetAreaPOIInfo (uiMapID , pois [i ])
744
+ local tbl = GetAreaPOIInfo (curMapID , pois [i ])
744
745
local icon = tbl .textureIndex
745
746
local atlasName = tbl .atlasName
746
747
if icon then
You can’t perform that action at this time.
0 commit comments