diff options
author | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-03-22 07:38:31 +0000 |
---|---|---|
committer | Paul Janzen <pjanzen@cvs.openbsd.org> | 1999-03-22 07:38:31 +0000 |
commit | 655f46886f41552a538bb4b82804425dff27d156 (patch) | |
tree | 2dba4c01ca96282830ec3ec47fd4f316526a3014 /games/tetris/input.c | |
parent | a7b23dec87ab158c2011a2fa6cb22790cca1fb30 (diff) |
Many fixes, most either from or based on NetBSD changes:
get rid of unused function
improve output format
allow previewing of next piece
randomize initial rotation angle of falling blocks.
Diffstat (limited to 'games/tetris/input.c')
-rw-r--r-- | games/tetris/input.c | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/games/tetris/input.c b/games/tetris/input.c index 63f15ec92aa..3ce2f21c5cd 100644 --- a/games/tetris/input.c +++ b/games/tetris/input.c @@ -1,4 +1,4 @@ -/* $OpenBSD: input.c,v 1.3 1998/09/24 06:45:07 pjanzen Exp $ */ +/* $OpenBSD: input.c,v 1.4 1999/03/22 07:38:24 pjanzen Exp $ */ /* $NetBSD: input.c,v 1.3 1996/02/06 22:47:33 jtc Exp $ */ /*- @@ -138,20 +138,6 @@ tsleep() } /* - * Eat up any input (used at end of game). - */ -void -eat_input() -{ - struct timeval tv; - char c; - - do { - tv.tv_sec = tv.tv_usec = 0; - } while (rwait(&tv) && read(0, &c, 1) == 1); -} - -/* * getchar with timeout. */ int |