diff options
author | Johannes Schwarz <ubuntuxer@rockbox.org> | 2009-07-18 15:16:24 +0000 |
---|---|---|
committer | Johannes Schwarz <ubuntuxer@rockbox.org> | 2009-07-18 15:16:24 +0000 |
commit | 99f52999968eb56e8fc9cabbf2ab4f65943ce678 (patch) | |
tree | 0e87625df1579f27b3f43141d8a2d20f7b8df248 /apps/plugins/invadrox.c | |
parent | 03cb2b83ae17d9118ddee69908389fb4cd0484a6 (diff) | |
download | rockbox-99f52999968eb56e8fc9cabbf2ab4f65943ce678.tar.gz rockbox-99f52999968eb56e8fc9cabbf2ab4f65943ce678.tar.bz2 rockbox-99f52999968eb56e8fc9cabbf2ab4f65943ce678.zip |
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
Diffstat (limited to 'apps/plugins/invadrox.c')
-rw-r--r-- | apps/plugins/invadrox.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/plugins/invadrox.c b/apps/plugins/invadrox.c index fa7cb81e02..d07bf2878b 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); } |