diff options
author | veego <veego@NetBSD.org> | 1998-08-30 09:19:36 +0000 |
---|---|---|
committer | veego <veego@NetBSD.org> | 1998-08-30 09:19:36 +0000 |
commit | 5a555a984855e94b0fc3c9154da6b65208ba2c70 (patch) | |
tree | 285ed9cc28655053e6f1520670b43ae864d0c264 /sail | |
parent | c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 (diff) | |
download | bsdgames-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')
-rw-r--r-- | sail/dr_1.c | 13 | ||||
-rw-r--r-- | sail/pl_3.c | 16 | ||||
-rw-r--r-- | sail/pl_7.c | 10 | ||||
-rw-r--r-- | sail/sync.c | 13 |
4 files changed, 32 insertions, 20 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; diff --git a/sail/pl_3.c b/sail/pl_3.c index b571bb9d..0a3bb092 100644 --- a/sail/pl_3.c +++ b/sail/pl_3.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_3.c,v 1.5 1997/10/13 21:04:09 christos Exp $ */ +/* $NetBSD: pl_3.c,v 1.6 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)pl_3.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_3.c,v 1.5 1997/10/13 21:04:09 christos Exp $"); +__RCSID("$NetBSD: pl_3.c,v 1.6 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -131,12 +131,13 @@ acceptcombat() else if (temp > 8) temp -= 8; sternrake = temp > 4 && temp < 6; - if (rakehim) + if (rakehim) { if (!sternrake) Msg("Raking the %s!", closest->shipname); else Msg("Stern Rake! %s splintering!", closest->shipname); + } index = guns; if (target < 3) index += car; @@ -150,21 +151,24 @@ acceptcombat() hit++; hit += QUAL[index][mc->qual-1]; for (n = 0; n < 3 && mf->captured == 0; n++) - if (!crew[n]) + if (!crew[n]) { if (index <= 5) hit--; else hit -= 2; - if (ready & R_INITIAL) + } + if (ready & R_INITIAL) { if (index <= 3) hit++; else hit += 2; - if (mf->captured != 0) + } + if (mf->captured != 0) { if (index <= 1) hit--; else hit -= 2; + } hit += AMMO[index][load - 1]; if (((temp = mc->class) >= 5 || temp == 1) && windspeed == 5) hit--; diff --git a/sail/pl_7.c b/sail/pl_7.c index 006020a4..0f91a469 100644 --- a/sail/pl_7.c +++ b/sail/pl_7.c @@ -1,4 +1,4 @@ -/* $NetBSD: pl_7.c,v 1.8 1997/10/13 21:04:32 christos Exp $ */ +/* $NetBSD: pl_7.c,v 1.9 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)pl_7.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: pl_7.c,v 1.8 1997/10/13 21:04:32 christos Exp $"); +__RCSID("$NetBSD: pl_7.c,v 1.9 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -100,16 +100,18 @@ newturn(n) movebuf[0] = '\0'; (void) alarm(0); - if (mf->readyL & R_LOADING) + if (mf->readyL & R_LOADING) { if (mf->readyL & R_DOUBLE) mf->readyL = R_LOADING; else mf->readyL = R_LOADED; - if (mf->readyR & R_LOADING) + } + if (mf->readyR & R_LOADING) { if (mf->readyR & R_DOUBLE) mf->readyR = R_LOADING; else mf->readyR = R_LOADED; + } if (!hasdriver) Write(W_DDEAD, SHIP(0), 0, 0, 0, 0, 0); diff --git a/sail/sync.c b/sail/sync.c index bc23292c..0f6a5858 100644 --- a/sail/sync.c +++ b/sail/sync.c @@ -1,4 +1,4 @@ -/* $NetBSD: sync.c,v 1.8 1998/03/29 04:56:46 mrg Exp $ */ +/* $NetBSD: sync.c,v 1.9 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)sync.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: sync.c,v 1.8 1998/03/29 04:56:46 mrg Exp $"); +__RCSID("$NetBSD: sync.c,v 1.9 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -349,7 +349,7 @@ sync_update(type, ship, a, b, c, d) } case W_UNFOUL: { struct snag *p = &ship->file->foul[a]; - if (p->sn_count > 0) + if (p->sn_count > 0) { if (b) { ship->file->nfoul -= p->sn_count; p->sn_count = 0; @@ -357,11 +357,12 @@ sync_update(type, ship, a, b, c, d) ship->file->nfoul--; p->sn_count--; } + } break; } case W_UNGRAP: { struct snag *p = &ship->file->grap[a]; - if (p->sn_count > 0) + if (p->sn_count > 0) { if (b) { ship->file->ngrap -= p->sn_count; p->sn_count = 0; @@ -369,14 +370,16 @@ sync_update(type, ship, a, b, c, d) ship->file->ngrap--; p->sn_count--; } + } break; } case W_SIGNAL: - if (mode == MODE_PLAYER) + if (mode == MODE_PLAYER) { if (nobells) Signal("$$: %s", ship, (char *) a); else Signal("\7$$: %s", ship, (char *) a); + } break; case W_CREW: { struct shipspecs *s = ship->specs; |