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/assorted.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/assorted.c')
-rw-r--r-- | sail/assorted.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sail/assorted.c b/sail/assorted.c index 5101a207..8bd2bec7 100644 --- a/sail/assorted.c +++ b/sail/assorted.c @@ -1,4 +1,4 @@ -/* $NetBSD: assorted.c,v 1.8 1999/09/08 21:17:58 jsm Exp $ */ +/* $NetBSD: assorted.c,v 1.9 2000/11/30 22:02:20 jwise Exp $ */ /* * Copyright (c) 1983, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)assorted.c 8.2 (Berkeley) 4/28/95"; #else -__RCSID("$NetBSD: assorted.c,v 1.8 1999/09/08 21:17:58 jsm Exp $"); +__RCSID("$NetBSD: assorted.c,v 1.9 2000/11/30 22:02:20 jwise Exp $"); #endif #endif /* not lint */ @@ -283,7 +283,7 @@ struct ship *ship, *from; Write(W_POINTS, from, points, 0, 0, 0); unboard(ship, ship, 0); /* all offense */ unboard(ship, ship, 1); /* all defense */ - switch (die()) { + switch (dieroll()) { case 3: case 4: /* ship may sink */ Write(W_SINK, ship, 1, 0, 0, 0); |