|
|
@ -4317,7 +4317,7 @@ function getKeysPoint(x, y, z) |
|
|
|
local minDist, minResult = 1000000, "" |
|
|
|
local minDist, minResult = 1000000, "" |
|
|
|
local resX, resY, resZ = 0.0, 0.0, 0.0 |
|
|
|
local resX, resY, resZ = 0.0, 0.0, 0.0 |
|
|
|
for name, cord in pairs(location_keys) do |
|
|
|
for name, cord in pairs(location_keys) do |
|
|
|
if not name:find("Àðåíäà") and not name:find("Ïîðò") then |
|
|
|
if not name:find("ls") and not name:find("sf") then |
|
|
|
local distance = getDistanceBetweenCoords3d(x, y, z, cord.x, cord.y, cord.z) |
|
|
|
local distance = getDistanceBetweenCoords3d(x, y, z, cord.x, cord.y, cord.z) |
|
|
|
if distance < minDist then |
|
|
|
if distance < minDist then |
|
|
|
minDist = distance |
|
|
|
minDist = distance |
|
|
|