fix: attempt to fix inconsistent synced lock speeds

This commit is contained in:
Dan
2021-03-18 20:16:40 +00:00
parent 224685727f
commit 479255a06e

View File

@@ -1187,12 +1187,12 @@ function RADAR:LockAntennaSpeed( ant, override, lockRegardless )
-- As the lock system is based on which speed is displayed, we have to check if there is a speed in the -- As the lock system is based on which speed is displayed, we have to check if there is a speed in the
-- fast box, if there is then we lock in the fast speed, otherwise we lock in the strongest speed -- fast box, if there is then we lock in the fast speed, otherwise we lock in the strongest speed
if ( self:IsFastDisplayEnabled() and self:DoesAntennaHaveValidFastData( ant ) ) then if ( self:IsFastDisplayEnabled() and self:DoesAntennaHaveValidFastData( ant ) ) then
data[1] = override[3] or self:GetAntennaFastSpeed( ant ) data[1] = self:GetAntennaFastSpeed( ant )
data[2] = override[4] or self:GetAntennaFastDir( ant ) data[2] = self:GetAntennaFastDir( ant )
data[3] = 2 data[3] = 2
else else
data[1] = override[1] or self:GetAntennaSpeed( ant ) data[1] = self:GetAntennaSpeed( ant )
data[2] = override[2] or self:GetAntennaDir( ant ) data[2] = self:GetAntennaDir( ant )
data[3] = 1 data[3] = 1
end end