forked from len0rd/rockbox
use same variable/macro name for highscore among plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c3abab85ac
commit
3f8d4a5a0f
8 changed files with 61 additions and 60 deletions
|
@ -1262,7 +1262,7 @@ struct game_context {
|
|||
struct tile playboard[BB_HEIGHT][BB_WIDTH];
|
||||
};
|
||||
|
||||
struct highscore highscores[NUM_SCORES];
|
||||
static struct highscore highscores[NUM_SCORES];
|
||||
|
||||
/* used to denote available resume info */
|
||||
static bool resume = false;
|
||||
|
@ -2172,10 +2172,12 @@ static void bubbles_recordscore(struct game_context* bb) {
|
|||
|
||||
position = highscore_update(bb->score, bb->level-1, "",
|
||||
highscores, NUM_SCORES);
|
||||
if (position==0)
|
||||
rb->splash(HZ*2, "New High Score");
|
||||
if (position != -1)
|
||||
{
|
||||
if (position == 0)
|
||||
rb->splash(HZ*2, "New High Score");
|
||||
highscore_show(position, highscores, NUM_SCORES, true);
|
||||
}
|
||||
}
|
||||
|
||||
/*****************************************************************************
|
||||
|
@ -2409,7 +2411,7 @@ static int bubbles_menu(struct game_context* bb) {
|
|||
startlevel--;
|
||||
break;
|
||||
case 3: /* High scores */
|
||||
highscore_show(NUM_SCORES, highscores, NUM_SCORES, true);
|
||||
highscore_show(-1, highscores, NUM_SCORES, true);
|
||||
break;
|
||||
case 4: /* Playback Control */
|
||||
playback_control(NULL);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue