diff options
| author | jsm <jsm@NetBSD.org> | 2000-09-10 10:52:56 +0000 |
|---|---|---|
| committer | jsm <jsm@NetBSD.org> | 2000-09-10 10:52:56 +0000 |
| commit | ac0e105a1cb81cab2f045dedc161f0b856985e6b (patch) | |
| tree | 622e956c49b2f9780651e6fc8c76b86319b43c54 /battlestar/room.c | |
| parent | c8f75ed90de51b0cc71da2c6c9d5fc42192076f8 (diff) | |
| download | bsdgames-darwin-ac0e105a1cb81cab2f045dedc161f0b856985e6b.tar.gz bsdgames-darwin-ac0e105a1cb81cab2f045dedc161f0b856985e6b.zip | |
Based on OpenBSD: spelling, punctuation, grammar and line length
adjustments, and support for '=' in room descriptions meaning a
literal '-'.
Diffstat (limited to 'battlestar/room.c')
| -rw-r--r-- | battlestar/room.c | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/battlestar/room.c b/battlestar/room.c index ddcd1fa4..8dd8bec3 100644 --- a/battlestar/room.c +++ b/battlestar/room.c @@ -1,4 +1,4 @@ -/* $NetBSD: room.c,v 1.8 2000/09/08 17:22:02 jsm Exp $ */ +/* $NetBSD: room.c,v 1.9 2000/09/10 10:52:56 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)room.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: room.c,v 1.8 2000/09/08 17:22:02 jsm Exp $"); +__RCSID("$NetBSD: room.c,v 1.9 2000/09/10 10:52:56 jsm Exp $"); #endif #endif /* not lint */ @@ -55,9 +55,12 @@ writedes() if (beenthere[position] < ROOMDESC) { compass = NORTH; for (p = location[position].desc; (c = *p++) != 0;) - if (c != '-' && c != '*' && c != '+') - putchar(c); - else { + if (c != '-' && c != '*' && c != '+') { + if (c == '=') + putchar('-'); + else + putchar(c); + } else { if (c != '*') printf(truedirec(compass, c)); compass++; |
