Merge remote-tracking branch 'origin/master' into develop

This commit is contained in:
Applevangelist 2023-09-10 15:43:15 +02:00
commit 70a44217f5

View File

@ -3491,8 +3491,11 @@ function RAT:Status(message, forID)
local life=self:_GetLife(group)
local fuel=group:GetFuel()*100.0
local airborne=group:InAir()
local coords=group:GetCoordinate()
local alt=coords.y or 1000
local coords=group:GetCoordinate() or group:GetVec3()
local alt=1000
if coords then
alt=coords.y or 1000
end
--local vel=group:GetVelocityKMH()
local departure=ratcraft.departure:GetName()
local destination=ratcraft.destination:GetName()