aboutsummaryrefslogtreecommitdiffstats
path: root/highscore.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2012-02-29 21:12:55 -0800
committerH. Peter Anvin <hpa@zytor.com>2012-02-29 21:12:55 -0800
commitc105886c048e0700de01c6ba327684b67aa0aed1 (patch)
treeec752aa3ccacb7cc32a23b051aff0f9a9ed98bf4 /highscore.c
parent9041bb43b4d5de67cab2a2224afcd1c40d53ec87 (diff)
downloadgrv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.gz
grv-c105886c048e0700de01c6ba327684b67aa0aed1.tar.xz
grv-c105886c048e0700de01c6ba327684b67aa0aed1.zip
Clean up crap whitespace
Diffstat (limited to 'highscore.c')
-rw-r--r--highscore.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/highscore.c b/highscore.c
index e8f41d3..37bceaf 100644
--- a/highscore.c
+++ b/highscore.c
@@ -58,7 +58,7 @@ void highscore_upload(void)
}
}
}
-
+
/*
* Allow the user to enter the name for the high score
*/
@@ -82,7 +82,7 @@ static void enter_name(int rank, char *player)
color(0,gp.c);
lprint(15,11,"ENTER YOUR INITIALS!");
-
+
color(0,gp.c2);
lprint(17,1,symbols[0]);
lprint(18,1,symbols[1]);
@@ -116,7 +116,7 @@ static void enter_name(int rank, char *player)
do {
ke = get_key();
-
+
if ( ke->keysym.sym == kbd_keys[0] ) {
x = max(0,x-1);
if ( x != x1 ) y = vy;
@@ -156,7 +156,7 @@ static void enter_name(int rank, char *player)
lprint(x1+17,y1+1,s);
}
}
-
+
/*
* Display highscore screen; optionally show the user rank
@@ -171,14 +171,14 @@ void highscore_show(int myrank, int upload)
color(0,gp.c);
lprint(1,15,"THE TOP TEN");
-
+
for ( i = 0 ; i < 10 ; i++ ) {
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);
lprint(i+4,23,".........");
@@ -199,9 +199,9 @@ void highscore_show(int myrank, int upload)
color(0,gp.c);
lprint(21,8,"Please press any key . . .");
get_key();
-
+
initscreen(80);
-
+
x = 1; y = 1;
for ( i = 10 ; i < 100 ; i++ ) {
if ( i+1 == myrank )