Skip to content

Commit

Permalink
fix: attempt to fix inconsistent synced lock speeds
Browse files Browse the repository at this point in the history
WolfKnight98 committed Mar 18, 2021
1 parent 2246857 commit 479255a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cl_radar.lua
Original file line number Diff line number Diff line change
@@ -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
-- 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
data[1] = override[3] or self:GetAntennaFastSpeed( ant )
data[2] = override[4] or self:GetAntennaFastDir( ant )
data[1] = self:GetAntennaFastSpeed( ant )
data[2] = self:GetAntennaFastDir( ant )
data[3] = 2
else
data[1] = override[1] or self:GetAntennaSpeed( ant )
data[2] = override[2] or self:GetAntennaDir( ant )
data[1] = self:GetAntennaSpeed( ant )
data[2] = self:GetAntennaDir( ant )
data[3] = 1
end

0 comments on commit 479255a

Please sign in to comment.