aboutsummaryrefslogtreecommitdiffstats
path: root/scoretbl.c
diff options
context:
space:
mode:
Diffstat (limited to 'scoretbl.c')
-rw-r--r--scoretbl.c16
1 files changed, 9 insertions, 7 deletions
diff --git a/scoretbl.c b/scoretbl.c
index fb57489..2d62160 100644
--- a/scoretbl.c
+++ b/scoretbl.c
@@ -220,27 +220,29 @@ int highscore_write(FILE *f, uint8_t leave)
bests.total[i].endlvl+1, quote(bests.total[i].player));
if ( fputs(buffer, f) == EOF )
return -1;
- bests.total[i].upload &= leave;
}
+ bests.total[i].upload &= leave;
}
for ( i = 0 ; i < MAX_LEVEL ; i++ ) {
for ( j = 0 ; j < MAX_PER_LEVEL ; j++ ) {
- if ( bests.level[i].score[j].score )
+ if ( bests.level[i].score[j].score ) {
sprintf(buffer, "LS %" PRIx64 " %d %" PRId64 "\n",
bests.level[i].score[j].gameid,
i+1, bests.level[i].score[j].score);
- if ( fputs(buffer, f) == EOF )
- return -1;
+ if ( fputs(buffer, f) == EOF )
+ return -1;
+ }
bests.level[i].score[j].upload &= leave;
}
for ( j = 0 ; j < MAX_PER_LEVEL ; j++ ) {
- if ( bests.level[i].time_ms[j].time_ms != NO_TIME )
+ if ( bests.level[i].time_ms[j].time_ms != NO_TIME ) {
sprintf(buffer, "LT %" PRIx64 " %d %" PRId32 "\n",
bests.level[i].time_ms[j].gameid,
i+1, bests.level[i].time_ms[j].time_ms);
- if ( fputs(buffer, f) == EOF )
- return -1;
+ if ( fputs(buffer, f) == EOF )
+ return -1;
+ }
bests.level[i].time_ms[j].upload &= leave;
}
}