summaryrefslogtreecommitdiffstats
path: root/larn/object.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 /larn/object.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 'larn/object.c')
-rw-r--r--larn/object.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/larn/object.c b/larn/object.c
index 60950a44..bfda5a17 100644
--- a/larn/object.c
+++ b/larn/object.c
@@ -1,10 +1,10 @@
-/* $NetBSD: object.c,v 1.8 1997/10/18 20:03:38 christos Exp $ */
+/* $NetBSD: object.c,v 1.9 1998/08/30 09:19:38 veego Exp $ */
/* object.c Larn is copyrighted 1986 by Noah Morgan. */
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: object.c,v 1.8 1997/10/18 20:03:38 christos Exp $");
+__RCSID("$NetBSD: object.c,v 1.9 1998/08/30 09:19:38 veego Exp $");
#endif /* not lint */
#include "header.h"
#include "extern.h"
@@ -1110,8 +1110,8 @@ void
opit()
{
int i;
- if (rnd(101) < 81)
- if (rnd(70) > 9 * c[DEXTERITY] - packweight() || rnd(101) < 5)
+ if (rnd(101) < 81) {
+ if (rnd(70) > 9 * c[DEXTERITY] - packweight() || rnd(101) < 5) {
if (level == MAXLEVEL - 1)
obottomless();
else if (level == MAXLEVEL + MAXVLEVEL - 1)
@@ -1131,6 +1131,8 @@ opit()
newcavelevel(level + 1);
draws(0, MAXX, 0, MAXY);
}
+ }
+ }
}
void