From 5a555a984855e94b0fc3c9154da6b65208ba2c70 Mon Sep 17 00:00:00 2001 From: veego Date: Sun, 30 Aug 1998 09:19:36 +0000 Subject: Add braces to make the new egcs happy. --- hack/hack.read.c | 7 ++++--- hack/hack.trap.c | 7 ++++--- 2 files changed, 8 insertions(+), 6 deletions(-) (limited to 'hack') 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 #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 @@ -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; diff --git a/hack/hack.trap.c b/hack/hack.trap.c index 594e8c2a..55203b7e 100644 --- a/hack/hack.trap.c +++ b/hack/hack.trap.c @@ -1,4 +1,4 @@ -/* $NetBSD: hack.trap.c,v 1.4 1997/10/19 16:59:16 christos Exp $ */ +/* $NetBSD: hack.trap.c,v 1.5 1998/08/30 09:19:37 veego Exp $ */ /* * Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. @@ -6,7 +6,7 @@ #include #ifndef lint -__RCSID("$NetBSD: hack.trap.c,v 1.4 1997/10/19 16:59:16 christos Exp $"); +__RCSID("$NetBSD: hack.trap.c,v 1.5 1998/08/30 09:19:37 veego Exp $"); #endif /* not lint */ #include @@ -433,11 +433,12 @@ level_tele() newlevel = atoi(buf); } else { newlevel = 5 + rn2(20); /* 5 - 24 */ - if (dlevel == newlevel) + if (dlevel == newlevel) { if (!xdnstair) newlevel--; else newlevel++; + } } if (newlevel >= 30) { if (newlevel > MAXLEVEL) -- cgit v1.2.3