summaryrefslogtreecommitdiff
path: root/games/wump/wump.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-14 20:40:43 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1998-02-14 20:40:43 +0000
commit120f15f4d62ba4f717d7c7095fa9741a9a639d92 (patch)
tree3b12b660d82c13f96cb9d4d94dc3bdc0a1eef981 /games/wump/wump.c
parent6de8cb0481bd793706e38dead271f9233a57b7e5 (diff)
further fixes from pjanzen@foatdi.harvard.edu
Diffstat (limited to 'games/wump/wump.c')
-rw-r--r--games/wump/wump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/games/wump/wump.c b/games/wump/wump.c
index 29177b3d1b3..4b7994d9b9a 100644
--- a/games/wump/wump.c
+++ b/games/wump/wump.c
@@ -578,7 +578,7 @@ cave_init()
cave[i].tunnel[j] = -1;
/* choose a random 'hop' delta for our guaranteed link */
- while (!(delta = random() % (room_num - 1)));
+ while (!(delta = random() % ((room_num - 1) / 2)));
for (i = 1; i <= room_num; ++i) {
link = ((i + delta) % room_num) + 1; /* connection */