summaryrefslogtreecommitdiff
path: root/2d/game-loop.scm
diff options
context:
space:
mode:
Diffstat (limited to '2d/game-loop.scm')
-rw-r--r--2d/game-loop.scm2
1 files changed, 1 insertions, 1 deletions
diff --git a/2d/game-loop.scm b/2d/game-loop.scm
index d8554db..5ba0889 100644
--- a/2d/game-loop.scm
+++ b/2d/game-loop.scm
@@ -138,7 +138,7 @@ is the unused accumulator time."
accumulator))
(define (time-left current-time next-time)
- (max (floor (- next-time (SDL:get-ticks))) 0))
+ (max (floor (- next-time current-time)) 0))
;;;
;;; Game Loop