diff options
author | Barry Wardell <rockbox@barrywardell.net> | 2006-10-06 10:46:49 +0000 |
---|---|---|
committer | Barry Wardell <rockbox@barrywardell.net> | 2006-10-06 10:46:49 +0000 |
commit | cac1b448506485aff1fed2c4d814ab42f19a7785 (patch) | |
tree | f88068305433aa953dea7848faec597592dac7dc /apps | |
parent | da2bf53230f0b1b50a2ee480fce61d0669fd4dcc (diff) |
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')
-rwxr-xr-x | apps/plugins/bubbles.c | 6 |
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) { char str[19]; case BB_WIN: rb->splash(HZ*2, true, "You Win!"); + /* record high level */ + if(bb.level-1 > bb.highlevel) { + bb.highlevel = bb.level-1; + bb.dirty = true; + } + /* record high score */ if((position = bubbles_recordscore(&bb))) { rb->snprintf(str, 19, "New high score #%d!", position); rb->splash(HZ*2, true, str); |