Update AirWing.lua (#1521)

Markpoint honored for direct calls from #OPSGROUP
This commit is contained in:
Applevangelist 2021-04-29 18:20:03 +02:00 committed by GitHub
parent a466365949
commit d5bf28f799
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -721,11 +721,13 @@ end
--- Update marker of the patrol point.
-- @param #AIRWING.PatrolData point Patrol point table.
function AIRWING.UpdatePatrolPointMarker(point)
function AIRWING:UpdatePatrolPointMarker(point)
if self.markpoints then -- sometimes there's a direct call from #OPSGROUP
local text=string.format("%s Occupied=%d\nheading=%03d, leg=%d NM, alt=%d ft, speed=%d kts",
point.type, point.noccupied, point.heading, point.leg, point.altitude, point.speed)
point.marker:UpdateText(text, 1)
end
end