mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 11:24:49 +00:00
This commit was manufactured by cvs2svn to create tag
'debian_version_2_14-8'. git-svn-id: file:///srv/svn/joey/bsdgames-tags/debian_version_2_14-8@5231 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* $NetBSD: canfield.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $ */
|
||||
/* $NetBSD: canfield.c,v 1.17 2000/05/08 07:56:02 mycroft Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1980, 1993
|
||||
@@ -43,7 +43,7 @@ __COPYRIGHT("@(#) Copyright (c) 1980, 1993\n\
|
||||
#if 0
|
||||
static char sccsid[] = "@(#)canfield.c 8.1 (Berkeley) 5/31/93";
|
||||
#else
|
||||
__RCSID("$NetBSD: canfield.c,v 1.11 1998/09/13 15:27:27 hubertf Exp $");
|
||||
__RCSID("$NetBSD: canfield.c,v 1.17 2000/05/08 07:56:02 mycroft Exp $");
|
||||
#endif
|
||||
#endif /* not lint */
|
||||
|
||||
@@ -1167,24 +1167,25 @@ updatebettinginfo()
|
||||
if (status != BETTINGBOX)
|
||||
return;
|
||||
move(tboxrow + 2, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.hand, game.hand, total.hand);
|
||||
printw("%4ld%8ld%9ld", this.hand, game.hand, total.hand);
|
||||
move(tboxrow + 3, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.inspection, game.inspection, total.inspection);
|
||||
printw("%4ld%8ld%9ld", this.inspection, game.inspection,
|
||||
total.inspection);
|
||||
move(tboxrow + 4, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.game, game.game, total.game);
|
||||
printw("%4ld%8ld%9ld", this.game, game.game, total.game);
|
||||
move(tboxrow + 5, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.runs, game.runs, total.runs);
|
||||
printw("%4ld%8ld%9ld", this.runs, game.runs, total.runs);
|
||||
move(tboxrow + 6, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.information, game.information,
|
||||
printw("%4ld%8ld%9ld", this.information, game.information,
|
||||
total.information);
|
||||
move(tboxrow + 7, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.thinktime, game.thinktime, total.thinktime);
|
||||
printw("%4ld%8ld%9ld", this.thinktime, game.thinktime, total.thinktime);
|
||||
move(tboxrow + 8, boxcol + 13);
|
||||
printw("%4d%8d%9d", thiscosts, gamecosts, totalcosts);
|
||||
printw("%4ld%8ld%9ld", thiscosts, gamecosts, totalcosts);
|
||||
move(tboxrow + 9, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.wins, game.wins, total.wins);
|
||||
printw("%4ld%8ld%9ld", this.wins, game.wins, total.wins);
|
||||
move(tboxrow + 10, boxcol + 13);
|
||||
printw("%4d%8d%9d", this.worth, game.worth, total.worth);
|
||||
printw("%4ld%8ld%9ld", this.worth, game.worth, total.worth);
|
||||
move(tboxrow + 11, boxcol + 13);
|
||||
printw("%4.0f%%%7.1f%%%8.1f%%", thisreturn, gamereturn, totalreturn);
|
||||
}
|
||||
@@ -1689,6 +1690,8 @@ initall()
|
||||
|
||||
if (dbfd < 0)
|
||||
return;
|
||||
if (dbfd < 3)
|
||||
exit(1);
|
||||
i = lseek(dbfd, uid * sizeof(struct betinfo), SEEK_SET);
|
||||
if (i < 0) {
|
||||
close(dbfd);
|
||||
@@ -1746,7 +1749,7 @@ finish()
|
||||
*/
|
||||
void
|
||||
cleanup(dummy)
|
||||
int dummy __attribute__((unused));
|
||||
int dummy __attribute__((__unused__));
|
||||
{
|
||||
|
||||
total.thinktime += 1;
|
||||
@@ -1770,7 +1773,7 @@ cleanup(dummy)
|
||||
*/
|
||||
void
|
||||
askquit(dummy)
|
||||
int dummy __attribute__((unused));
|
||||
int dummy __attribute__((__unused__));
|
||||
{
|
||||
move(msgrow, msgcol);
|
||||
printw("Really wish to quit? ");
|
||||
|
||||
Reference in New Issue
Block a user