mirror of
https://github.com/asherao/dcs-scratchpad.git
synced 2025-10-29 16:56:22 +00:00
parent
7a369f912d
commit
ac33093bef
@ -110,13 +110,13 @@ function scratchpad_load()
|
||||
local result = ""
|
||||
for _, mark in pairs(marks) do
|
||||
local lat, lon = coord.LOtoLL({
|
||||
x = mark.pos.z,
|
||||
x = mark.pos.x,
|
||||
y = 0,
|
||||
z = mark.pos.x
|
||||
z = mark.pos.z
|
||||
})
|
||||
local alt = round(land.getHeight({
|
||||
x = mark.pos.z,
|
||||
y = mark.pos.x
|
||||
x = mark.pos.x,
|
||||
y = mark.pos.z
|
||||
}), 0)
|
||||
result = result .. "\n" .. tostringLL(lat, lon, 2, true) .. "\n" .. tostring(alt) .. "m, " .. mark.text .. "\n"
|
||||
end
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user