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 /trek | |
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 'trek')
-rw-r--r-- | trek/kill.c | 7 | ||||
-rw-r--r-- | trek/move.c | 14 | ||||
-rw-r--r-- | trek/nova.c | 14 | ||||
-rw-r--r-- | trek/shield.c | 7 |
4 files changed, 21 insertions, 21 deletions
diff --git a/trek/kill.c b/trek/kill.c index e1cb298d..745ccfc6 100644 --- a/trek/kill.c +++ b/trek/kill.c @@ -1,4 +1,4 @@ -/* $NetBSD: kill.c,v 1.4 1997/10/12 21:24:56 christos Exp $ */ +/* $NetBSD: kill.c,v 1.5 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)kill.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: kill.c,v 1.4 1997/10/12 21:24:56 christos Exp $"); +__RCSID("$NetBSD: kill.c,v 1.5 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -113,13 +113,14 @@ int qx, qy; if (q->bases <= 0) return; - if (!damaged(SSRADIO)) + if (!damaged(SSRADIO)) { /* then update starchart */ if (q->scanned < 1000) q->scanned -= 10; else if (q->scanned > 1000) q->scanned = -1; + } q->bases = 0; Now.bases -= 1; for (b = Now.base; ; b++) diff --git a/trek/move.c b/trek/move.c index a73d575f..c9d297a6 100644 --- a/trek/move.c +++ b/trek/move.c @@ -1,4 +1,4 @@ -/* $NetBSD: move.c,v 1.4 1997/10/12 21:25:02 christos Exp $ */ +/* $NetBSD: move.c,v 1.5 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)move.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: move.c,v 1.4 1997/10/12 21:25:02 christos Exp $"); +__RCSID("$NetBSD: move.c,v 1.5 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -186,13 +186,13 @@ double speed; Ship.quady = iy / NSECTS; Ship.sectx = ix % NSECTS; Ship.secty = iy % NSECTS; - if (ix < 0 || Ship.quadx >= NQUADS || iy < 0 || Ship.quady >= NQUADS) - if (!damaged(COMPUTER)) - { + if (ix < 0 || Ship.quadx >= NQUADS || iy < 0 || + Ship.quady >= NQUADS) { + if (!damaged(COMPUTER)) { dumpme(0); - } - else + } else lose(L_NEGENB); + } initquad(0); n = 0; break; diff --git a/trek/nova.c b/trek/nova.c index 358781a9..82164a6a 100644 --- a/trek/nova.c +++ b/trek/nova.c @@ -1,4 +1,4 @@ -/* $NetBSD: nova.c,v 1.4 1997/10/12 21:25:03 christos Exp $ */ +/* $NetBSD: nova.c,v 1.5 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)nova.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: nova.c,v 1.4 1997/10/12 21:25:03 christos Exp $"); +__RCSID("$NetBSD: nova.c,v 1.5 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -124,17 +124,15 @@ int x, y; case ENTERPRISE: case QUEENE: se = 2000; - if (Ship.shldup) - if (Ship.shield >= se) - { + if (Ship.shldup) { + if (Ship.shield >= se) { Ship.shield -= se; se = 0; - } - else - { + } else { se -= Ship.shield; Ship.shield = 0; } + } Ship.energy -= se; if (Ship.energy <= 0) lose(L_SUICID); diff --git a/trek/shield.c b/trek/shield.c index ed78e2d0..135fa589 100644 --- a/trek/shield.c +++ b/trek/shield.c @@ -1,4 +1,4 @@ -/* $NetBSD: shield.c,v 1.5 1997/10/12 21:25:17 christos Exp $ */ +/* $NetBSD: shield.c,v 1.6 1998/08/30 09:19:40 veego Exp $ */ /* * Copyright (c) 1980, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)shield.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: shield.c,v 1.5 1997/10/12 21:25:17 christos Exp $"); +__RCSID("$NetBSD: shield.c,v 1.6 1998/08/30 09:19:40 veego Exp $"); #endif #endif /* not lint */ @@ -140,11 +140,12 @@ int f; printf("down\n"); return; } - if (i) + if (i) { if (f >= 0) Ship.energy -= Param.shupengy; else Ship.cloakgood = 0; + } Move.free = 0; if (f >= 0) Move.shldchg = 1; |