summaryrefslogtreecommitdiffstats
path: root/tetris/shapes.c
diff options
context:
space:
mode:
authorwiz <wiz@NetBSD.org>2002-06-02 22:17:37 +0000
committerwiz <wiz@NetBSD.org>2002-06-02 22:17:37 +0000
commit626903439b2df287fd31ab00fa78eea25ae0a22d (patch)
tree43b8d11e21acacde6c2204139c298b027d542b38 /tetris/shapes.c
parent4506ee6421a65ebf465cb3e1124f0ba604dbcb20 (diff)
downloadbsdgames-darwin-626903439b2df287fd31ab00fa78eea25ae0a22d.tar.gz
bsdgames-darwin-626903439b2df287fd31ab00fa78eea25ae0a22d.tar.zst
bsdgames-darwin-626903439b2df287fd31ab00fa78eea25ae0a22d.zip
de-register
Diffstat (limited to 'tetris/shapes.c')
-rw-r--r--tetris/shapes.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/tetris/shapes.c b/tetris/shapes.c
index 86f249cc..32c78148 100644
--- a/tetris/shapes.c
+++ b/tetris/shapes.c
@@ -1,4 +1,4 @@
-/* $NetBSD: shapes.c,v 1.4 1999/09/08 21:18:01 jsm Exp $ */
+/* $NetBSD: shapes.c,v 1.5 2002/06/02 22:17:38 wiz Exp $ */
/*-
* Copyright (c) 1992, 1993
@@ -85,9 +85,9 @@ const struct shape shapes[] = {
int
fits_in(shape, pos)
const struct shape *shape;
- register int pos;
+ int pos;
{
- register int *o = shape->off;
+ int *o = shape->off;
if (board[pos] || board[pos + *o++] || board[pos + *o++] ||
board[pos + *o])
@@ -102,9 +102,9 @@ fits_in(shape, pos)
void
place(shape, pos, onoff)
const struct shape *shape;
- register int pos, onoff;
+ int pos, onoff;
{
- register int *o = shape->off;
+ int *o = shape->off;
board[pos] = onoff;
board[pos + *o++] = onoff;