summaryrefslogtreecommitdiffstats
path: root/battlestar/com2.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/com2.c
parente828812cad1edfdd4b4f01f93330a6421cd816ab (diff)
downloadbsdgames-darwin-0c5056102773ba23e89c985e185f895b7877e839.tar.gz
bsdgames-darwin-0c5056102773ba23e89c985e185f895b7877e839.zip
Clean up formatting; partly from OpenBSD.
Diffstat (limited to 'battlestar/com2.c')
-rw-r--r--battlestar/com2.c28
1 files changed, 12 insertions, 16 deletions
diff --git a/battlestar/com2.c b/battlestar/com2.c
index 96748eba..19ec2ec6 100644
--- a/battlestar/com2.c
+++ b/battlestar/com2.c
@@ -1,4 +1,4 @@
-/* $NetBSD: com2.c,v 1.9 2000/09/10 10:51:16 jsm Exp $ */
+/* $NetBSD: com2.c,v 1.10 2000/09/17 23:04:17 jsm Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)com2.c 8.2 (Berkeley) 4/28/95";
#else
-__RCSID("$NetBSD: com2.c,v 1.9 2000/09/10 10:51:16 jsm Exp $");
+__RCSID("$NetBSD: com2.c,v 1.10 2000/09/17 23:04:17 jsm Exp $");
#endif
#endif /* not lint */
@@ -159,20 +159,16 @@ use()
ourtime++;
notes[CANTSEE] = 0;
return (0);
- } else
- if (position == FINAL)
- puts("The amulet won't work in here.");
- else
- if (wordvalue[wordnumber] == COMPASS && testbit(inven, COMPASS))
- printf("Your compass points %s.\n", truedirec(NORTH, '-'));
- else
- if (wordvalue[wordnumber] == COMPASS)
- puts("You aren't holding the compass.");
- else
- if (wordvalue[wordnumber] == AMULET)
- puts("You aren't holding the amulet.");
- else
- puts("There is no apparent use.");
+ } else if (position == FINAL)
+ puts("The amulet won't work in here.");
+ else if (wordvalue[wordnumber] == COMPASS && testbit(inven, COMPASS))
+ printf("Your compass points %s.\n", truedirec(NORTH, '-'));
+ else if (wordvalue[wordnumber] == COMPASS)
+ puts("You aren't holding the compass.");
+ else if (wordvalue[wordnumber] == AMULET)
+ puts("You aren't holding the amulet.");
+ else
+ puts("There is no apparent use.");
return (-1);
}