summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
authorTeruaki Kawashima <teru@rockbox.org>2010-02-27 14:45:37 +0000
committerTeruaki Kawashima <teru@rockbox.org>2010-02-27 14:45:37 +0000
commit3f8d4a5a0f0ee98bc5299c6eb83e0461beebe5a6 (patch)
tree1bbcb42380b27662ad48ca27b346efaf068c2ebb /apps/plugins/bubbles.c
parentc3abab85acc0933615360225d23b69a078c5d186 (diff)
downloadrockbox-3f8d4a5a0f0ee98bc5299c6eb83e0461beebe5a6.zip
rockbox-3f8d4a5a0f0ee98bc5299c6eb83e0461beebe5a6.tar.gz
rockbox-3f8d4a5a0f0ee98bc5299c6eb83e0461beebe5a6.tar.bz2
rockbox-3f8d4a5a0f0ee98bc5299c6eb83e0461beebe5a6.tar.xz
use same variable/macro name for highscore among plugins.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657
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);