From 3fa2e88b3f59952585885e30fd00c413d0829f6e Mon Sep 17 00:00:00 2001 From: Robert Kukla Date: Thu, 29 Oct 2009 11:15:14 +0000 Subject: Fix FS#10734 - scoring in boomshine.lua is broken (r23391) git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23399 a1c6a512-1295-4272-9138-f99709370657 --- apps/plugins/boomshine.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/plugins/boomshine.lua b/apps/plugins/boomshine.lua index 53ea4f3598..f73875de5e 100644 --- a/apps/plugins/boomshine.lua +++ b/apps/plugins/boomshine.lua @@ -314,7 +314,7 @@ function start_round(level, goal, nrBalls, total) end end - return exit, score + return exit, score, nrExpandedBalls end -- Helper function to display a message @@ -355,11 +355,11 @@ while true do display_message(string.format("Level %d: get %d out of %d balls", idx, goal, nrBalls)) - local exit, score = start_round(idx, goal, nrBalls, highscore) + local exit, score, nrExpandedBalls = start_round(idx, goal, nrBalls, highscore) if exit then break -- Exiting.. else - if score >= goal then + if nrExpandedBalls >= goal then display_message("You won!") idx = idx + 1 highscore = highscore + score -- cgit v1.2.3