summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-05-20 20:42:53 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-05-20 20:42:53 (EDT)
commit408ffe89abe0f561354222b0b130321dcc7d14e9 (patch)
tree646dfec93ffb5d81fb979ced54f4a9e208803560
parentcb7efa200cd2699f930d991902d0ad652f599e69 (diff)
downloadcursespong-408ffe89abe0f561354222b0b130321dcc7d14e9.zip
cursespong-408ffe89abe0f561354222b0b130321dcc7d14e9.tar.gz
cursespong-408ffe89abe0f561354222b0b130321dcc7d14e9.tar.bz2
Crudely limit frame rate.
-rw-r--r--src/game.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/game.c b/src/game.c
index 86b7be6..aca77ea 100644
--- a/src/game.c
+++ b/src/game.c
@@ -1,4 +1,5 @@
#include <stdlib.h>
+#include <unistd.h>
#include <curses.h>
#include "game.h"
@@ -52,6 +53,7 @@ static void
wait(struct game *g)
{
g->running = 1;
+ usleep(10000);
}
static void