From c8f9f9cef8722d7bd33b5b407e64148baaa819ec Mon Sep 17 00:00:00 2001 From: Kevin Ferrare Date: Thu, 29 Oct 2009 04:18:29 +0000 Subject: 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 --- apps/plugins/boomshine.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'apps/plugins/boomshine.lua') 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 end end -display_message(string.format("You made it till level %d with %d points!", idx, highscore)) +if idx > #levels then + display_message(string.format("You finished the game with %d points!", highscore)) +else + display_message(string.format("You made it till level %d with %d points!", idx, highscore)) +end -- Restore user backlight settings rb.backlight_use_settings() -- cgit v1.2.3