summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-20 20:48:33 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-20 20:48:33 (EDT)
commit71c35972a5403c762e04a68baa9cb2dd28a714fe (patch)
tree4df9ad1d65fe9aebacc671e1585de3c50011940e
parent408ffe89abe0f561354222b0b130321dcc7d14e9 (diff)
downloadcursespong-71c35972a5403c762e04a68baa9cb2dd28a714fe.zip
cursespong-71c35972a5403c762e04a68baa9cb2dd28a714fe.tar.gz
cursespong-71c35972a5403c762e04a68baa9cb2dd28a714fe.tar.bz2
Move wait() to the end of the game loop.
-rw-r--r--src/game.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/game.c b/src/game.c
index aca77ea..cce4497 100644
--- a/src/game.c
+++ b/src/game.c
@@ -42,10 +42,10 @@ run_game(struct game *g)
g->running = 1;
while (g->running) {
- wait(g);
input(g);
update(g);
draw(g);
+ wait(g);
}
}