summaryrefslogtreecommitdiffstats
path: root/trek/nova.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 /trek/nova.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 'trek/nova.c')
-rw-r--r--trek/nova.c14
1 files changed, 6 insertions, 8 deletions
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);