1. Christian Kellermann
  2. doodle

Commits

Christian Kellermann  committed a35b557

Honor the minimum wait parameter

  • Participants
  • Parent commits c85be6c
  • Branches master

Comments (0)

Files changed (1)

File doodle.scm

View file
  • Ignore whitespace
               escape)
              (show!)
              (set! last now)
-             (when
-                 minimum-wait
-               (thread-sleep! minimum-wait))
+             (when (and minimum-wait (< dt minimum-wait))
+               (thread-sleep! (- minimum-wait dt)))
              (loop)))))
       ((world-ends))
       (sdl-quit))))