summaryrefslogtreecommitdiff
path: root/apps/plugins/bubbles.c
diff options
context:
space:
mode:
authorBarry Wardell <rockbox@barrywardell.net>2006-10-06 10:46:49 +0000
committerBarry Wardell <rockbox@barrywardell.net>2006-10-06 10:46:49 +0000
commitcac1b448506485aff1fed2c4d814ab42f19a7785 (patch)
treef88068305433aa953dea7848faec597592dac7dc /apps/plugins/bubbles.c
parentda2bf53230f0b1b50a2ee480fce61d0669fd4dcc (diff)
downloadrockbox-cac1b448506485aff1fed2c4d814ab42f19a7785.tar.gz
rockbox-cac1b448506485aff1fed2c4d814ab42f19a7785.zip
Fix FS#6127 - highlevel was not being saved when you win bubbles.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@11138 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/bubbles.c')
-rwxr-xr-xapps/plugins/bubbles.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/apps/plugins/bubbles.c b/apps/plugins/bubbles.c
index 196587a9d9..45105feaf6 100755
--- a/apps/plugins/bubbles.c
+++ b/apps/plugins/bubbles.c
@@ -2693,7 +2693,13 @@ enum plugin_status plugin_start(struct plugin_api* api, void* parameter) {
2693 char str[19]; 2693 char str[19];
2694 case BB_WIN: 2694 case BB_WIN:
2695 rb->splash(HZ*2, true, "You Win!"); 2695 rb->splash(HZ*2, true, "You Win!");
2696 /* record high level */
2697 if(bb.level-1 > bb.highlevel) {
2698 bb.highlevel = bb.level-1;
2699 bb.dirty = true;
2700 }
2696 2701
2702 /* record high score */
2697 if((position = bubbles_recordscore(&bb))) { 2703 if((position = bubbles_recordscore(&bb))) {
2698 rb->snprintf(str, 19, "New high score #%d!", position); 2704 rb->snprintf(str, 19, "New high score #%d!", position);
2699 rb->splash(HZ*2, true, str); 2705 rb->splash(HZ*2, true, str);