mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-01-13 02:40:28 +00:00
Allow GPS hosts to be closer together
I'm not quite sure why I typed a 5 here. There we go.
This commit is contained in:
parent
1f3815039f
commit
ccd7f6326a
@ -161,7 +161,7 @@ function locate(_nTimeout, _bDebug)
|
|||||||
-- previous position, replace that instead of inserting.
|
-- previous position, replace that instead of inserting.
|
||||||
local insIndex = math.min(3, #tFixes + 1)
|
local insIndex = math.min(3, #tFixes + 1)
|
||||||
for i, older in pairs(tFixes) do
|
for i, older in pairs(tFixes) do
|
||||||
if (older.vPosition - tFix.vPosition):length() < 5 then
|
if (older.vPosition - tFix.vPosition):length() < 1 then
|
||||||
insIndex = i
|
insIndex = i
|
||||||
break
|
break
|
||||||
end
|
end
|
||||||
|
Loading…
Reference in New Issue
Block a user