mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-18 09:32:40 -05:00
Re-seed the random generator for each new game.
Change-Id: I1b814e8475798830d204b4838d98b8b671d93e02
This commit is contained in:
parent
e4b8eaa9d2
commit
926829cba3
1 changed files with 2 additions and 0 deletions
|
|
@ -353,6 +353,8 @@ if HAS_TOUCHSCREEN then
|
||||||
end
|
end
|
||||||
rb.backlight_force_on()
|
rb.backlight_force_on()
|
||||||
|
|
||||||
|
math.randomseed(os.time())
|
||||||
|
|
||||||
local idx, highscore = 1, 0
|
local idx, highscore = 1, 0
|
||||||
while levels[idx] ~= nil do
|
while levels[idx] ~= nil do
|
||||||
local goal, nrBalls = levels[idx][1], levels[idx][2]
|
local goal, nrBalls = levels[idx][1], levels[idx][2]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue