Skip to content

Commit a1dacb1

Browse files
authored
fix integer truncation in linear-plat.gc
1 parent 028bb90 commit a1dacb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

goal_src/jak1/engine/common-obs/linear-plat.gc

+1-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
(let* ((cur-time (mod (the-as uint (current-time)) (-> this sync period)))
4141
(pos 0))
4242
(while (< pos (-> this path curve num-cverts))
43-
(let ((timing (seconds (-> this timings pos))))
43+
(let ((timing (fsec (-> this timings pos))))
4444
(when (< cur-time timing)
4545
;; we should be between pos and pos+1
4646
(return (+ (the float pos) (/ (the float cur-time) (the float timing)))))

0 commit comments

Comments
 (0)