summaryrefslogtreecommitdiffstats
path: root/hack/hack.read.c
diff options
context:
space:
mode:
authorveego <veego@NetBSD.org>1998-08-30 09:19:36 +0000
committerveego <veego@NetBSD.org>1998-08-30 09:19:36 +0000
commit5a555a984855e94b0fc3c9154da6b65208ba2c70 (patch)
tree285ed9cc28655053e6f1520670b43ae864d0c264 /hack/hack.read.c
parentc4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 (diff)
downloadbsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.gz
bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.zst
bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.zip
Add braces to make the new egcs happy.
Diffstat (limited to 'hack/hack.read.c')
-rw-r--r--hack/hack.read.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/hack/hack.read.c b/hack/hack.read.c
index 7e2f4ebf..60b684a5 100644
--- a/hack/hack.read.c
+++ b/hack/hack.read.c
@@ -1,4 +1,4 @@
-/* $NetBSD: hack.read.c,v 1.4 1997/10/19 16:58:52 christos Exp $ */
+/* $NetBSD: hack.read.c,v 1.5 1998/08/30 09:19:37 veego Exp $ */
/*
* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985.
@@ -6,7 +6,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: hack.read.c,v 1.4 1997/10/19 16:58:52 christos Exp $");
+__RCSID("$NetBSD: hack.read.c,v 1.5 1998/08/30 09:19:37 veego Exp $");
#endif /* not lint */
#include <stdlib.h>
@@ -557,11 +557,12 @@ do_it:
for (zy = seely; zy <= seehy; zy++)
for (zx = seelx; zx <= seehx; zx++) {
levl[zx][zy].lit = on;
- if (!Blind && dist(zx, zy) > 2)
+ if (!Blind && dist(zx, zy) > 2) {
if (on)
prl(zx, zy);
else
nosee(zx, zy);
+ }
}
if (!on)
seehx = 0;