diff options
author | jwise <jwise@NetBSD.org> | 2000-11-30 22:02:20 +0000 |
---|---|---|
committer | jwise <jwise@NetBSD.org> | 2000-11-30 22:02:20 +0000 |
commit | 57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2 (patch) | |
tree | 3bc754d092f41e7b5667b0fa6271416284ab03db /sail/dr_4.c | |
parent | 104808840672ea22714fd8cedb51ead07e21a3c5 (diff) | |
download | bsdgames-darwin-57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2.tar.gz bsdgames-darwin-57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2.tar.zst bsdgames-darwin-57a75ab7b9a0f4999cae7c0fa5acb46f230f38f2.zip |
Change the macro to roll a six-sided die from die() to dieroll() (for
obvious reasons of convention).
Diffstat (limited to 'sail/dr_4.c')
-rw-r--r-- | sail/dr_4.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sail/dr_4.c b/sail/dr_4.c index 336bdcf5..1738f149 100644 --- a/sail/dr_4.c +++ b/sail/dr_4.c @@ -1,4 +1,4 @@ -/* $NetBSD: dr_4.c,v 1.7 1999/02/10 00:45:45 hubertf Exp $ */ +/* $NetBSD: dr_4.c,v 1.8 2000/11/30 22:02:20 jwise Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)dr_4.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: dr_4.c,v 1.7 1999/02/10 00:45:45 hubertf Exp $"); +__RCSID("$NetBSD: dr_4.c,v 1.8 2000/11/30 22:02:20 jwise Exp $"); #endif #endif /* not lint */ @@ -56,7 +56,7 @@ struct ship *from, *to; return; friend = capship(from)->nationality == capship(to)->nationality; while (--k >= 0) { - if (friend || die() < 3) { + if (friend || dieroll() < 3) { cleangrapple(from, to, 0); makesignal(from, "ungrappling $$", to); } @@ -67,7 +67,7 @@ void grap(from, to) struct ship *from, *to; { - if (capship(from)->nationality != capship(to)->nationality && die() > 2) + if (capship(from)->nationality != capship(to)->nationality && dieroll() > 2) return; Write(W_GRAP, from, to->file->index, 0, 0, 0); Write(W_GRAP, to, from->file->index, 0, 0, 0); |