From 3f8d4a5a0f0ee98bc5299c6eb83e0461beebe5a6 Mon Sep 17 00:00:00 2001 From: Teruaki Kawashima Date: Sat, 27 Feb 2010 14:45:37 +0000 Subject: use same variable/macro name for highscore among plugins. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@24941 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/bubbles.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'apps/plugins/bubbles.c') 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); -- cgit v1.1