mirror of
https://github.com/vattam/BSDGames.git
synced 2025-12-21 03:14:50 +00:00
releasing version 2.17-6
git-svn-id: file:///srv/svn/joey/trunk/src/packages/bsdgames@12402 a4a2c43b-8ac3-0310-8836-e0e880c912e2
This commit is contained in:
@@ -335,7 +335,8 @@ checkscores(hs, num)
|
||||
continue;
|
||||
}
|
||||
}
|
||||
levelfound[sp->hs_level] = 1;
|
||||
if (sp->hs_level < NLEVELS && sp->hs_level >= 0)
|
||||
levelfound[sp->hs_level] = 1;
|
||||
i++, sp++;
|
||||
}
|
||||
return (num > MAXHISCORES ? MAXHISCORES : num);
|
||||
@@ -374,12 +375,14 @@ showscores(level)
|
||||
for (i = MINLEVEL; i < NLEVELS; i++)
|
||||
levelfound[i] = 0;
|
||||
for (i = 0, sp = scores; i < nscores; i++, sp++) {
|
||||
if (levelfound[sp->hs_level])
|
||||
sp->hs_time = 0;
|
||||
else {
|
||||
sp->hs_time = 1;
|
||||
levelfound[sp->hs_level] = 1;
|
||||
}
|
||||
if (sp->hs_level < NLEVELS && sp->hs_level >= 0) {
|
||||
if (levelfound[sp->hs_level])
|
||||
sp->hs_time = 0;
|
||||
else {
|
||||
sp->hs_time = 1;
|
||||
levelfound[sp->hs_level] = 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
@@ -433,7 +436,7 @@ printem(level, offset, hs, n, me)
|
||||
continue;
|
||||
}
|
||||
sp = &hs[item];
|
||||
(void)sprintf(buf,
|
||||
(void)snprintf(buf, sizeof(buf),
|
||||
"%3d%c %6d %-11s (%6d on %d)",
|
||||
item + offset, sp->hs_time ? '*' : ' ',
|
||||
sp->hs_score * sp->hs_level,
|
||||
|
||||
Reference in New Issue
Block a user