diff options
author | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-18 23:20:46 +0000 |
---|---|---|
committer | Ted Unangst <tedu@cvs.openbsd.org> | 2015-02-18 23:20:46 +0000 |
commit | 2e914ce29407fdf5940bfe4fa75ee45a209ed1af (patch) | |
tree | 29cc6834718a4bccaf5387c5c7f843cf32e6842c /games/fish | |
parent | d19469a2ddb2a8a47d59890f7b7672590556ec0b (diff) |
no reason for magic numbers to be octal. just drop the leading 0.
still equally magic.
Diffstat (limited to 'games/fish')
-rw-r--r-- | games/fish/fish.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/games/fish/fish.c b/games/fish/fish.c index 5559fa9432f..4d39122e47b 100644 --- a/games/fish/fish.c +++ b/games/fish/fish.c @@ -1,4 +1,4 @@ -/* $OpenBSD: fish.c,v 1.16 2013/08/29 20:22:12 naddy Exp $ */ +/* $OpenBSD: fish.c,v 1.17 2015/02/18 23:20:45 tedu Exp $ */ /* $NetBSD: fish.c,v 1.3 1995/03/23 08:28:18 cgd Exp $ */ /*- @@ -227,7 +227,7 @@ promove(void) max = i; return(max); } - if (nrandom(1024) == 0723) { + if (nrandom(1024) == 723) { for (i = 0; i < RANKS; ++i) if (userhand[i] && comphand[i]) return(i); @@ -316,11 +316,11 @@ chkwinner(int player, const int *hand) (void)printf("\nI have %d, you have %d.\n", cb, ub); if (ub > cb) { (void)printf("\nYou win!!!\n"); - if (nrandom(1024) == 0723) + if (nrandom(1024) == 723) (void)printf("Cheater, cheater, pumpkin eater!\n"); } else if (cb > ub) { (void)printf("\nI win!!!\n"); - if (nrandom(1024) == 0723) + if (nrandom(1024) == 723) (void)printf("Hah! Stupid peasant!\n"); } else (void)printf("\nTie!\n"); |