diff options
author | jsm <jsm@NetBSD.org> | 2000-09-24 14:20:23 +0000 |
---|---|---|
committer | jsm <jsm@NetBSD.org> | 2000-09-24 14:20:23 +0000 |
commit | 9ae968b31504e93c0435f5f1ed75fb2ab2c7cbea (patch) | |
tree | 98ad8893bb8c8de8449586dab6c34333d90cb814 /battlestar/com6.c | |
parent | 409964f65b6f27996ef748f75c5bbb01289ccee7 (diff) | |
download | bsdgames-darwin-9ae968b31504e93c0435f5f1ed75fb2ab2c7cbea.tar.gz bsdgames-darwin-9ae968b31504e93c0435f5f1ed75fb2ab2c7cbea.tar.zst bsdgames-darwin-9ae968b31504e93c0435f5f1ed75fb2ab2c7cbea.zip |
Add explicit no-ops to empty loops following the NetBSD style guide.
Diffstat (limited to 'battlestar/com6.c')
-rw-r--r-- | battlestar/com6.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/battlestar/com6.c b/battlestar/com6.c index 5009293b..5f4c8562 100644 --- a/battlestar/com6.c +++ b/battlestar/com6.c @@ -1,4 +1,4 @@ -/* $NetBSD: com6.c,v 1.19 2000/09/22 08:19:21 jsm Exp $ */ +/* $NetBSD: com6.c,v 1.20 2000/09/24 14:20:24 jsm Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)com6.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: com6.c,v 1.19 2000/09/22 08:19:21 jsm Exp $"); +__RCSID("$NetBSD: com6.c,v 1.20 2000/09/24 14:20:24 jsm Exp $"); #endif #endif /* not lint */ @@ -206,7 +206,8 @@ ride() puts("You climb onto the stallion and kick it in the guts. The stupid steed launches"); puts("forward through bush and fern. You are thrown and the horse gallops off."); clearbit(location[position].objects, HORSE); - while (!(position = rnd(NUMOFROOMS + 1)) || !OUTSIDE || !beenthere[position] || location[position].flyhere); + while (!(position = rnd(NUMOFROOMS + 1)) || !OUTSIDE || !beenthere[position] || location[position].flyhere) + continue; setbit(location[position].objects, HORSE); if (location[position].north) position = location[position].north; |