From cac1b448506485aff1fed2c4d814ab42f19a7785 Mon Sep 17 00:00:00 2001 From: Barry Wardell Date: Fri, 6 Oct 2006 10:46:49 +0000 Subject: [PATCH] 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 --- apps/plugins/bubbles.c | 6 ++++++ 1 file changed, 6 insertions(+) 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);