Merge pull request #47 from NachtRaveVL/RouteNameFetch

Adding route name fetch to getGroupRoute()
This commit is contained in:
mrSkortch 2020-06-22 03:05:12 -06:00 committed by GitHub
commit 5b2b17f69f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 0 deletions

View File

@ -6395,6 +6395,11 @@ do -- group tasks scope
for point_num, point in pairs(group_data.route.points) do for point_num, point in pairs(group_data.route.points) do
local routeData = {} local routeData = {}
if env.mission.version > 7 then
routeData.name = env.getValueDictByKey(point.name)
else
routeData.name = point.name
end
if not point.point then if not point.point then
routeData.x = point.x routeData.x = point.x
routeData.y = point.y routeData.y = point.y

View File

@ -6395,6 +6395,11 @@ do -- group tasks scope
for point_num, point in pairs(group_data.route.points) do for point_num, point in pairs(group_data.route.points) do
local routeData = {} local routeData = {}
if env.mission.version > 7 then
routeData.name = env.getValueDictByKey(point.name)
else
routeData.name = point.name
end
if not point.point then if not point.point then
routeData.x = point.x routeData.x = point.x
routeData.y = point.y routeData.y = point.y