From 99f52999968eb56e8fc9cabbf2ab4f65943ce678 Mon Sep 17 00:00:00 2001 From: Johannes Schwarz Date: Sat, 18 Jul 2009 15:16:24 +0000 Subject: Commit FS#10350, prevents to save an unchanged highscore and move the function show_highscore to the lib git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21960 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/invadrox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'apps/plugins/invadrox.c') diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index fa7cb81..d07bf28 100644 --- a/apps/plugins/invadrox.c +++ b/apps/plugins/invadrox.c @@ -1723,8 +1723,7 @@ enum plugin_status plugin_start(UNUSED const void* parameter) rb->splash(HZ * 2, "Game Over"); if (score > hiscore.score) { /* Save new hiscore */ - hiscore.score = score; - hiscore.level = level; + highscore_update(score, level, "Invader", &hiscore, 1); highscore_save(HISCOREFILE, &hiscore, 1); } -- cgit v1.1