diff options
author | 2000-09-24 14:20:23 +0000 | |
---|---|---|
committer | 2000-09-24 14:20:23 +0000 | |
commit | 9ae968b31504e93c0435f5f1ed75fb2ab2c7cbea (patch) | |
tree | 98ad8893bb8c8de8449586dab6c34333d90cb814 /battlestar/com2.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/com2.c')
-rw-r--r-- | battlestar/com2.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/battlestar/com2.c b/battlestar/com2.c index 4ae10313..fb70c0a1 100644 --- a/battlestar/com2.c +++ b/battlestar/com2.c @@ -1,4 +1,4 @@ -/* $NetBSD: com2.c,v 1.17 2000/09/24 09:46:57 jsm Exp $ */ +/* $NetBSD: com2.c,v 1.18 2000/09/24 14:20:23 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.17 2000/09/24 09:46:57 jsm Exp $"); +__RCSID("$NetBSD: com2.c,v 1.18 2000/09/24 14:20:23 jsm Exp $"); #endif #endif /* not lint */ @@ -273,7 +273,8 @@ murder() void ravage() { - while (wordtype[++wordnumber] != NOUNS && wordnumber <= wordcount); + while (wordtype[++wordnumber] != NOUNS && wordnumber <= wordcount) + continue; if (wordtype[wordnumber] == NOUNS && (testbit(location[position].objects, wordvalue[wordnumber]) || (wordvalue[wordnumber] == NORMGOD && testbit(location[position].objects, BATHGOD)))) { ourtime++; |