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
This commit is contained in:
parent
da2bf53230
commit
cac1b44850
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue