aboutsummaryrefslogtreecommitdiffstats
path: root/highscore.c
diff options
context:
space:
mode:
Diffstat (limited to 'highscore.c')
-rw-r--r--highscore.c12
1 files changed, 7 insertions, 5 deletions
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 ) {