summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--canfield/canfield/canfield.c23
-rw-r--r--mille/print.c6
-rw-r--r--phantasia/fight.c4
-rw-r--r--phantasia/misc.c4
-rw-r--r--robots/score.c6
5 files changed, 22 insertions, 21 deletions
diff --git a/canfield/canfield/canfield.c b/canfield/canfield/canfield.c
index 854bf2eb..2626870f 100644
--- a/canfield/canfield/canfield.c
+++ b/canfield/canfield/canfield.c
@@ -1,4 +1,4 @@
-/* $NetBSD: canfield.c,v 1.15 1999/09/12 09:02:20 jsm Exp $ */
+/* $NetBSD: canfield.c,v 1.16 2000/04/27 00:30:52 jdc 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.15 1999/09/12 09:02:20 jsm Exp $");
+__RCSID("$NetBSD: canfield.c,v 1.16 2000/04/27 00:30:52 jdc 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);
}
diff --git a/mille/print.c b/mille/print.c
index 4cf850c6..937beaaa 100644
--- a/mille/print.c
+++ b/mille/print.c
@@ -1,4 +1,4 @@
-/* $NetBSD: print.c,v 1.8 1999/09/08 21:45:28 jsm Exp $ */
+/* $NetBSD: print.c,v 1.9 2000/04/27 00:30:52 jdc Exp $ */
/*
* Copyright (c) 1982, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)print.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: print.c,v 1.8 1999/09/08 21:45:28 jsm Exp $");
+__RCSID("$NetBSD: print.c,v 1.9 2000/04/27 00:30:52 jdc Exp $");
#endif
#endif /* not lint */
@@ -89,7 +89,7 @@ prboard()
pp = &Player[PLAYER];
for (i = 0; i < HAND_SZ; i++)
show_card(i + 6, temp, pp->hand[i], &pp->sh_hand[i]);
- mvprintw(6, COMP_STRT + CARD_STRT, "%2d", Topcard - Deck);
+ mvprintw(6, COMP_STRT + CARD_STRT, "%2ld", Topcard - Deck);
show_card(8, COMP_STRT + CARD_STRT, Discard, &Sh_discard);
if (End == 1000) {
move(EXT_Y, EXT_X);
diff --git a/phantasia/fight.c b/phantasia/fight.c
index e69a5374..0ce0c739 100644
--- a/phantasia/fight.c
+++ b/phantasia/fight.c
@@ -1,4 +1,4 @@
-/* $NetBSD: fight.c,v 1.6 2000/03/30 11:01:13 jdolecek Exp $ */
+/* $NetBSD: fight.c,v 1.7 2000/04/27 00:30:53 jdc Exp $ */
/*
* fight.c Phantasia monster fighting routines
@@ -396,7 +396,7 @@ monsthits()
/* takes some of the player's strength */
inflict = ROLL(1.0, (Circle - 1.0) / 2.0);
inflict = MIN(Player.p_strength, inflict);
- mvprintw(Lines++, 0, "%s sapped %0.f of your strength!",
+ mvprintw(Lines++, 0, "%s sapped %.0f of your strength!",
Enemyname, inflict);
Player.p_strength -= inflict;
Player.p_might -= inflict;
diff --git a/phantasia/misc.c b/phantasia/misc.c
index 098b5888..5be73cc5 100644
--- a/phantasia/misc.c
+++ b/phantasia/misc.c
@@ -1,4 +1,4 @@
-/* $NetBSD: misc.c,v 1.6 1999/09/08 21:57:19 jsm Exp $ */
+/* $NetBSD: misc.c,v 1.7 2000/04/27 00:30:53 jdc Exp $ */
/*
* misc.c Phantasia miscellaneous support routines
@@ -426,7 +426,7 @@ allstatslist()
mvprintw(13, 0, "Sin : %9.5f", Player.p_sin);
mvprintw(14, 0, "Poison : %9.5f", Player.p_poison);
mvprintw(15, 0, "Gems : %9.0f", Player.p_gems);
- mvprintw(16, 0, "Age : %9d", Player.p_age);
+ mvprintw(16, 0, "Age : %9ld", Player.p_age);
mvprintw(10, 40, "Holy Water: %9d", Player.p_holywater);
mvprintw(11, 40, "Amulets : %9d", Player.p_amulets);
mvprintw(12, 40, "Charms : %9d", Player.p_charms);
diff --git a/robots/score.c b/robots/score.c
index 2ef05eeb..4d4222d2 100644
--- a/robots/score.c
+++ b/robots/score.c
@@ -1,4 +1,4 @@
-/* $NetBSD: score.c,v 1.13 2000/04/09 23:02:52 mycroft Exp $ */
+/* $NetBSD: score.c,v 1.14 2000/04/27 00:30:53 jdc Exp $ */
/*
* Copyright (c) 1980, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)score.c 8.1 (Berkeley) 5/31/93";
#else
-__RCSID("$NetBSD: score.c,v 1.13 2000/04/09 23:02:52 mycroft Exp $");
+__RCSID("$NetBSD: score.c,v 1.14 2000/04/27 00:30:53 jdc Exp $");
#endif
#endif /* not lint */
@@ -175,7 +175,7 @@ score(score_wfd)
move((scp - Top) + 2, 15);
if (!done_show && scp->s_uid == uid && scp->s_score == Score)
standout();
- printw("%5d %5d %-8.8s %-9.9s %5d",
+ printw("%5ld %5d %-8.8s %-9.9s %5d",
(scp - Top) + 1, scp->s_score, scp->s_name,
scp->s_auto ? "(autobot)" : "", scp->s_level);
if (!done_show && scp->s_uid == uid && scp->s_score == Score) {