summaryrefslogtreecommitdiff
path: root/games/tetris/tetris.h
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2017-08-13 02:12:17 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2017-08-13 02:12:17 +0000
commit34933f21070220fde3231f179ff03a2839fdb12c (patch)
tree7c46a8300a15b878162e358b288c3e27afa11c4d /games/tetris/tetris.h
parent39201292e15e0c176feeeefc1c368beb1d94859d (diff)
replace gettimeofday with monotonic gettime. from Scott Cheloha
ok tb
Diffstat (limited to 'games/tetris/tetris.h')
-rw-r--r--games/tetris/tetris.h12
1 files changed, 6 insertions, 6 deletions
diff --git a/games/tetris/tetris.h b/games/tetris/tetris.h
index 5eb3421db77..4faaf365509 100644
--- a/games/tetris/tetris.h
+++ b/games/tetris/tetris.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: tetris.h,v 1.11 2015/11/20 07:40:23 tb Exp $ */
+/* $OpenBSD: tetris.h,v 1.12 2017/08/13 02:12:16 tedu Exp $ */
/* $NetBSD: tetris.h,v 1.2 1995/04/22 07:42:48 cgd Exp $ */
/*-
@@ -135,15 +135,15 @@ extern const struct shape *nextshape;
/*
* Shapes fall at a rate faster than once per second.
*
- * The initial rate is determined by dividing 1 million microseconds
- * by the game `level'. (This is at most 1 million, or one second.)
- * Each time the fall-rate is used, it is decreased a little bit,
+ * The initial rate is determined by dividing 1 billion nanoseconds
+ * by the game `level'. (This is at most 1 billion, or one second.)
+ * Each time the fallrate is used, it is decreased a little bit,
* depending on its current value, via the `faster' macro below.
* The value eventually reaches a limit, and things stop going faster,
* but by then the game is utterly impossible.
*/
-extern long fallrate; /* less than 1 million; smaller => faster */
-#define faster() (fallrate -= fallrate / 3000)
+extern long fallrate; /* less than 1 billion; smaller => faster */
+#define faster() (fallrate -= fallrate / 3000000)
/*
* Game level must be between 1 and 9. This controls the initial fall rate