From: jsancho Date: Fri, 17 Dec 2010 17:43:36 +0000 (+0000) Subject: (no commit message) X-Git-Url: https://git.jsancho.org/?a=commitdiff_plain;h=91e3209f15176fa1503199b6c77fa5fc4ee85e3a;p=gacela.git --- diff --git a/gacela.lisp b/gacela.lisp index cc875b4..c6cdeb9 100644 --- a/gacela.lisp +++ b/gacela.lisp @@ -275,25 +275,24 @@ (init-video-mode) (set-game-code game-function) (cond ((not (game-running?)) - (init-frame-time) - (process-events) (game-loop))))) (let (running game-code) (defun game-loop () (setq running t) (do () ((quit?)) - (glClear (+ GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT)) - (to-origin) - (refresh-visible-boxes) - (when (functionp game-code) (funcall game-code)) - (render-boxes) - (SDL_GL_SwapBuffers) - (delay-frame) (init-frame-time) (check-connections) (eval-from-clients) - (process-events)) + (process-events) + (cond ((not (quit?)) + (glClear (+ GL_COLOR_BUFFER_BIT GL_DEPTH_BUFFER_BIT)) + (to-origin) + (refresh-visible-boxes) + (when (functionp game-code) (funcall game-code)) + (render-boxes) + (SDL_GL_SwapBuffers) + (delay-frame)))) (setq running nil)) (defun game-running? ()