summaryrefslogtreecommitdiffstats
path: root/battlestar/com1.c
diff options
context:
space:
mode:
authorjsm <jsm@NetBSD.org>2000-09-17 23:04:17 +0000
committerjsm <jsm@NetBSD.org>2000-09-17 23:04:17 +0000
commit0c5056102773ba23e89c985e185f895b7877e839 (patch)
treefc5ccd28886a95ea7a93bc11177213469e4e6dd6 /battlestar/com1.c
parente828812cad1edfdd4b4f01f93330a6421cd816ab (diff)
downloadbsdgames-darwin-0c5056102773ba23e89c985e185f895b7877e839.tar.gz
bsdgames-darwin-0c5056102773ba23e89c985e185f895b7877e839.zip
Clean up formatting; partly from OpenBSD.
Diffstat (limited to 'battlestar/com1.c')
-rw-r--r--battlestar/com1.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/battlestar/com1.c b/battlestar/com1.c
index 0e3f474e..b3e4f6ff 100644
--- a/battlestar/com1.c
+++ b/battlestar/com1.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com1.c,v 1.11 2000/09/08 17:25:31 jsm Exp $ */
+/* $NetBSD: com1.c,v 1.12 2000/09/17 23:04:17 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com1.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: com1.c,v 1.11 2000/09/08 17:25:31 jsm Exp $");
+__RCSID("$NetBSD: com1.c,v 1.12 2000/09/17 23:04:17 jsm Exp $");
#endif
#endif /* not lint */
@@ -51,7 +51,7 @@ moveplayer(thataway, token)
wordnumber++;
if ((!notes[CANTMOVE] && !notes[LAUNCHED]) ||
testbit(location[position].objects, LAND) ||
- (fuel > 0 && notes[LAUNCHED]))
+ (fuel > 0 && notes[LAUNCHED])) {
if (thataway) {
position = thataway;
newway(token);
@@ -62,11 +62,12 @@ moveplayer(thataway, token)
whichway(location[position]);
return (0);
}
- else
+ } else {
if (notes[CANTMOVE] && !notes[LAUNCHED])
puts("You aren't able to move; you better drop something.");
else
puts("You are out of fuel; now you will rot in space forever!");
+ }
return (1);
}