forked from len0rd/rockbox
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
|
||||
rb.backlight_force_on()
|
||||
|
||||
math.randomseed(os.time())
|
||||
|
||||
local idx, highscore = 1, 0
|
||||
while levels[idx] ~= nil do
|
||||
local goal, nrBalls = levels[idx][1], levels[idx][2]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue