1
0
Fork 0
forked from len0rd/rockbox

Re-seed the random generator for each new game.

Change-Id: I1b814e8475798830d204b4838d98b8b671d93e02
This commit is contained in:
Christ van Willegen 2015-04-08 09:45:02 +02:00
parent e4b8eaa9d2
commit 926829cba3

View file

@ -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]