fix coords added via +L/L button

Refs #9
This commit is contained in:
Markus Ast 2019-12-20 09:52:12 +01:00
parent 7a369f912d
commit ac33093bef

View File

@ -110,13 +110,13 @@ function scratchpad_load()
local result = "" local result = ""
for _, mark in pairs(marks) do for _, mark in pairs(marks) do
local lat, lon = coord.LOtoLL({ local lat, lon = coord.LOtoLL({
x = mark.pos.z, x = mark.pos.x,
y = 0, y = 0,
z = mark.pos.x z = mark.pos.z
}) })
local alt = round(land.getHeight({ local alt = round(land.getHeight({
x = mark.pos.z, x = mark.pos.x,
y = mark.pos.x y = mark.pos.z
}), 0) }), 0)
result = result .. "\n" .. tostringLL(lat, lon, 2, true) .. "\n" .. tostring(alt) .. "m, " .. mark.text .. "\n" result = result .. "\n" .. tostringLL(lat, lon, 2, true) .. "\n" .. tostring(alt) .. "m, " .. mark.text .. "\n"
end end