diff options
author | Robert Kukla <roolku@rockbox.org> | 2009-10-29 11:15:14 +0000 |
---|---|---|
committer | Robert Kukla <roolku@rockbox.org> | 2009-10-29 11:15:14 +0000 |
commit | 3fa2e88b3f59952585885e30fd00c413d0829f6e (patch) | |
tree | 3cea48e0db41b78f8f0ecb512a4d8b724927111d /apps/plugins | |
parent | 8d376d03be0a8267dea722fa70c954dbea286bde (diff) | |
download | rockbox-3fa2e88b3f59952585885e30fd00c413d0829f6e.tar.gz rockbox-3fa2e88b3f59952585885e30fd00c413d0829f6e.zip |
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
Diffstat (limited to 'apps/plugins')
-rw-r--r-- | apps/plugins/boomshine.lua | 6 |
1 files 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) | |||
314 | end | 314 | end |
315 | end | 315 | end |
316 | 316 | ||
317 | return exit, score | 317 | return exit, score, nrExpandedBalls |
318 | end | 318 | end |
319 | 319 | ||
320 | -- Helper function to display a message | 320 | -- Helper function to display a message |
@@ -355,11 +355,11 @@ while true do | |||
355 | 355 | ||
356 | display_message(string.format("Level %d: get %d out of %d balls", idx, goal, nrBalls)) | 356 | display_message(string.format("Level %d: get %d out of %d balls", idx, goal, nrBalls)) |
357 | 357 | ||
358 | local exit, score = start_round(idx, goal, nrBalls, highscore) | 358 | local exit, score, nrExpandedBalls = start_round(idx, goal, nrBalls, highscore) |
359 | if exit then | 359 | if exit then |
360 | break -- Exiting.. | 360 | break -- Exiting.. |
361 | else | 361 | else |
362 | if score >= goal then | 362 | if nrExpandedBalls >= goal then |
363 | display_message("You won!") | 363 | display_message("You won!") |
364 | idx = idx + 1 | 364 | idx = idx + 1 |
365 | highscore = highscore + score | 365 | highscore = highscore + score |