diff options
author | veego <veego@NetBSD.org> | 1998-08-30 09:19:36 +0000 |
---|---|---|
committer | veego <veego@NetBSD.org> | 1998-08-30 09:19:36 +0000 |
commit | 5a555a984855e94b0fc3c9154da6b65208ba2c70 (patch) | |
tree | 285ed9cc28655053e6f1520670b43ae864d0c264 /wump | |
parent | c4c1ed4f214d1b50a09d0c42fa9c741ac18fb482 (diff) | |
download | bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.gz bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.tar.zst bsdgames-darwin-5a555a984855e94b0fc3c9154da6b65208ba2c70.zip |
Add braces to make the new egcs happy.
Diffstat (limited to 'wump')
-rw-r--r-- | wump/wump.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/wump/wump.c b/wump/wump.c index 1e3de3b8..bcffa5eb 100644 --- a/wump/wump.c +++ b/wump/wump.c @@ -1,4 +1,4 @@ -/* $NetBSD: wump.c,v 1.5 1997/10/12 03:36:42 lukem Exp $ */ +/* $NetBSD: wump.c,v 1.6 1998/08/30 09:19:41 veego Exp $ */ /* * Copyright (c) 1989, 1993 @@ -47,7 +47,7 @@ __COPYRIGHT("@(#) Copyright (c) 1989, 1993\n\ #if 0 static char sccsid[] = "@(#)wump.c 8.1 (Berkeley) 5/31/93"; #else -__RCSID("$NetBSD: wump.c,v 1.5 1997/10/12 03:36:42 lukem Exp $"); +__RCSID("$NetBSD: wump.c,v 1.6 1998/08/30 09:19:41 veego Exp $"); #endif #endif /* not lint */ @@ -377,7 +377,7 @@ move_to(room_number) wump_kill(); return(1); } - if (cave[next_room].has_a_pit) + if (cave[next_room].has_a_pit) { if (random() % 12 < 2) { pit_survive(); return(0); @@ -385,6 +385,7 @@ move_to(room_number) pit_kill(); return(1); } + } if (cave[next_room].has_a_bat) { (void)printf( @@ -420,13 +421,14 @@ shoot(room_list) */ arrow_location = player_loc; for (roomcnt = 1;; ++roomcnt, room_list = NULL) { - if (!(p = strtok(room_list, " \t\n"))) + if (!(p = strtok(room_list, " \t\n"))) { if (roomcnt == 1) { (void)printf( "The arrow falls to the ground at your feet!\n"); return(0); } else break; + } if (roomcnt > 5) { (void)printf( "The arrow wavers in its flight and and can go no further!\n"); |