summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/bubbles.c')
-rw-r--r--apps/plugins/bubbles.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 2f7ead8..e3b74f8 100644
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -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);