forked from len0rd/rockbox
Fixed the Boomshine plugin not to crash when there are no more levels to play
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@23392 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
db8d79db7e
commit
c4079e0b12
1 changed files with 4 additions and 1 deletions
|
@ -249,12 +249,15 @@ rb.backlight_force_on()
|
|||
local idx, highscore = 1, 0
|
||||
while true do
|
||||
local level = levels[idx]
|
||||
local goal, nrBalls = level[1], level[2]
|
||||
local goal, nrBalls
|
||||
|
||||
if level == nil then
|
||||
break -- No more levels to play
|
||||
end
|
||||
|
||||
goal = level[1]
|
||||
nrBalls = level[2]
|
||||
|
||||
display_message(string.format("Level %d: get %d out of %d balls", idx, goal, nrBalls))
|
||||
|
||||
local exit, score = start_round(idx, goal, nrBalls, highscore)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue