summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2013-07-31 22:51:07 -0400
committerDavid Thompson <dthompson2@worcester.edu>2013-07-31 22:51:07 -0400
commit6c1fb80498af1ad2767ab200132de2a31aece4ae (patch)
treed5ec9c2b904c3cb61c9ecabc49c246832a95a3e3
parentaf6bf9d960b0135d960c195c67a0f5fa34e9d656 (diff)
Use the current-time argument in time-left.
-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