Quantcast

Fix proximity and POI integration

James Whitehead II [03-04-11 - 17:53]
Fix proximity and POI integration
Filename
TomTom_POIIntegration.lua
diff --git a/TomTom_POIIntegration.lua b/TomTom_POIIntegration.lua
index d23d856..17f016f 100644
--- a/TomTom_POIIntegration.lua
+++ b/TomTom_POIIntegration.lua
@@ -68,6 +68,7 @@ local function ObjectivesChanged()
             local dist, xd, yd = astrolabe:ComputeDistance(map, floor, px, py, map, floor, x, y)
             if dist < closestdist then
                 closest = watchIndex
+                closestdist = dist
             end
         end
         watchIndex = watchIndex + 1