- Added rearming zones
- Improved rearming
This commit is contained in:
Frank
2021-09-27 16:11:03 +02:00
parent 994689f05a
commit be0558849c
13 changed files with 823 additions and 200 deletions

View File

@@ -3148,13 +3148,13 @@ function FLIGHTGROUP:FindNearestTanker(Radius)
local istanker, refuelsystem=unit:IsTanker()
if istanker and self.refueltype==refuelsystem then
if istanker and self.refueltype==refuelsystem and unit:GetCoalition()==self:GetCoalition() then
-- Distance.
local d=unit:GetCoordinate():Get2DDistance(coord)
if d<dmin then
d=dmin
dmin=d
tanker=unit
end