summaryrefslogtreecommitdiffstats
path: root/tetris/screen.c
diff options
context:
space:
mode:
authorhubertf <hubertf@NetBSD.org>1999-01-03 17:13:51 +0000
committerhubertf <hubertf@NetBSD.org>1999-01-03 17:13:51 +0000
commitf8df8c0281a2b93b58f947c4bc167c998f05e804 (patch)
treeeea579958c7b97230bca854b4bc469209318c125 /tetris/screen.c
parent69a9330f3a35ba66a49fad4835b5188fe59f2bbf (diff)
downloadbsdgames-darwin-f8df8c0281a2b93b58f947c4bc167c998f05e804.tar.gz
bsdgames-darwin-f8df8c0281a2b93b58f947c4bc167c998f05e804.zip
only show preview if the -p option is given
Diffstat (limited to 'tetris/screen.c')
-rw-r--r--tetris/screen.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/tetris/screen.c b/tetris/screen.c
index c4a4ff87..f96f85b3 100644
--- a/tetris/screen.c
+++ b/tetris/screen.c
@@ -1,4 +1,4 @@
-/* $NetBSD: screen.c,v 1.8 1999/01/03 02:00:18 hubertf Exp $ */
+/* $NetBSD: screen.c,v 1.9 1999/01/03 17:13:51 hubertf Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -394,9 +394,8 @@ scr_update()
curscore = score;
}
-#ifndef NO_PREVIEW
/* draw preview of nextpattern */
- if (nextshape != lastshape) {
+ if (showpreview && (nextshape != lastshape)) {
int i;
static int r=5, c=2;
int tr, tc, t;
@@ -429,7 +428,6 @@ scr_update()
}
putpad(SEstr);
}
-#endif
bp = &board[D_FIRST * B_COLS];
sp = &curscreen[D_FIRST * B_COLS];