diff options
author | H. Peter Anvin <hpa@zytor.com> | 2003-03-28 05:51:43 +0000 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2003-03-28 05:51:43 +0000 |
commit | 97117a4ed0666afd9bac1b332412a9137487651a (patch) | |
tree | 0df8fa396f60e64bdb57c3e5cf4c9ee0f0108547 /highscore.c | |
parent | e98e408926dda6874d884f13df0682251cd7a08f (diff) | |
download | grv-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 'highscore.c')
-rw-r--r-- | highscore.c | 12 |
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 ) { |