fix randomseed crash
parent
d75c65fa53
commit
7353bbd9d1
|
@ -146,7 +146,7 @@ local balloon = {
|
||||||
|
|
||||||
--Setup fallspeed
|
--Setup fallspeed
|
||||||
on_activate = function(self, staticdata, dtime_s)
|
on_activate = function(self, staticdata, dtime_s)
|
||||||
math.randomseed(os.time())
|
math.randomseed = os.time()
|
||||||
local point_chance = math.random(1,3)
|
local point_chance = math.random(1,3)
|
||||||
if point_chance == 1 then
|
if point_chance == 1 then
|
||||||
self._points = "10"
|
self._points = "10"
|
||||||
|
|
Loading…
Reference in New Issue