mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-18 13:15:56 +00:00
debug
This commit is contained in:
@@ -7772,7 +7772,7 @@ function ctld.getNearestWP(_referenceUnitName)
|
|||||||
local WP = 0
|
local WP = 0
|
||||||
local memoDist = nil -- Lower distance checked
|
local memoDist = nil -- Lower distance checked
|
||||||
local refGroupName = Unit.getByName(_referenceUnitName):getGroup():getName()
|
local refGroupName = Unit.getByName(_referenceUnitName):getGroup():getName()
|
||||||
local JTACRoute = mist.getGroupRoute (refGroupName, true) -- get the initial editor route of the current group
|
local JTACRoute = mist.getGroupRoute(refGroupName, true) -- get the initial editor route of the current group
|
||||||
if Unit.getByName(_referenceUnitName) ~= nil then --JTAC et unit must exist
|
if Unit.getByName(_referenceUnitName) ~= nil then --JTAC et unit must exist
|
||||||
for i=1, #JTACRoute do
|
for i=1, #JTACRoute do
|
||||||
local ptWP = {x = JTACRoute[i].x, y = JTACRoute[i].y}
|
local ptWP = {x = JTACRoute[i].x, y = JTACRoute[i].y}
|
||||||
|
|||||||
Reference in New Issue
Block a user