diff options
| author | rillig <rillig@NetBSD.org> | 2021-05-02 12:50:43 +0000 |
|---|---|---|
| committer | Cameron Katri <me@cameronkatri.com> | 2021-05-05 14:56:21 -0400 |
| commit | 1c75ca2e2dc72d118edbb854455e602d70d80a52 (patch) | |
| tree | a815eb983fa15e7c407095122e37acb90093be9a /battlestar/command6.c | |
| parent | 2442661e769456700d67fac92056d18b3046633e (diff) | |
| download | bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.tar.gz bsdgames-darwin-1c75ca2e2dc72d118edbb854455e602d70d80a52.zip | |
games: remove trailing whitespace in *.c and *.h
Diffstat (limited to 'battlestar/command6.c')
| -rw-r--r-- | battlestar/command6.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/battlestar/command6.c b/battlestar/command6.c index 0c6c8641..5eec6962 100644 --- a/battlestar/command6.c +++ b/battlestar/command6.c @@ -1,4 +1,4 @@ -/* $NetBSD: command6.c,v 1.8 2010/04/24 00:38:30 dholland Exp $ */ +/* $NetBSD: command6.c,v 1.9 2021/05/02 12:50:43 rillig Exp $ */ /* * Copyright (c) 1983, 1993 @@ -34,7 +34,7 @@ #if 0 static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: command6.c,v 1.8 2010/04/24 00:38:30 dholland Exp $"); +__RCSID("$NetBSD: command6.c,v 1.9 2021/05/02 12:50:43 rillig Exp $"); #endif #endif /* not lint */ @@ -127,7 +127,7 @@ post(int ch) sigprocmask(SIG_BLOCK, &isigset, &osigset); tv = time(NULL); if (score_fp != NULL) { - fprintf(score_fp, "%24.24s %8s %c%20s", ctime(&tv), username, + fprintf(score_fp, "%24.24s %8s %c%20s", ctime(&tv), username, ch, rate()); if (wiz) fprintf(score_fp, " wizard\n"); @@ -206,7 +206,7 @@ ride(void) printf("forward through bush and fern. You are thrown and "); puts("the horse gallops off."); clearbit(location[position].objects, HORSE); - while (!(position = rnd(NUMOFROOMS + 1)) || !OUTSIDE || + while (!(position = rnd(NUMOFROOMS + 1)) || !OUTSIDE || !beenthere[position] || location[position].flyhere) continue; setbit(location[position].objects, HORSE); |
