Skip to content

Commit

Permalink
fix coords added via +L/L button
Browse files Browse the repository at this point in the history
Refs #9
  • Loading branch information
rkusa committed Dec 20, 2019
1 parent 7a369f9 commit ac33093
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Scripts/Hooks/scratchpad-hook.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ac33093

Please sign in to comment.