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:
Ciaran Fisher
2015-06-18 20:08:10 +01:00
parent 4c4fbeef47
commit 942f9938e7
3 changed files with 10 additions and 9 deletions
+3 -2
View File
@@ -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.
BIN
View File
Binary file not shown.