summaryrefslogtreecommitdiffstats
path: root/sail/dr_1.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 /sail/dr_1.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 'sail/dr_1.c')
-rw-r--r--sail/dr_1.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/sail/dr_1.c b/sail/dr_1.c
index e3f4e510..5f29c498 100644
--- a/sail/dr_1.c
+++ b/sail/dr_1.c
@@ -1,4 +1,4 @@
-/* $NetBSD: dr_1.c,v 1.6 1997/10/13 21:03:09 christos Exp $ */
+/* $NetBSD: dr_1.c,v 1.7 1998/08/30 09:19:40 veego Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)dr_1.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: dr_1.c,v 1.6 1997/10/13 21:03:09 christos Exp $");
+__RCSID("$NetBSD: dr_1.c,v 1.7 1998/08/30 09:19:40 veego Exp $");
#endif
#endif /* not lint */
@@ -359,11 +359,12 @@ compcombat()
hit++;
hit += QUAL[index][capship(sp)->specs->qual - 1];
for (n = 0; n < 3 && sp->file->captured == 0; n++)
- if (!crew[n])
+ if (!crew[n]) {
if (index <= 5)
hit--;
else
hit -= 2;
+ }
if (ready & R_INITIAL) {
if (!r)
sp->file->readyL &= ~R_INITIAL;
@@ -374,11 +375,12 @@ compcombat()
else
hit += 2;
}
- if (sp->file->captured != 0)
+ if (sp->file->captured != 0) {
if (index <= 1)
hit--;
else
hit -= 2;
+ }
hit += AMMO[index][load - 1];
temp = sp->specs->class;
if ((temp >= 5 || temp == 1) && windspeed == 5)
@@ -399,11 +401,12 @@ compcombat()
int
next()
{
- if (++turn % 55 == 0)
+ if (++turn % 55 == 0) {
if (alive)
alive = 0;
else
people = 0;
+ }
if (people <= 0 || windspeed == 7) {
struct ship *s;
struct ship *bestship = NULL;