aboutsummaryrefslogtreecommitdiffstats
path: root/play.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-03-28 05:51:43 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-03-28 05:51:43 +0000
commit97117a4ed0666afd9bac1b332412a9137487651a (patch)
tree0df8fa396f60e64bdb57c3e5cf4c9ee0f0108547 /play.c
parente98e408926dda6874d884f13df0682251cd7a08f (diff)
downloadgrv-97117a4ed0666afd9bac1b332412a9137487651a.tar.gz
grv-97117a4ed0666afd9bac1b332412a9137487651a.tar.xz
grv-97117a4ed0666afd9bac1b332412a9137487651a.zip
More fixes for Windows compatibility: avoid %ll formats; fix the new
networking abstraction
Diffstat (limited to 'play.c')
-rw-r--r--play.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/play.c b/play.c
index ce73489..b35aaf4 100644
--- a/play.c
+++ b/play.c
@@ -433,7 +433,7 @@ static void move_player_to(int x, int y)
int64_t SSq = gp.Bon ? (int64_t)(gp.Level * exp(6.0*rnd()+3.0)) : 0;
if ( SSq ) {
- message(0, "Bonus: %lld points", SSq);
+ message(0, "Bonus: %" PRId64 " points", SSq);
} else {
message(0, "Sorry, no bonus!!");
}
@@ -623,7 +623,7 @@ static void super_bonus(void)
gp.SBs += SB;
lprintf(8,15,"SUPER BONUS");
- sprintf(buf, "%lld POINTS", SB);
+ sprintf(buf, "%" PRId64 " POINTS", SB);
color(14,4);
lprint(10,21-(strlen(buf)+1)/2,buf);
color(15,4);
@@ -673,14 +673,14 @@ static void end_level(int done)
sbon = (int64_t)( (30000.0*(gp.Level+1))/gp.Tid *
(double)(gp.OrigBar-gp.Bar)/gp.OrigBar +
0.5 );
- lprintf(10, 8, "PERFORMANCE BONUS: %lld", sbon);
+ lprintf(10, 8, "PERFORMANCE BONUS: %" PRId64 , sbon);
gp.Sc += sbon;
lprint(11, 7, "컴컴컴컴컴컴컴컴컴컴컴컴컴컴");
lprintf(12, 8, "TOP PERFORMANCES, LEVEL %d", gp.Level+1);
lprint(20, 8, "YOUR TOTAL SCORE AT THIS");
- lprintf(21, 8, "LEVEL WAS %lld", gp.Sc-gp.StScore);
+ lprintf(21, 8, "LEVEL WAS %" PRId64, gp.Sc-gp.StScore);
/* Show level high scores */
@@ -725,7 +725,7 @@ static void end_level(int done)
int64_t s = bests.level[gp.Level].score[i].score;
color(0,(rank == i+1) ? gp.c : gp.c2);
if ( s )
- lprintf(16+i,21, " %d %lld ", i+1, s);
+ lprintf(16+i,21, " %d %" PRId64 " ", i+1, s);
}
}