Skip to content

Commit

Permalink
tracker: avoid ToggleWorldMap on wotlk clients
Browse files Browse the repository at this point in the history
That function is deprecated and no longer existing in 3.3.5a
  • Loading branch information
shagu committed Apr 19, 2024
1 parent c1949ac commit ec10e23
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion tracker.lua
Original file line number Diff line number Diff line change
Expand Up @@ -269,7 +269,13 @@ function tracker.ButtonClick()
pfQuest.updateQuestGivers = true
elseif IsControlKeyDown() and not WorldMapFrame:IsShown() then
-- show world map
ToggleWorldMap()
if ToggleWorldMap then
-- vanilla & tbc
ToggleWorldMap()
else
-- wotlk
WorldMapFrame:Show()
end
elseif IsControlKeyDown() and pfQuest_config["spawncolors"] == "0" then
-- switch color
pfQuest_colors[this.title] = { pfMap.str2rgb(this.title .. GetTime()) }
Expand Down

0 comments on commit ec10e23

Please sign in to comment.