changeset 145:f8a5080a60c6

Set coordinates to 0, 0 if WorldMapFrame is shown.
author James D. Callahan III <jcallahan@curse.com>
date Tue, 02 Oct 2012 14:06:41 -0500
parents ba5422e37516
children d49e46c45dcc
files Main.lua
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/Main.lua	Tue Oct 02 13:25:19 2012 -0500
+++ b/Main.lua	Tue Oct 02 14:06:41 2012 -0500
@@ -239,6 +239,9 @@
 
 
 local function CurrentLocationData()
+    if _G.WorldMapFrame:IsVisible() then
+        return _G.GetRealZoneText(), current_area_id, 0, 0, 0, InstanceDifficultyToken()
+    end
     local map_level = _G.GetCurrentMapDungeonLevel() or 0
     local x, y = _G.GetPlayerMapPosition("player")