fix errors

This commit is contained in:
Jrc13245
2026-02-09 22:24:52 -05:00
parent ec1075b9f4
commit eff56e56fc
2 changed files with 4 additions and 4 deletions
+2 -2
View File
@@ -2424,8 +2424,8 @@ function CleveRoids.IsPlayerMoving()
-- prevIdx and currIdx walk from oldest to newest
local currOffset = samplesAvail - i -- e.g., 3,2,1,0 for count=4
local prevOffset = samplesAvail - i + 1 -- e.g., 4,3,2,1
local currIdx = ((headIdx - currOffset - 1) % 4) + 1
local prevIdx = ((headIdx - prevOffset - 1) % 4) + 1
local currIdx = math.mod((headIdx - currOffset - 1), 4) + 1
local prevIdx = math.mod((headIdx - prevOffset - 1), 4) + 1
local prev = history[prevIdx]
local curr = history[currIdx]
local dx = curr.x - prev.x