diff options
Diffstat (limited to 'games/fish')
-rw-r--r-- | games/fish/Makefile | 2 | ||||
-rw-r--r-- | games/fish/fish.c | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/games/fish/Makefile b/games/fish/Makefile index b8cad1a..a57454f 100644 --- a/games/fish/Makefile +++ b/games/fish/Makefile @@ -4,7 +4,7 @@ PROG= fish MAN6= fish.6 HIDEGAME=hidegame -beforeinstall: +beforeinstall: install -c -o ${BINOWN} -g ${BINGRP} -m 444 ${.CURDIR}/fish.instr \ ${DESTDIR}/usr/share/games/fish.instr diff --git a/games/fish/fish.c b/games/fish/fish.c index 79cdb51..3adf8fb 100644 --- a/games/fish/fish.c +++ b/games/fish/fish.c @@ -98,7 +98,7 @@ main(argc, argv) } printplayer(USER); (void)printf("get to start.\n"); - + for (;;) { move = usermove(); if (!comphand[move]) { @@ -208,12 +208,12 @@ promove() max = i; break; } - while (++i < RANKS) + while (++i < RANKS) if (comphand[i] != CARDS && comphand[i] > comphand[max]) max = i; return(max); - } + } if (nrandom(1024) == 0723) { for (i = 0; i < RANKS; ++i) if (userhand[i] && comphand[i]) @@ -340,7 +340,7 @@ printhand(hand) for (book = i = 0; i < RANKS; i++) if (hand[i] < CARDS) - for (j = hand[i]; --j >= 0;) + for (j = hand[i]; --j >= 0;) PRC(i); else ++book; |