summaryrefslogtreecommitdiffstats
path: root/games/wump/wump.c
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1998-02-14 20:40:37 +0000
committerderaadt <deraadt@openbsd.org>1998-02-14 20:40:37 +0000
commit296f1046f19cecc6a7a6a3d11b5616a952a011e2 (patch)
treebfeeb26550aa59957afdd78934bd7fed3fbd3201 /games/wump/wump.c
parent(no commit message) (diff)
downloadwireguard-openbsd-296f1046f19cecc6a7a6a3d11b5616a952a011e2.tar.xz
wireguard-openbsd-296f1046f19cecc6a7a6a3d11b5616a952a011e2.zip
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 */