diff options
author | Kevin Ferrare <kevin@rockbox.org> | 2009-10-29 04:18:29 +0000 |
---|---|---|
committer | Kevin Ferrare <kevin@rockbox.org> | 2009-10-29 04:18:29 +0000 |
commit | c8f9f9cef8722d7bd33b5b407e64148baaa819ec (patch) | |
tree | a0a1365c0e6579d67a1fe96b90e2943258b19fec /apps/plugins/boomshine.lua | |
parent | 0aa035d73e20af65bb77798d3ada44af405507f1 (diff) | |
download | rockbox-c8f9f9cef8722d7bd33b5b407e64148baaa819ec.tar.gz rockbox-c8f9f9cef8722d7bd33b5b407e64148baaa819ec.zip |
Boomshine plugin : Better messages at the end of the game (fixes the nblevel+1 being displayed)
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23394 a1c6a512-1295-4272-9138-f99709370657
Diffstat (limited to 'apps/plugins/boomshine.lua')
-rw-r--r-- | apps/plugins/boomshine.lua | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/plugins/boomshine.lua b/apps/plugins/boomshine.lua index 9c8b5599fe..74f7f2a831 100644 --- a/apps/plugins/boomshine.lua +++ b/apps/plugins/boomshine.lua | |||
@@ -274,7 +274,11 @@ while true do | |||
274 | end | 274 | end |
275 | end | 275 | end |
276 | 276 | ||
277 | display_message(string.format("You made it till level %d with %d points!", idx, highscore)) | 277 | if idx > #levels then |
278 | display_message(string.format("You finished the game with %d points!", highscore)) | ||
279 | else | ||
280 | display_message(string.format("You made it till level %d with %d points!", idx, highscore)) | ||
281 | end | ||
278 | 282 | ||
279 | -- Restore user backlight settings | 283 | -- Restore user backlight settings |
280 | rb.backlight_use_settings() | 284 | rb.backlight_use_settings() |