Skip to content

Commit

Permalink
Fixed small anomalies with POI states
Browse files Browse the repository at this point in the history
  • Loading branch information
AcidWeb committed Oct 18, 2020
1 parent 0c4ff38 commit 72f3ba5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions REPorter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ RE.BlinkPOIValue = 0.3
RE.BlinkPOIUp = true

RE.FoundNewVersion = false
RE.AddonVersionCheck = 270
RE.AddonVersionCheck = 271
RE.ScreenHeight, RE.ScreenWidth = _G.UIParent:GetCenter()

RE.MapSettings = {
Expand Down Expand Up @@ -806,7 +806,7 @@ function RE:OnPOIUpdate()
wipe(RE.VignettePosition)
RE.VignetteInfo = GetVignetteInfo(RE.POIList[i]) or {}
RE.VignettePosition = GetVignettePosition(RE.POIList[i], RE.CurrentMap) or {}
if RE.VignetteInfo and RE.VignettePosition then
if RE.VignetteInfo and RE.VignettePosition and RE.VignettePosition.x then
local xZ, yZ = RE:Round(RE.VignettePosition.x, 3), RE:Round(RE.VignettePosition.y, 3)
RE.POIInfo = {["areaPoiID"] = RE.VignetteInfo.vignetteID, ["name"] = RE.VignetteInfo.name, ["description"] = "", ["position"] = {["x"] = RE.VignettePosition.x, ["y"] = RE.VignettePosition.y}, ["textureIndex"] = 0, ["atlasID"] = RE.VignetteInfo.atlasName}
if RE.CurrentMap == SS then
Expand Down Expand Up @@ -1344,8 +1344,8 @@ function RE:Create()
end

function RE:NodeChange(newTexture, nodeName)
TIMER:CancelTimer(RE.POINodes[nodeName].timer)
if RE.POICaptureStatus[newTexture] ~= nil then
TIMER:CancelTimer(RE.POINodes[nodeName].timer)
RE.POINodes[nodeName].timer = TIMER:ScheduleTimer(RE.TimerNull, RE.DefaultTimer)
RE.POINodes[nodeName].isCapturing = RE.POICaptureStatus[newTexture]
end
Expand Down
2 changes: 1 addition & 1 deletion REPorter.toc
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
## Interface: 90001
## Title: |cFF74D06CRE|rPorter
## Notes: Provide battleground map.
## Version: 2.7.0
## Version: 2.7.1
## Author: AcidWeb
## SavedVariables: REPorterSettings
## X-Website: https://www.curseforge.com/wow/addons/reporter-battleground-map
Expand Down

0 comments on commit 72f3ba5

Please sign in to comment.