mirror of
https://github.com/ciribob/DCS-CTLD.git
synced 2026-08-23 09:45:48 +00:00
Bug fix for HAWK Rearming
Possibility that rearming wouldnt work as the closet hawk wasnt always returned by the getClosestHawk function... oops!
This commit is contained in:
@@ -10,7 +10,8 @@
|
|||||||
|
|
||||||
See https://github.com/ciribob/DCS-CTLD for a user manual and the latest version
|
See https://github.com/ciribob/DCS-CTLD for a user manual and the latest version
|
||||||
|
|
||||||
Version: 1.14 - 17/06/2015 - Added CountInZone for Cargo with Flag
|
Version: 1.15 - 18/06/2015 - Bug fix for Rearming hawk
|
||||||
|
- Added CountInZone for Cargo with Flag
|
||||||
- Added Extract Zone with Flag
|
- Added Extract Zone with Flag
|
||||||
- Added Create Beacon using Mission Edtor
|
- Added Create Beacon using Mission Edtor
|
||||||
|
|
||||||
@@ -1609,7 +1610,7 @@ function ctld.findNearestHawk(_heli)
|
|||||||
end
|
end
|
||||||
|
|
||||||
if _closestHawkGroup ~= nil then
|
if _closestHawkGroup ~= nil then
|
||||||
return { group = _closestHawkGroup, dist = _distance }
|
return { group = _closestHawkGroup, dist = _shortestDistance }
|
||||||
end
|
end
|
||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
|
|||||||
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user