aboutsummaryrefslogtreecommitdiffstats
path: root/highscore.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2003-03-26 21:38:14 +0000
committerH. Peter Anvin <hpa@zytor.com>2003-03-26 21:38:14 +0000
commit8a66df1ff9594b51ecb7e9ff26d5404b18817a6b (patch)
treedc05e3d7fdaf84ee7a42bd3448261d5a62458b81 /highscore.c
parent08bda1e1876afce4f1ca09b2df9fe290129526dd (diff)
downloadgrv-8a66df1ff9594b51ecb7e9ff26d5404b18817a6b.tar.gz
grv-8a66df1ff9594b51ecb7e9ff26d5404b18817a6b.tar.xz
grv-8a66df1ff9594b51ecb7e9ff26d5404b18817a6b.zip
Clean up unused variable in intro.c; clean up highscore.c
Diffstat (limited to 'highscore.c')
-rw-r--r--highscore.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/highscore.c b/highscore.c
index 96b102c..ca73c8a 100644
--- a/highscore.c
+++ b/highscore.c
@@ -206,8 +206,10 @@ void highscore_show(int myrank, int upload)
else
color(0,gp.c);
- lprintf(x,y, " %3d %-13lld ", i+1,
- bests.total[i].score);
+ /* 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 < 100), " %d %lld ", i+1, bests.total[i].score);
x++;
if ( x > 23 ) {