diff options
author | P. 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) |
commit | 408ffe89abe0f561354222b0b130321dcc7d14e9 (patch) | |
tree | 646dfec93ffb5d81fb979ced54f4a9e208803560 /src | |
parent | cb7efa200cd2699f930d991902d0ad652f599e69 (diff) | |
download | cursespong-408ffe89abe0f561354222b0b130321dcc7d14e9.zip cursespong-408ffe89abe0f561354222b0b130321dcc7d14e9.tar.gz cursespong-408ffe89abe0f561354222b0b130321dcc7d14e9.tar.bz2 |
Crudely limit frame rate.
Diffstat (limited to 'src')
-rw-r--r-- | src/game.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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 |