From 97117a4ed0666afd9bac1b332412a9137487651a Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Fri, 28 Mar 2003 05:51:43 +0000 Subject: More fixes for Windows compatibility: avoid %ll formats; fix the new networking abstraction --- highscore.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'highscore.c') diff --git a/highscore.c b/highscore.c index bd1df34..35ebc9f 100644 --- a/highscore.c +++ b/highscore.c @@ -173,10 +173,11 @@ void highscore_show(int myrank, int upload) lprint(1,15,"THE TOP TEN"); for ( i = 0 ; i < 10 ; i++ ) { - lprintf(i+4,4,"%2d %-13lld %-9.9s (%2d)", - i+1, bests.total[i].score, - bests.total[i].player, - bests.total[i].endlvl+1); + if ( bests.total[i].score ) + lprintf(i+4,4,"%2d %-13" PRId64 " %-9.9s (%2d)", + i+1, bests.total[i].score, + bests.total[i].player, + bests.total[i].endlvl+1); if ( i+1 == myrank ) { color(0,gp.c2); @@ -211,7 +212,8 @@ void highscore_show(int myrank, int upload) /* Don't use %3d; we only want the highlight bar to wrap the text, not spill over. Therefore we need to adjust the starting position to make the numbers line up... */ - lprintf(x,y+(i < 99), " %d %lld ", i+1, bests.total[i].score); + if ( bests.total[i].score ) + lprintf(x,y+(i < 99), " %d %" PRId64 " ", i+1, bests.total[i].score); x++; if ( x > 23 ) { -- cgit v1.2.3