Mercurial > wow > wowdb-profiler
comparison Main.lua @ 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 |
comparison
equal
deleted
inserted
replaced
144:ba5422e37516 | 145:f8a5080a60c6 |
---|---|
237 return npc | 237 return npc |
238 end | 238 end |
239 | 239 |
240 | 240 |
241 local function CurrentLocationData() | 241 local function CurrentLocationData() |
242 if _G.WorldMapFrame:IsVisible() then | |
243 return _G.GetRealZoneText(), current_area_id, 0, 0, 0, InstanceDifficultyToken() | |
244 end | |
242 local map_level = _G.GetCurrentMapDungeonLevel() or 0 | 245 local map_level = _G.GetCurrentMapDungeonLevel() or 0 |
243 local x, y = _G.GetPlayerMapPosition("player") | 246 local x, y = _G.GetPlayerMapPosition("player") |
244 | 247 |
245 x = x or 0 | 248 x = x or 0 |
246 y = y or 0 | 249 y = y or 0 |