Skip to content

Commit 26a569f

Browse files
v2.5.4
1 parent 4f36367 commit 26a569f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Swing_Prediction.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -166,8 +166,8 @@ function TargetPositionPrediction(targetLastPos, targetOriginLast, tickRate, tim
166166
table.insert(targetVelocitySamples[targetKey], 1, targetVelocity)
167167

168168
-- Remove the oldest sample if there are more than maxSamples.
169-
if #targetVelocitySamples[targetKey] > 5 then
170-
table.remove(targetVelocitySamples[targetKey], 6)
169+
if #targetVelocitySamples[targetKey] > 3 then
170+
table.remove(targetVelocitySamples[targetKey], 4)
171171
end
172172

173173
-- Calculate the average velocity from the samples.

0 commit comments

Comments
 (0)